summaryrefslogtreecommitdiff
path: root/a4/exercise.tex
blob: 11def5d2eeee837968d31f008d105a697fafad13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\title{A4: List vs Vector}
\input{preamble.tex}

I wanted to experiment with co-routine generator for the random
numbers but discovered the \texttt{std::generator} is not supported
for my compiler.
Instead I found what seemed like a similar implementation here:
\texttt{https://en.cppreference.com/w/cpp/language/coroutines}, which
I have copied to the \texttt{generator.h} file for use in my program.

I am aware that the random number generator already kind-of works like
a co-routine generator seen from the outside, so the whole experiment
is a bit pointless from a software design perspective.

\bigskip

\begin{figure}
  \includegraphics[scale=0.95]{a4/insert.pdf}
\end{figure}

\begin{figure}
  \includegraphics[scale=.95]{a4/remove.pdf}
\end{figure}

\end{document}