slides/slides03.tex
changeset 972 ebb4a40d9bae
parent 967 ce5de01b9632
--- a/slides/slides03.tex	Fri Oct 25 18:54:08 2024 +0100
+++ b/slides/slides03.tex	Sat Nov 09 06:23:35 2024 +0000
@@ -104,12 +104,12 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \begin{frame}[c]
-\frametitle{\boldmath$(abcdef)^{\{n\}}$ in Rust and Scala}
+%%\frametitle{\boldmath$(abcdef)^{\{n\}}$ in Rust and Scala}
   
 \begin{textblock}{14}(1,3)
 \begin{tikzpicture}
 \begin{axis}[
-    xlabel={copies of $[abcdef]$}, 
+    xlabel={\bl{n} copies of \bl{\texttt{"}abcdef\texttt{"}}}, 
     x label style={at={(0.45,-0.16)}},
     ylabel={time in secs},
     enlargelimits=false, 
@@ -122,7 +122,7 @@
     width=10cm,
     height=6cm,
     legend entries={Rust, Scala V3},
-    legend style={font=\small,at={(1.15,0.48)},anchor=north},
+    legend style={font=\small,at={(1.0,0.48)},anchor=north},
     legend cell align=left]
     \addplot[blue,mark=*, mark options={fill=white}] table {re-rust2.data};
     \only<2>{\addplot[red,mark=*, mark options={fill=white}] table {re-scala2.data};}
@@ -130,9 +130,63 @@
 \end{tikzpicture}
 \end{textblock}
 
+\begin{textblock}{9}(1.8,1.8)
+{Regular expression: \bl{\texttt{(abcdef)$^{\{\textrm{n}\}}$}}}
+\end{textblock}
+
+\begin{textblock}{6}(10.5,11.4)
+{\bl{$n$}}
+\end{textblock}
+
 \end{frame}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{frame}[c]
+%%\frametitle{\boldmath$(abcdef)^{\{n\}}$ in Rust and Scala}
+  
+\begin{textblock}{14}(1,3)
+\begin{tikzpicture}
+\begin{axis}[
+    xlabel={strings of the form \bl{$\underbrace{\texttt{a}...\texttt{a}}_n$}}, 
+    x label style={at={(0.45,-0.16)}},
+    ylabel={time in secs},
+    enlargelimits=false,
+    xtick={0,5,10,...,30},
+    xmax=35,
+    ymax=35,
+    ytick={0,10,...,30},
+    scaled ticks=false,
+    axis lines=left,
+    width=10cm,
+    height=6cm,
+    legend entries={Python,JavaScript,Swift,Dart},
+    legend style={font=\small,at={(1.15,0.78)},anchor=north},
+    legend cell align=left]
+    \addplot[blue,mark=*, mark options={fill=white}] table {re-python2.data};
+    \addplot[red,mark=*, mark options={fill=white}] table {re-js.data};
+    \addplot[magenta,mark=*, mark options={fill=white}] table {re-swift.data};
+    \addplot[brown,mark=*, mark options={fill=white}] table {re-dart.data};
+
+\end{axis}
+\end{tikzpicture}
+\end{textblock}
+
+\begin{textblock}{6}(1.8,1.8)
+{Regular expression: \bl{\texttt{(a*)*$\,$b}}}
+\end{textblock}
+
+\begin{textblock}{6}(10.5,11.4)
+{\bl{$n$}}
+\end{textblock}
+
+\end{frame}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% @@@@@@@@@@@@@@@@@
+\end{document}
+% @@@@@@@@@@@@@@@@@@
+
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \begin{frame}[c]