| 66 |      1 | \documentclass[dvipsnames,14pt,t,xelatex]{beamer}
 | 
|  |      2 | \usepackage{../slides}
 | 
|  |      3 | \usepackage{../graphics}
 | 
|  |      4 | \usepackage{../langs}
 | 
| 155 |      5 | %%\usepackage{../data}
 | 
| 67 |      6 | \usepackage[export]{adjustbox}
 | 
| 222 |      7 | \usetikzlibrary{shapes}
 | 
| 66 |      8 | 
 | 
|  |      9 | \hfuzz=220pt 
 | 
|  |     10 | 
 | 
|  |     11 | %\setmonofont[Scale=.88]{Consolas}
 | 
|  |     12 | %\newfontfamily{\consolas}{Consolas}
 | 
|  |     13 | 
 | 
|  |     14 | \lstset{language=Scala,
 | 
|  |     15 |         style=mystyle,
 | 
|  |     16 |         numbersep=0pt,
 | 
|  |     17 |         numbers=none,
 | 
|  |     18 |         xleftmargin=0mm}
 | 
|  |     19 | 
 | 
| 222 |     20 | \newcommand{\LEFTarrow}[3]{%
 | 
|  |     21 | \begin{textblock}{0}(#2,#3)%
 | 
|  |     22 | \onslide<#1>{%
 | 
|  |     23 | \begin{tikzpicture}%
 | 
|  |     24 | \node at (0,0) [single arrow, shape border rotate=180, fill=red,text=red]{a};%
 | 
|  |     25 | \end{tikzpicture}}%
 | 
|  |     26 | \end{textblock}}
 | 
|  |     27 | \newcommand{\DOWNarrow}[3]{%
 | 
|  |     28 | \begin{textblock}{0}(#2,#3)%
 | 
|  |     29 | \onslide<#1>{%
 | 
|  |     30 | \begin{tikzpicture}%
 | 
|  |     31 | \node at (0,0) [single arrow, shape border rotate=270, fill=red,text=red]{a};%
 | 
|  |     32 | \end{tikzpicture}}%
 | 
|  |     33 | \end{textblock}}
 | 
|  |     34 | 
 | 
|  |     35 | 
 | 
