diff options
Diffstat (limited to 'a4/exercise.tex')
-rw-r--r-- | a4/exercise.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/a4/exercise.tex b/a4/exercise.tex new file mode 100644 index 0000000..11def5d --- /dev/null +++ b/a4/exercise.tex @@ -0,0 +1,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} |