diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-08-01 08:27:01 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-08-01 08:27:01 +0200 |
commit | 6a8ae2de4261fecd0281685b9eea66bbd82bd7fb (patch) | |
tree | a775f79c34e91afcd77cedc10f55a3aa9096114c /a4/exercise.tex | |
parent | 9c69c2c6bcfa0d56178e9d801c1e5cf24c9cde0b (diff) |
A4: WIP
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} |