| 66 |     36 | \newcommand{\bl}[1]{\textcolor{blue}{#1}}     
 | 
|  |     37 | 
 | 
|  |     38 | % beamer stuff 
 | 
| 222 |     39 | \renewcommand{\slidecaption}{PEP (Scala) 04, King's College London}
 | 
| 66 |     40 | 
 | 
| 155 |     41 | \begin{filecontents}{re3a.data}
 | 
|  |     42 | 1 0.00003
 | 
|  |     43 | 500001 0.22527
 | 
|  |     44 | 1000001 0.62752
 | 
|  |     45 | 1500001 0.88485
 | 
|  |     46 | 2000001 1.39815
 | 
|  |     47 | 2500001 1.68619
 | 
|  |     48 | 3000001 1.94957
 | 
|  |     49 | 3500001 2.15878
 | 
|  |     50 | 4000001 2.59918
 | 
|  |     51 | 4500001 5.90679
 | 
|  |     52 | 5000001 13.11295
 | 
|  |     53 | 5500001 19.15376
 | 
|  |     54 | 6000001 40.16373
 | 
|  |     55 | \end{filecontents}
 | 
|  |     56 | \begin{filecontents}{re-python2.data}
 | 
|  |     57 | 1 0.033
 | 
|  |     58 | 5 0.036
 | 
|  |     59 | 10 0.034
 | 
|  |     60 | 15 0.036
 | 
|  |     61 | 18 0.059
 | 
|  |     62 | 19 0.084
 | 
|  |     63 | 20 0.141
 | 
|  |     64 | 21 0.248
 | 
|  |     65 | 22 0.485
 | 
|  |     66 | 23 0.878
 | 
|  |     67 | 24 1.71
 | 
|  |     68 | 25 3.40
 | 
|  |     69 | 26 7.08
 | 
|  |     70 | 27 14.12
 | 
|  |     71 | 28 26.69
 | 
|  |     72 | \end{filecontents}
 | 
|  |     73 | 
 | 
| 222 |     74 | \begin{filecontents}{re-js.data}
 | 
|  |     75 | 5   0.061
 | 
|  |     76 | 10  0.061
 | 
|  |     77 | 15  0.061
 | 
|  |     78 | 20  0.070
 | 
|  |     79 | 23  0.131
 | 
|  |     80 | 25  0.308
 | 
|  |     81 | 26  0.564
 | 
|  |     82 | 28  1.994
 | 
|  |     83 | 30  7.648
 | 
|  |     84 | 31  15.881 
 | 
|  |     85 | 32  32.190
 | 
|  |     86 | \end{filecontents}
 | 
|  |     87 | 
 | 
| 155 |     88 | \begin{filecontents}{re-java.data}
 | 
|  |     89 | 5  0.00298
 | 
|  |     90 | 10  0.00418
 | 
|  |     91 | 15  0.00996
 | 
|  |     92 | 16  0.01710
 | 
|  |     93 | 17  0.03492
 | 
|  |     94 | 18  0.03303
 | 
|  |     95 | 19  0.05084
 | 
|  |     96 | 20  0.10177
 | 
|  |     97 | 21  0.19960
 | 
|  |     98 | 22  0.41159
 | 
|  |     99 | 23  0.82234
 | 
|  |    100 | 24  1.70251
 | 
|  |    101 | 25  3.36112
 | 
|  |    102 | 26  6.63998
 | 
|  |    103 | 27  13.35120
 | 
|  |    104 | 28  29.81185
 | 
|  |    105 | \end{filecontents}
 | 
| 66 |    106 | 
 | 
| 222 |    107 | \begin{filecontents}{re-java9.data}
 | 
|  |    108 | 1000  0.01410
 | 
|  |    109 | 2000  0.04882
 | 
|  |    110 | 3000  0.10609
 | 
|  |    111 | 4000  0.17456
 | 
|  |    112 | 5000  0.27530
 | 
|  |    113 | 6000  0.41116
 | 
|  |    114 | 7000  0.53741
 | 
|  |    115 | 8000  0.70261
 | 
|  |    116 | 9000  0.93981
 | 
|  |    117 | 10000 0.97419
 | 
|  |    118 | 11000 1.28697
 | 
|  |    119 | 12000 1.51387
 | 
|  |    120 | 14000 2.07079
 | 
|  |    121 | 16000 2.69846
 | 
|  |    122 | 20000 4.41823
 | 
|  |    123 | 24000 6.46077
 | 
|  |    124 | 26000 7.64373
 | 
|  |    125 | 30000 9.99446
 | 
|  |    126 | 34000 12.966885
 | 
|  |    127 | 38000 16.281621
 | 
|  |    128 | 42000 19.180228
 | 
|  |    129 | 46000 21.984721
 | 
|  |    130 | 50000 26.950203
 | 
|  |    131 | 60000 43.0327746
 | 
|  |    132 | \end{filecontents}
 | 
|  |    133 | 
 | 
|  |    134 | 
 | 
| 66 |    135 | \begin{document}
 | 
|  |    136 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    137 | \begin{frame}[t]
 | 
|  |    138 | \frametitle{%
 | 
|  |    139 |   \begin{tabular}{@ {}c@ {}}
 | 
|  |    140 |   \\[5mm]
 | 
| 222 |    141 |   \huge PEP Scala (4) 
 | 
| 66 |    142 |   \end{tabular}}
 | 
|  |    143 | 
 | 
|  |    144 |   \normalsize
 | 
|  |    145 |   \begin{center}
 | 
|  |    146 |   \begin{tabular}{ll}
 | 
| 155 |    147 |     Email:  & christian.urban at kcl.ac.uk\\
 | 
| 222 |    148 |     Office: & N\liningnums{7.07} (North Wing, Bush House)\\
 | 
| 155 |    149 |     Slides \& Code: & KEATS\medskip\\
 | 
| 222 |    150 |     Office Hours: &  Mondays 12:00 -- 14:00\\
 | 
| 66 |    151 |   \end{tabular}
 | 
|  |    152 |   \end{center}
 | 
|  |    153 | 
 | 
|  |    154 | 
 | 
|  |    155 | \end{frame}
 | 
|  |    156 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
 | 
|  |    157 | 
 | 
| 222 |    158 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
 | 
|  |    159 | 
 | 
|  |    160 | \begin{frame}[c]
 | 
|  |    161 | \frametitle{Somewhere Remote}
 | 
|  |    162 | 
 | 
|  |    163 | \begin{center}
 | 
|  |    164 | \includegraphics[scale=0.37]{../pics/sahara.jpg}
 | 
|  |    165 | \end{center}
 | 
|  |    166 | 
 | 
|  |    167 | \end{frame}
 | 
|  |    168 | 
 | 
|  |    169 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    170 | 
 | 
|  |    171 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
 | 
|  |    172 | 
 | 
|  |    173 | \begin{frame}[t]
 | 
|  |    174 | \frametitle{This is a bit harsh\ldots}
 | 
|  |    175 | 
 | 
|  |    176 | \mbox{}\\[-22mm]\mbox{}
 | 
|  |    177 | 
 | 
|  |    178 | \begin{center}
 | 
|  |    179 | \begin{bubble}[10.5cm]
 | 
|  |    180 |   ...trying a new method because the fucking github reports dont tell me
 | 
|  |    181 |   which test failed. It's not really helpful when the inline tests work
 | 
|  |    182 |   and it compiles but all i get is 'one test failed'... really helpful my dude.
 | 
|  |    183 | \end{bubble}
 | 
|  |    184 | \end{center}
 | 
|  |    185 | 
 | 
|  |    186 | \begin{center}
 | 
|  |    187 | \begin{bubble}[10.5cm]
 | 
|  |    188 |   ...Reverted back and finished part 5, this is ridiculous how one test works
 | 
|  |    189 |   and all I get is 'ONE TEST FAILED'. Fix your reports before giving us
 | 
|  |    190 |   assignments like this...
 | 
|  |    191 | \end{bubble}
 | 
|  |    192 | \end{center}
 | 
|  |    193 | 
 | 
|  |    194 | 
 | 
|  |    195 | \end{frame}
 | 
|  |    196 | 
 | 
|  |    197 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
 | 
|  |    198 | 
 | 
|  |    199 | \begin{frame}[t,fragile]
 | 
|  |    200 | \frametitle{Needless to say I tried it out}
 | 
|  |    201 | 
 | 
|  |    202 | \mbox{}\\[-7mm]\mbox{}\footnotesize
 | 
|  |    203 | 
 | 
|  |    204 | \begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-4mm]
 | 
|  |    205 | > legal_moves(8, Nil, (2,2))
 | 
|  |    206 |  = List((3,4), (4,3), (4,1), (3,0), (1,0), (0,1), (0,3), (1,4))
 | 
|  |    207 | 
 | 
|  |    208 | > legal_moves(8, Nil, (7,7))
 | 
|  |    209 |  = List((6,5), (5,6))
 | 
|  |    210 | 
 | 
|  |    211 | > legal_moves(8, List((4,1), (1,0)), (2,2))
 | 
|  |    212 |  = List((3,4), (4,3), (3,0), (0,1), (0,3), (1,4))
 | 
|  |    213 | 
 | 
|  |    214 | > legal_moves(1, Nil, (0,0))
 | 
|  |    215 |  = List((-1,-2), (-2,-1))
 | 
|  |    216 | 
 | 
|  |    217 | > legal_moves(2, Nil, (0,0))
 | 
|  |    218 |  = List((1,-2), (-1,-2), (-2,-1), (-2,1))
 | 
|  |    219 | 
 | 
|  |    220 | > legal_moves(3, Nil, (0,0))
 | 
|  |    221 |  = List((1,2), (2,1), (2,-1), (1,-2), (-1,-2), (-2,-1), (-2,1), (-1,2))
 | 
|  |    222 | \end{lstlisting}  
 | 
|  |    223 | 
 | 
|  |    224 | \LEFTarrow{1}{9}{9}
 | 
|  |    225 | \LEFTarrow{1}{12}{11}
 | 
|  |    226 | \DOWNarrow{1}{10}{13}
 | 
|  |    227 | 
 | 
|  |    228 | \end{frame}
 | 
|  |    229 | 
 | 
|  |    230 | 
 | 
|  |    231 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
| 66 |    232 | 
 | 
|  |    233 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
| 67 |    234 | \begin{frame}[c,fragile]
 | 
| 222 |    235 | \small
 | 
|  |    236 |   
 | 
|  |    237 | \begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-7mm]
 | 
|  |    238 | def is_legal(dim: Int, p: Path, x: Pos): Boolean = {
 | 
|  |    239 |   if (......some_really_long_condition.....) false
 | 
|  |    240 |   else true
 | 
|  |    241 | }
 | 
|  |    242 | \end{lstlisting}
 | 
| 67 |    243 | 
 | 
| 222 |    244 | \pause
 | 
|  |    245 | \bigskip
 | 
|  |    246 | \rule{11cm}{0.3mm}
 | 
|  |    247 | \bigskip
 | 
|  |    248 | 
 | 
|  |    249 | \begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-7mm]
 | 
