--- a/cws/cw03.tex Tue Dec 05 00:34:14 2017 +0000
+++ b/cws/cw03.tex Thu Dec 07 12:04:31 2017 +0000
@@ -45,6 +45,33 @@
28 29.81185
\end{filecontents}
+\begin{filecontents}{re-java9.data}
+1000 0.01410
+2000 0.04882
+3000 0.10609
+4000 0.17456
+5000 0.27530
+6000 0.41116
+7000 0.53741
+8000 0.70261
+9000 0.93981
+10000 0.97419
+11000 1.28697
+12000 1.51387
+14000 2.07079
+16000 2.69846
+20000 4.41823
+24000 6.46077
+26000 7.64373
+30000 9.99446
+34000 12.966885
+38000 16.281621
+42000 19.180228
+46000 21.984721
+50000 26.950203
+60000 43.0327746
+\end{filecontents}
+
\begin{document}
@@ -92,7 +119,7 @@
\subsection*{Disclaimer}
It should be understood that the work you submit represents
-your own effort! You have not copied from anyone else. An
+your \textbf{own} effort! You have not copied from anyone else. An
exception is the Scala code I showed during the lectures or
uploaded to KEATS, which you can freely use.\bigskip
@@ -359,28 +386,53 @@
30 seconds time limit?
\begin{center}
+\begin{tabular}{@{}cc@{}}
+\multicolumn{2}{c}{Graph: $(a^*)^*\cdot b$ and strings
+ $\underbrace{a\ldots a}_{n}$}\bigskip\\
+
\begin{tikzpicture}
\begin{axis}[
- title={Graph: $(a^*)^*\cdot b$ and strings
- $\underbrace{a\ldots a}_{n}$},
xlabel={$n$},
x label style={at={(1.05,0.0)}},
ylabel={time in secs},
+ y label style={at={(0.06,0.5)}},
enlargelimits=false,
xtick={0,5,...,30},
xmax=33,
- ymax=35,
- ytick={0,5,...,30},
+ ymax=45,
+ ytick={0,5,...,40},
scaled ticks=false,
axis lines=left,
width=6cm,
height=5.5cm,
legend entries={Python, Java 8},
- legend pos=outer north east]
+ legend pos=north west]
\addplot[blue,mark=*, mark options={fill=white}] table {re-python2.data};
\addplot[cyan,mark=*, mark options={fill=white}] table {re-java.data};
\end{axis}
\end{tikzpicture}
+ &
+\begin{tikzpicture}
+\begin{axis}[
+ xlabel={$n$},
+ x label style={at={(1.05,0.0)}},
+ ylabel={time in secs},
+ y label style={at={(0.06,0.5)}},
+ %enlargelimits=false,
+ %xtick={0,5000,...,30000},
+ xmax=65000,
+ ymax=45,
+ ytick={0,5,...,40},
+ scaled ticks=false,
+ axis lines=left,
+ width=6cm,
+ height=5.5cm,
+ legend entries={Java 9},
+ legend pos=north west]
+\addplot[cyan,mark=*, mark options={fill=white}] table {re-java9.data};
+\end{axis}
+\end{tikzpicture}
+\end{tabular}
\end{center}
\newpage