slides/slides03.tex
changeset 972 ebb4a40d9bae
parent 967 ce5de01b9632
equal deleted inserted replaced
971:51e00f223792 972:ebb4a40d9bae
   102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   103 
   103 
   104 
   104 
   105 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   105 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   106 \begin{frame}[c]
   106 \begin{frame}[c]
   107 \frametitle{\boldmath$(abcdef)^{\{n\}}$ in Rust and Scala}
   107 %%\frametitle{\boldmath$(abcdef)^{\{n\}}$ in Rust and Scala}
   108   
   108   
   109 \begin{textblock}{14}(1,3)
   109 \begin{textblock}{14}(1,3)
   110 \begin{tikzpicture}
   110 \begin{tikzpicture}
   111 \begin{axis}[
   111 \begin{axis}[
   112     xlabel={copies of $[abcdef]$}, 
   112     xlabel={\bl{n} copies of \bl{\texttt{"}abcdef\texttt{"}}}, 
   113     x label style={at={(0.45,-0.16)}},
   113     x label style={at={(0.45,-0.16)}},
   114     ylabel={time in secs},
   114     ylabel={time in secs},
   115     enlargelimits=false, 
   115     enlargelimits=false, 
   116     ytick={0,10,...,60},
   116     ytick={0,10,...,60},
   117     ymax=65,
   117     ymax=65,
   120     scaled ticks=false,
   120     scaled ticks=false,
   121     axis lines=left,
   121     axis lines=left,
   122     width=10cm,
   122     width=10cm,
   123     height=6cm,
   123     height=6cm,
   124     legend entries={Rust, Scala V3},
   124     legend entries={Rust, Scala V3},
   125     legend style={font=\small,at={(1.15,0.48)},anchor=north},
   125     legend style={font=\small,at={(1.0,0.48)},anchor=north},
   126     legend cell align=left]
   126     legend cell align=left]
   127     \addplot[blue,mark=*, mark options={fill=white}] table {re-rust2.data};
   127     \addplot[blue,mark=*, mark options={fill=white}] table {re-rust2.data};
   128     \only<2>{\addplot[red,mark=*, mark options={fill=white}] table {re-scala2.data};}
   128     \only<2>{\addplot[red,mark=*, mark options={fill=white}] table {re-scala2.data};}
   129 \end{axis}
   129 \end{axis}
   130 \end{tikzpicture}
   130 \end{tikzpicture}
   131 \end{textblock}
   131 \end{textblock}
   132 
   132 
   133 \end{frame}
   133 \begin{textblock}{9}(1.8,1.8)
   134 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   134 {Regular expression: \bl{\texttt{(abcdef)$^{\{\textrm{n}\}}$}}}
       
   135 \end{textblock}
       
   136 
       
   137 \begin{textblock}{6}(10.5,11.4)
       
   138 {\bl{$n$}}
       
   139 \end{textblock}
       
   140 
       
   141 \end{frame}
       
   142 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       
   143 
       
   144 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       
   145 \begin{frame}[c]
       
   146 %%\frametitle{\boldmath$(abcdef)^{\{n\}}$ in Rust and Scala}
       
   147   
       
   148 \begin{textblock}{14}(1,3)
       
   149 \begin{tikzpicture}
       
   150 \begin{axis}[
       
   151     xlabel={strings of the form \bl{$\underbrace{\texttt{a}...\texttt{a}}_n$}}, 
       
   152     x label style={at={(0.45,-0.16)}},
       
   153     ylabel={time in secs},
       
   154     enlargelimits=false,
       
   155     xtick={0,5,10,...,30},
       
   156     xmax=35,
       
   157     ymax=35,
       
   158     ytick={0,10,...,30},
       
   159     scaled ticks=false,
       
   160     axis lines=left,
       
   161     width=10cm,
       
   162     height=6cm,
       
   163     legend entries={Python,JavaScript,Swift,Dart},
       
   164     legend style={font=\small,at={(1.15,0.78)},anchor=north},
       
   165     legend cell align=left]
       
   166     \addplot[blue,mark=*, mark options={fill=white}] table {re-python2.data};
       
   167     \addplot[red,mark=*, mark options={fill=white}] table {re-js.data};
       
   168     \addplot[magenta,mark=*, mark options={fill=white}] table {re-swift.data};
       
   169     \addplot[brown,mark=*, mark options={fill=white}] table {re-dart.data};
       
   170 
       
   171 \end{axis}
       
   172 \end{tikzpicture}
       
   173 \end{textblock}
       
   174 
       
   175 \begin{textblock}{6}(1.8,1.8)
       
   176 {Regular expression: \bl{\texttt{(a*)*$\,$b}}}
       
   177 \end{textblock}
       
   178 
       
   179 \begin{textblock}{6}(10.5,11.4)
       
   180 {\bl{$n$}}
       
   181 \end{textblock}
       
   182 
       
   183 \end{frame}
       
   184 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       
   185 
       
   186 % @@@@@@@@@@@@@@@@@
       
   187 \end{document}
       
   188 % @@@@@@@@@@@@@@@@@@
   135 
   189 
   136 
   190 
   137 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   191 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   138 \begin{frame}[c]
   192 \begin{frame}[c]
   139 
   193