|  |    250 | def is_legal(dim: Int, p: Path, x: Pos): Boolean = 
 | 
|  |    251 |   ......some_really_long_condition.....
 | 
|  |    252 | \end{lstlisting}\pause
 | 
|  |    253 | 
 | 
| 67 |    254 | 
 | 
|  |    255 | \end{frame}
 | 
|  |    256 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
 | 
|  |    257 | 
 | 
|  |    258 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
| 222 |    259 | \begin{frame}[c]
 | 
|  |    260 | \frametitle{DFAs}  
 | 
|  |    261 | 
 | 
|  |    262 | \begin{center}
 | 
|  |    263 | \begin{tikzpicture}[>=stealth',very thick,auto,
 | 
|  |    264 |   every state/.style={minimum size=0pt,inner sep=2pt,
 | 
|  |    265 |     draw=blue!50,very thick,fill=blue!20},]
 | 
|  |    266 |   
 | 
|  |    267 | \only<1,3->{\node[state,initial] (Q_0)  {$\mbox{Q}_0$};}
 | 
|  |    268 | \only<2>{\node[state,initial,fill=red] (Q_0)  {$\mbox{Q}_0$};}  
 | 
|  |    269 | \only<1,2,4->{\node[state] (Q_1) [right=of Q_0] {$\mbox{Q}_1$};}
 | 
