From 6a8ae2de4261fecd0281685b9eea66bbd82bd7fb Mon Sep 17 00:00:00 2001
From: Bent Bisballe Nyeng <deva@aasimon.org>
Date: Tue, 1 Aug 2023 08:27:01 +0200
Subject: A4: WIP

---
 a4/exercise.tex | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 a4/exercise.tex

(limited to 'a4/exercise.tex')

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}
-- 
cgit v1.2.3