|  |    270 | \only<3>{\node[state,fill=red] (Q_1) [right=of Q_0] {$\mbox{Q}_1$};}
 | 
|  |    271 | \only<-3,5->{\node[state] (Q_2) [below right=of Q_0] {$\mbox{Q}_2$};}
 | 
|  |    272 | \only<4>{\node[state,fill=red] (Q_2) [below right=of Q_0] {$\mbox{Q}_2$};}
 | 
|  |    273 | \only<-4,6->{\node[state] (Q_3) [right=of Q_2] {$\mbox{Q}_3$};}
 | 
|  |    274 | \only<5>{\node[state,fill=red] (Q_3) [right=of Q_2] {$\mbox{Q}_3$};}
 | 
|  |    275 | \only<-5>{\node[state, accepting] (Q_4) [right=of Q_1] {$\mbox{Q}_4$};}
 | 
|  |    276 | \only<6->{\node[state, accepting,fill=red] (Q_4) [right=of Q_1] {$\mbox{Q}_4$};}
 | 
|  |    277 | 
 | 
|  |    278 | \path[->] (Q_0) edge node [above]  {\alert{$a$}} (Q_1);
 | 
|  |    279 | \path[->] (Q_1) edge node [above]  {\alert{$a$}} (Q_4);
 | 
|  |    280 | \path[->] (Q_4) edge [loop right] node  {\alert{$a, b$}} ();
 | 
|  |    281 | \path[->] (Q_3) edge node [right]  {\alert{$a$}} (Q_4);
 | 
|  |    282 | \path[->] (Q_2) edge node [above]  {\alert{$a$}} (Q_3);
 | 
|  |    283 | \path[->] (Q_1) edge node [right]  {\alert{$b$}} (Q_2);
 | 
|  |    284 | \path[->] (Q_0) edge node [above]  {\alert{$b$}} (Q_2);
 | 
|  |    285 | \path[->] (Q_2) edge [loop left] node  {\alert{$b$}} ();
 | 
|  |    286 | \path[->] (Q_3) edge [bend left=95, looseness=1.3] node [below]  {\alert{$b$}} (Q_0);
 | 
|  |    287 | \end{tikzpicture}
 | 
|  |    288 | \end{center}
 | 
| 67 |    289 | 
 | 
| 222 |    290 | \begin{textblock}{9}(4,12)
 | 
|  |    291 | \LARGE{}
 | 
|  |    292 | \only<3->{\boldmath\alert{$a$}}%
 | 
|  |    293 | \only<4->{\boldmath\alert{$b$}}%
 | 
|  |    294 | \only<5->{\boldmath\alert{$a$}}%
 | 
|  |    295 | \only<6->{\boldmath\alert{$a$}}%
 | 
|  |    296 | \only<7->{\boldmath\alert{$a\quad\Rightarrow \textbf{yes}$}}% 
 | 
|  |    297 | \end{textblock}
 | 
|  |    298 |   
 | 
|  |    299 | \end{frame}
 | 
|  |    300 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    301 | 
 | 
|  |    302 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    303 | \begin{frame}[t]
 | 
|  |    304 | \frametitle{DFAs}
 | 
| 67 |    305 | 
 | 
| 222 |    306 | A \alert{\bf deterministic finite automaton}, DFA, consists of
 | 
|  |    307 | 5 things:
 | 
|  |    308 | 
 | 
|  |    309 | \begin{itemize}
 | 
|  |    310 | \item an alphabet \bl{$\varSigma$}  
 | 
|  |    311 | \item a set of states \bl{$\mbox{Qs}$}
 | 
|  |    312 | \item one of these states is the start state \bl{$\mbox{Q}_0$}
 | 
|  |    313 | \item some states are accepting states \bl{$F$}, and
 | 
|  |    314 | \item there is transition function \bl{$\delta$}\bigskip 
 | 
|  |    315 | 
 | 
|  |    316 | \small
 | 
|  |    317 | which takes a state  and a character as arguments and produces a 
 | 
|  |    318 | new state; this function might not be everywhere defined 
 | 
|  |    319 | \end{itemize}
 | 
|  |    320 | 
 | 
|  |    321 | \begin{center}
 | 
|  |    322 | \bl{$A(\varSigma, \mbox{Qs}, \mbox{Q}_0, F, \delta)$}
 | 
|  |    323 | \end{center}
 | 
| 67 |    324 | 
 | 
|  |    325 | \end{frame}
 | 
| 222 |    326 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    327 | 
 | 
|  |    328 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    329 | \begin{frame}[c]
 | 
|  |    330 | \frametitle{NFAs}  
 | 
| 67 |    331 | 
 | 
| 222 |    332 | \begin{center}
 | 
|  |    333 | \begin{tikzpicture}[>=stealth',very thick, auto,
 | 
|  |    334 |     every state/.style={minimum size=0pt,inner sep=3pt,
 | 
|  |    335 |       draw=blue!50,very thick,fill=blue!20},scale=2]
 | 
|  |    336 | \node[state,initial]  (Q_0)  {$\mbox{Q}_0$};
 | 
|  |    337 | \node[state] (Q_1) [right=of Q_0] {$\mbox{Q}_1$};
 | 
|  |    338 | \node[state, accepting] (Q_2) [right=of Q_1] {$\mbox{Q}_2$};
 | 
|  |    339 | \path[->] (Q_0) edge [loop above] node  {\alert{$b$}} ();
 | 
|  |    340 | \path[<-] (Q_0) edge node [below]  {\alert{$b$}} (Q_1);
 | 
|  |    341 | \path[->] (Q_0) edge [bend left] node [above]  {\alert{$a$}} (Q_1);
 | 
|  |    342 | \path[->] (Q_0) edge [bend right=45,looseness=1.3] node [below]  {\alert{$a$}} (Q_2);
 | 
|  |    343 | \path[->] (Q_1) edge [loop above] node  {\alert{$a,b$}} ();
 | 
|  |    344 | \path[->] (Q_1) edge node  [above] {\alert{$a$}} (Q_2);
 | 
|  |    345 | \end{tikzpicture}
 | 
|  |    346 | \end{center}
 | 
|  |    347 | 
 | 
|  |    348 | \end{frame}
 | 
|  |    349 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
 | 
| 68 |    350 | 
 | 
| 155 |    351 | 
 | 
| 67 |    352 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
| 66 |    353 | \begin{frame}[c]
 | 
| 222 |    354 |   \frametitle{CW\liningnums{9} (\liningnums{1} Part): Regexes}
 | 
| 68 |    355 |   
 | 
|  |    356 | \begin{center}
 | 
|  |    357 |   Graphs: $(a^*)^* b$ and strings $\underbrace{\;a\ldots a\;}_{n}$\bigskip
 | 
|  |    358 |   
 | 
|  |    359 | \begin{tabular}[t]{@{\hspace{-8mm}}c@{\hspace{-4mm}}c@{}}
 | 
| 222 |    360 | \only<1>{\raisebox{6mm}{\begin{tikzpicture}
 | 
| 68 |    361 | \begin{axis}[
 | 
|  |    362 |     xlabel={$n$},
 | 
|  |    363 |     x label style={at={(1.05,0.0)}},
 | 
|  |    364 |     ylabel={time in secs},
 | 
|  |    365 |     enlargelimits=false,
 | 
|  |    366 |     xtick={0,5,...,30},
 | 
|  |    367 |     xmax=33,
 | 
|  |    368 |     ymax=35,
 | 
|  |    369 |     ytick={0,5,...,30},
 | 
|  |    370 |     scaled ticks=false,
 | 
|  |    371 |     axis lines=left,
 | 
|  |    372 |     width=5.5cm,
 | 
|  |    373 |     height=5cm, 
 | 
| 222 |    374 |     legend entries={\small{}Python,  \small{}Java 8,  \small{}JavaScript},  
 | 
| 68 |    375 |     legend pos=north west,
 | 
|  |    376 |     legend cell align=left]
 | 
|  |    377 | \addplot[blue,mark=*, mark options={fill=white}] table {re-python2.data};  
 | 
|  |    378 | \addplot[cyan,mark=*, mark options={fill=white}] table {re-java.data};
 | 
| 222 |    379 | \addplot[red,mark=*, mark options={fill=white}] table {re-js.data};
 | 
| 68 |    380 | \end{axis}
 | 
| 222 |    381 | \end{tikzpicture}}}%
 | 
|  |    382 | \only<2>{\raisebox{0mm}{\begin{tikzpicture}
 | 
|  |    383 | \begin{axis}[
 | 
|  |    384 |     xlabel={$n$},
 | 
|  |    385 |     x label style={at={(1.05,0.0)}},
 | 
|  |    386 |     ylabel={time in secs},
 | 
|  |    387 |     %y label style={at={(0.06,0.5)}},
 | 
|  |    388 |     enlargelimits=false,
 | 
|  |    389 |     %xtick={0,30000,...,60000},
 | 
|  |    390 |     xmax=65000,
 | 
|  |    391 |     ymax=35,
 | 
|  |    392 |     ytick={0,5,...,30},
 | 
|  |    393 |     scaled ticks=true,
 | 
|  |    394 |     axis lines=left,
 | 
|  |    395 |     width=5.5cm,
 | 
|  |    396 |     height=5cm, 
 | 
|  |    397 |     legend entries={\small{}Java 9},  
 | 
|  |    398 |     legend pos=north west]
 | 
|  |    399 | \addplot[cyan,mark=*, mark options={fill=white}] table {re-java9.data};
 | 
|  |    400 | \end{axis}
 | 
|  |    401 | \end{tikzpicture}}}
 | 
| 68 |    402 |   &
 | 
| 222 |    403 | \onslide<1-2>{\begin{tikzpicture}
 | 
| 68 |    404 |   \begin{axis}[
 | 
|  |    405 |     xlabel={$n$},
 | 
|  |    406 |     x label style={at={(1.05,0.0)}},
 | 
|  |    407 |     ylabel={time in secs},
 | 
|  |    408 |     enlargelimits=false,
 | 
|  |    409 |     ymax=35,
 | 
|  |    410 |     ytick={0,5,...,30},
 | 
|  |    411 |     axis lines=left,
 | 
|  |    412 |     %%scaled ticks=false,
 | 
|  |    413 |     width=5.5cm, 
 | 
|  |    414 |     height=5cm]
 | 
|  |    415 | %%\addplot[green,mark=square*,mark options={fill=white}] table {re2a.data};    
 | 
| 222 |    416 | \addplot[magenta,mark=square*,mark options={fill=white}] table {re3a.data};
 | 
| 68 |    417 | \end{axis}
 | 
| 70 |    418 | \end{tikzpicture}}
 | 
| 68 |    419 | \end{tabular}
 | 
|  |    420 | \end{center}
 | 
| 66 |    421 | 
 | 
| 68 |    422 | \hfill\small\url{https://vimeo.com/112065252}
 | 
| 66 |    423 | \end{frame}
 | 
| 67 |    424 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
 | 
|  |    425 | 
 | 
| 68 |    426 | \begin{frame}[c]
 | 
| 222 |    427 | \frametitle{Hint}
 | 
| 67 |    428 | 
 | 
| 222 |    429 | \begin{center}
 | 
|  |    430 | \LARGE\textbf{\alert{Pattern-Matching}}
 | 
|  |    431 | \end{center}
 | 
| 67 |    432 | 
 | 
|  |    433 | \end{frame}
 | 
|  |    434 | 
 | 
|  |    435 | 
 | 
|  |    436 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
|  |    437 | 
 | 
| 66 |    438 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 | 
| 155 |    439 | \begin{frame}[c,fragile]
 | 
|  |    440 | \frametitle{\alert{Questions?}}
 | 
| 66 |    441 | 
 | 
|  |    442 | \end{frame}
 | 
|  |    443 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
 | 
| 70 |    444 | 
 | 
| 66 |    445 | 
 | 
|  |    446 | 
 | 
|  |    447 | \end{document}
 | 
|  |    448 | 
 | 
|  |    449 | %%% Local Variables:  
 | 
|  |    450 | %%% mode: latex
 | 
|  |    451 | %%% TeX-master: t
 | 
|  |    452 | %%% End: 
 | 
|  |    453 | 
 |