slides/slides01.tex
author cu
Tue, 03 Oct 2017 23:01:06 +0100
changeset 512 a6aa52ecc1c5
parent 510 25580bf89ac0
child 559 db5cb071644d
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
95
dbe49327b6c5 added new stuff
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 93
diff changeset
     1
\documentclass[dvipsnames,14pt,t,xelatex]{beamer}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 215
diff changeset
     2
\usepackage{../slides}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 215
diff changeset
     3
\usepackage{../graphics}
215
828303e8e4af updated slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 98
diff changeset
     4
\usepackage{../langs}
828303e8e4af updated slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 98
diff changeset
     5
\usepackage{../data}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 215
diff changeset
     7
\hfuzz=220pt 
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 215
diff changeset
     8
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
     9
\lstset{language=Scala,
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
    10
        style=mystyle,
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
    11
        numbersep=0pt,
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
    12
        numbers=none,
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
    13
        xleftmargin=0mm}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
    14
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
    15
\newcommand{\bl}[1]{\textcolor{blue}{#1}}     
95
dbe49327b6c5 added new stuff
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 93
diff changeset
    16
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
% beamer stuff 
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
    18
\renewcommand{\slidecaption}{CFL 01, King's College London}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\begin{document}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
    24
\begin{frame}[t]
510
cu
parents: 507
diff changeset
    25
\frametitle{%  
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
  \begin{tabular}{@ {}c@ {}}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
    27
  \\[-3mm]
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
    28
  \LARGE Compilers and \\[-1mm] 
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
    29
  \LARGE Formal Languages (1)\\[-3mm] 
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
  \end{tabular}}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  \begin{center}
507
fdbc7d0ec04f updated
Christian Urban <urbanc@in.tum.de>
parents: 506
diff changeset
    33
  %\includegraphics[scale=0.3]{pics/ante1.jpg}\hspace{5mm}
fdbc7d0ec04f updated
Christian Urban <urbanc@in.tum.de>
parents: 506
diff changeset
    34
  %\includegraphics[scale=0.31]{pics/ante2.jpg}\\
fdbc7d0ec04f updated
Christian Urban <urbanc@in.tum.de>
parents: 506
diff changeset
    35
  %\footnotesize\textcolor{gray}{Antikythera automaton, 100 BC (Archimedes?)}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
  \end{center}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
510
cu
parents: 507
diff changeset
    38
  \normalsize
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
  \begin{center}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
  \begin{tabular}{ll}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
  Email:  & christian.urban at kcl.ac.uk\\
500
c502933be072 updated
Christian Urban <urbanc@in.tum.de>
parents: 442
diff changeset
    42
  Office: & N7.07 (North Wing, Bush House)\\
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  Slides: & KEATS
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
  \end{tabular}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
  \end{center}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
    47
\end{frame}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    48
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
\begin{frame}[c]
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    52
\frametitle{The Goal of this Course}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    54
\begin{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    55
  \begin{tikzpicture}[scale=1,
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    56
                      node/.style={
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    57
                      rectangle,rounded corners=3mm,
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    58
                      very thick,draw=black!50,minimum height=18mm, minimum width=20mm,
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    59
                      top color=white,bottom color=black!20}]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    60
334
fd89a63e9db3 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 332
diff changeset
    61
  \node at (3.05, 1.8) {\Large\bf Write A Compiler};
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    62
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    63
  \node (0) at (-2.3,0) {}; 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    64
  
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    65
  \node (A) at (0,0)  [node] {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    66
  \node [below right] at (A.north west) {lexer};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    67
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    68
  \node (B) at (3,0)  [node] {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    69
  \node [below right=1mm] at (B.north west) {\mbox{}\hspace{-1mm}parser};
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    71
  \node (C) at (6,0)  [node] {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    72
  \node [below right] at (C.north west) {\mbox{}\hspace{-1mm}code gen};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    73
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    74
  \node (1) at (8.4,0) {}; 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    75
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    76
  \draw [->,line width=4mm] (0) -- (A); 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    77
  \draw [->,line width=4mm] (A) -- (B); 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    78
  \draw [->,line width=4mm] (B) -- (C); 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    79
  \draw [->,line width=4mm] (C) -- (1); 
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
  \end{tikzpicture}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    81
  \end{center}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    83
\only<2,3>{
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    84
\begin{textblock}{1}(1,2)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    85
\begin{bubble}[9.8cm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    86
\normalsize
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    87
lexer input: a string\smallskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    88
\hspace{5mm}\code{"read(n);"}\medskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    89
lexer output: a sequence of tokens\smallskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    90
\hspace{5mm}\code{key(read); lpar; id(n); rpar; semi}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    91
\end{bubble}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    92
\end{textblock}}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    94
\only<3>{
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    95
\begin{textblock}{1}(6,7.8)
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
\begin{tabular}{c}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    97
\includegraphics[scale=0.2]{../pics/rosetta.jpg}\\[-2mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
    98
\footnotesize lexing $\Rightarrow$ recognising words (Stone of Rosetta)
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
\end{tabular}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   100
\end{textblock}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   101
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   102
\only<4>{
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   103
\begin{textblock}{1}(1,1.5)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   104
\begin{bubble}[8.5cm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   105
\normalsize
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   106
parser input: a sequence of token\smallskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   107
parser output: an abstract syntax tree\smallskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   108
\footnotesize
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   109
\hspace{2cm}\begin{tikzpicture}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   110
  \node {\code{read}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   111
    child {node {\code{lpar}}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   112
    child {node {\code{n}}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   113
    child {node {\code{rpar}}};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   114
\end{tikzpicture}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   115
\end{bubble}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   116
\end{textblock}}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   118
\only<5,6>{
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   119
\begin{textblock}{1}(1,1.5)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   120
\begin{bubble}[4cm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   121
\normalsize
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   122
code generator:\smallskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   123
\hspace{5mm}\code{istore 2}\\ 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   124
\hspace{5mm}\code{iload 2}\\ 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   125
\hspace{5mm}\code{ldc 10}\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   126
\hspace{5mm}\code{isub}\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   127
\hspace{5mm}\code{ifeq Label2}\\ 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   128
\hspace{5mm}\code{iload 2}\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   129
\hspace{5mm}\code{...}\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   130
\end{bubble}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   131
\end{textblock}}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   132
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   133
\only<6>{
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   134
\begin{textblock}{6}(8.4,7)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   135
\begin{bubble}[5cm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   136
\mbox{\begin{tikzpicture}[scale=0.58,rounded corners=0mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   137
\begin{axis}[axis x line=bottom, axis y line=left, ylabel=secs,
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   138
    xlabel=n,
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   139
    enlargelimits=0.05,
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   140
    ybar interval=0.7, legend style=small]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   141
\addplot file {interpreted2.data};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   142
\addplot file {compiled2.data};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   143
%\legend{interpreted, compiled}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   144
\end{axis}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   145
\end{tikzpicture}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   146
\end{bubble}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   147
\end{textblock}}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   148
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   149
\end{frame}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   150
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   151
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
\begin{frame}[c]
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   154
\frametitle{The subject is quite old}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
\begin{itemize}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   157
\item Turing Machines, 1936
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   158
\item Regular Expressions, 1956\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   159
\item The first compiler for COBOL, 1957\\ (Grace Hopper)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   160
\item But surprisingly research papers are still published nowadays
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
\end{itemize}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   163
\begin{flushright}
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   164
\includegraphics[scale=0.3]{pics/hopper.jpg}\\
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   165
\footnotesize\textcolor{gray}{Grace Hopper}
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   166
\end{flushright}
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   167
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   168
\mbox{}\\[-10mm]
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   169
{\footnotesize\textcolor{gray}{(she made it to David Letterman's Tonight Show, \url{http://www.youtube.com/watch?v=aZOxtURhfEU})}}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   171
\end{frame}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   172
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   173
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   174
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   175
\begin{frame}[c]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   176
\frametitle{Why Bother?}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   177
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   178
\begin{columns}[t]
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   179
\begin{column}{.5\textwidth}
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   180
Ruby, Python, Java\medskip\\
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   181
\begin{tikzpicture}\footnotesize
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   182
\begin{axis}[
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   183
    xlabel={$n$},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   184
    x label style={at={(1.05,0.0)}},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   185
    ylabel={time in secs},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   186
    enlargelimits=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   187
    xtick={0,5,...,30},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   188
    xmax=33,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   189
    ymax=35,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   190
    ytick={0,5,...,30},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   191
    scaled ticks=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   192
    axis lines=left,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   193
    width=5.5cm,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   194
    height=4cm, 
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   195
    legend entries={Python,Ruby},  
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   196
    legend pos=north west,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   197
    legend cell align=left]
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   198
\addplot[blue,mark=*] table {re-python.data};
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   199
\addplot[brown,mark=triangle*] table {re-ruby.data};
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   200
\end{axis}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   201
\end{tikzpicture}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   202
\begin{tikzpicture}\footnotesize
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   203
\begin{axis}[
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   204
    xlabel={$n$},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   205
    x label style={at={(1.05,0.0)}},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   206
    ylabel={time in secs},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   207
    enlargelimits=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   208
    xtick={0,5,...,30},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   209
    xmax=33,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   210
    ymax=35,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   211
    ytick={0,5,...,30},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   212
    scaled ticks=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   213
    axis lines=left,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   214
    width=5.5cm,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   215
    height=4cm, 
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   216
    legend entries={Java},  
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   217
    legend pos=north west,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   218
    legend cell align=left]
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   219
\addplot[cyan,mark=*, mark options={fill=white}] table {re-java.data};
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   220
\end{axis}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   221
\end{tikzpicture}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   222
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   223
\end{column}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   224
\begin{column}{.5\textwidth}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   225
Us (after next lecture)\medskip\\
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   226
\begin{tikzpicture}\footnotesize
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   227
\begin{axis}[
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   228
    xlabel={$n$},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   229
    x label style={at={(1.07,0.0)}},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   230
    ylabel={time in secs},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   231
    enlargelimits=false,
442
84d6714840c9 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 437
diff changeset
   232
    xtick={0,5000,...,10000},
84d6714840c9 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 437
diff changeset
   233
    xmax=11000,
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   234
    ymax=35,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   235
    ytick={0,5,...,30},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   236
    scaled ticks=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   237
    axis lines=left,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   238
    width=5.5cm,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   239
    height=4cm]
437
fe387fcbf2ee updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 428
diff changeset
   240
\addplot[green,mark=square*,mark options={fill=white}] table {re2.data};
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   241
\addplot[black,mark=square*,mark options={fill=white}] table {re3.data};
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   242
\end{axis}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   243
\end{tikzpicture}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   244
\begin{tikzpicture}\footnotesize
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   245
\begin{axis}[
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   246
    xlabel={$n$},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   247
    x label style={at={(1.07,0.0)}},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   248
    ylabel={time in secs},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   249
    enlargelimits=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   250
    ymax=35,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   251
    ytick={0,5,...,30},
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   252
    scaled ticks=false,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   253
    axis lines=left,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   254
    width=5.5cm,
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   255
    height=4cm]
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   256
\addplot[black,mark=square*,mark options={fill=white}] table {re3a.data};
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   257
\end{axis}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   258
\end{tikzpicture}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   259
\end{column}
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   260
\end{columns}\bigskip
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   261
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   262
\small\centering
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   263
matching \texttt{[a?]\{n\}[a]\{n\}} and \texttt{[a*]*b}
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   264
against $\underbrace{\texttt{a}...\texttt{a}}_n$
510
cu
parents: 507
diff changeset
   265
\end{frame} 
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   266
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   267
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   268
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   269
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   270
\begin{frame}[c]
327
9470cd124667 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 255
diff changeset
   271
\frametitle{Lectures 1 - 5}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   272
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   273
transforming strings into structured data\\[10mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   274
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   275
{\LARGE\bf Lexing} {\hfill{}based on regular expressions}\medskip\\
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   276
\hspace{5mm}(recognising ``words'')\\[6mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   277
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   278
{\LARGE\bf Parsing}\medskip\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   279
\hspace{5mm}(recognising ``sentences'')
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   280
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   281
\begin{textblock}{1}(10,9.1)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   282
\begin{tabular}{c}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   283
\includegraphics[scale=0.1]{../pics/rosetta.jpg}\\[-2mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   284
\footnotesize Stone of Rosetta
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   285
\end{tabular}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   286
\end{textblock}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   287
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   288
\end{frame}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   289
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   290
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   291
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   292
\begin{frame}[t]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   293
\frametitle{Familiar Regular Expr.}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   294
\small
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   295
\begin{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   296
\texttt{[a-z0-9\_.-]+ @ [a-z0-9.-]+ . [a-z.]\{2,6\}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   297
\end{center}\smallskip
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   298
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   299
\begin{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   300
\begin{tabular}{@{}lp{8.5cm}@{}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   301
\pcode{re*} & matches 0 or more times\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   302
\pcode{re+} & matches 1 or more times\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   303
\pcode{re?} & matches 0 or 1 times\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   304
\pcode{re\{n\}}	& matches exactly \pcode{n} number of times\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   305
\pcode{re\{n,m\}} & matches at least \pcode{n} and at most {\tt m} times\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   306
\pcode{[...]} & matches any single character inside the brackets\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   307
\pcode{[^...]} & matches any single character not inside the 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   308
brackets\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   309
\pcode{a-zA-Z} & character ranges\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   310
\pcode{\\d} & matches digits; equivalent to \pcode{[0-9]}\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   311
\pcode{.} & matches every character except newline\\
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   312
\pcode{(re)}	& groups regular expressions and remembers 
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   313
the matched text
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   314
\end{tabular}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   315
\end{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   316
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   317
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   318
\end{frame}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   319
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   320
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   321
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   322
\begin{frame}[c]
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   323
\frametitle{Today}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   325
\begin{itemize}
332
4755ad4b457b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 331
diff changeset
   326
\item While the ultimate goal is to implement a small compiler 
4755ad4b457b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 331
diff changeset
   327
(a really small one for the JVM)\ldots\bigskip
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   328
\end{itemize}
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   329
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   330
Let's start with:
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   331
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   332
\begin{itemize}
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   333
\item a web-crawler
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   334
\item an email harvester
332
4755ad4b457b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 331
diff changeset
   335
\item \textcolor{gray}{(a web-scraper)}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   336
\end{itemize}
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   337
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   338
\end{frame}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   339
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   341
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   342
\begin{frame}[t]
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   343
\frametitle{A Web-Crawler}
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   344
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   345
\mbox{}\\[10mm]
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   346
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   347
\begin{enumerate}
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   348
\item given an URL, read the corresponding webpage
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   349
\item extract all links from it
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   350
\item call the web-crawler again for all these links
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   351
\end{enumerate}
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   352
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   353
\end{frame}
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   354
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   355
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   356
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   357
\mode<presentation>{
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   358
\begin{frame}[t]
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   359
\frametitle{A Web-Crawler}
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   360
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   361
\mbox{}\\[10mm]
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   362
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   363
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   364
\begin{enumerate}
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   365
\item given an URL, read the corresponding webpage
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   366
\item if not possible print, out a problem
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   367
\item if possible, extract all links from it
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   368
\item call the web-crawler again for all these links
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   369
\end{enumerate}\bigskip\pause
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   370
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   371
\small (we need a bound for the number of recursive calls)
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   372
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   373
\small (the purpose is to check all links on my own webpage)
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   374
\end{frame}}
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   375
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   376
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   377
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   378
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   379
\begin{frame}[c]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   380
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   381
\begin{textblock}{1}(2,5)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   382
\begin{tabular}{c}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   383
\includegraphics[scale=0.15]{pics/servers.png}\\[-2mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   384
\small Server
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   385
\end{tabular}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   386
\end{textblock}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   387
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   388
\begin{textblock}{1}(5.6,4)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   389
  \begin{tikzpicture}[scale=1.1]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   390
  \draw[white] (0,1) node (X) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   391
  \draw[white] (2,1) node (Y) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   392
   \draw[white] (0,0) node (X1) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   393
  \draw[white] (2,0) node (Y1) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   394
   \draw[white] (0,-1) node (X2) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   395
  \draw[white] (2,-1) node (Y2) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   396
  \draw[red, <-, line width = 2mm] (X) -- (Y);
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   397
  \node [inner sep=5pt,label=above:\textcolor{black}{GET request}] at ($ (X)!.5!(Y) $) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   398
  \draw[red, ->, line width = 2mm] (X1) -- (Y1);
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   399
  \node [inner sep=5pt,label=above:\textcolor{black}{webpage}] at ($ (X1)!.5!(Y1) $) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   400
  \draw[red, <-, line width = 2mm] (X2) -- (Y2);
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   401
  \node [inner sep=7pt,label=above:\textcolor{black}{POST data}] at ($ (X2)!.5!(Y2) $) {};
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   402
  \end{tikzpicture}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   403
\end{textblock}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   404
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   405
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   406
\begin{textblock}{1}(9,5.5)
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   407
\begin{tabular}{c}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   408
\includegraphics[scale=0.15]{pics/laptop.png}\\[-2mm]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   409
\small Browser
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   410
\end{tabular}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   411
\end{textblock}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   412
\end{frame}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   413
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   414
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   415
  
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   416
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
\begin{frame}[c]
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   419
\frametitle{Scala}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   420
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   421
\small A simple Scala function for reading webpages:
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   422
\smallskip
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   423
98
1f3d89fe9820 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
   424
\footnotesize
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   425
\lstinputlisting{../progs/app0.scala}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   426
\medskip\pause
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   427
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   428
\lstinline{get_page("""http://www.inf.kcl.ac.uk/staff/urbanc/""")}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   429
\bigskip\medskip\pause
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   430
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   431
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   432
\small A slightly more complicated version for handling errors:
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   433
\smallskip
2
6e7da958ba8c updated
Christian Urban <urbanc@in.tum.de>
parents: 1
diff changeset
   434
98
1f3d89fe9820 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
   435
\footnotesize
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   436
\lstinputlisting{../progs/app1.scala}
1
b606c9439fa6 new version
Christian Urban <urbanc@in.tum.de>
parents: 0
diff changeset
   437
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   438
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   439
\end{frame}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   440
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   441
98
1f3d89fe9820 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
   442
 
1f3d89fe9820 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
   443
1f3d89fe9820 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
   444
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   445
\begin{frame}[t]
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   446
\frametitle{A Regular Expression}
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   447
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   448
\begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   449
\item \ldots{} is a pattern or template for specifying strings
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   450
\end{itemize}\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   451
  
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   452
\begin{center}  
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   453
\only<1>{\scode{"https?://[^"]*"}}%
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   454
\only<2>{\scode{""""https?://[^"]*"""".r}}
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   455
\end{center}\bigskip\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   456
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   457
matches for example\smallskip\\  
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   458
\hspace{2mm}\code{"http://www.foobar.com"}\\
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   459
\hspace{2mm}\code{"https://www.tls.org"}\\
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   460
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   461
\end{frame}
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   462
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   463
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   464
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   465
\begin{frame}[t]
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   466
\frametitle{Finding Operations}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   468
{\bf\code{rexp.findAllIn(string)}}\medskip
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   469
  
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   470
returns a list of all (sub)strings that match the 
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   471
regular expression
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   472
\bigskip\bigskip  
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
  
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   474
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   475
{\bf\code{rexp.findFirstIn(string)}}\medskip
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   476
 
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   477
returns either 
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   478
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   479
\begin{itemize}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   480
\item \code{None} if no (sub)string matches or 
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   481
\item \code{Some(s)} with the first (sub)string
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   482
\end{itemize}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   483
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   484
\end{frame}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   485
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   486
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   487
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   488
\begin{frame}[c]
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   489
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   490
\footnotesize
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   491
\lstinputlisting{../progs/app2.scala}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   492
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   493
\end{frame}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   494
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   495
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   496
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   497
\begin{frame}[c]
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   498
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   499
\small
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   500
A version that only crawls links in ``my'' domain:
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   501
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   502
\footnotesize
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   503
\lstinputlisting{../progs/app3.scala}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   504
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   505
\end{frame}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   506
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   507
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   508
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   509
\begin{frame}[c]
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   510
\lstset{xleftmargin=-4mm}
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   511
\small
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   512
A little email harvester:
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   513
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   514
\footnotesize
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   515
\lstinputlisting{../progs/app4.scala}\bigskip
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   516
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   517
\tiny
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   518
\url{http://net.tutsplus.com/tutorials/other/8-regular-expressions-you-should-know/}
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   519
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   520
\end{frame}
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   521
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   522
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   523
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
Christian Urban <urbanc@in.tum.de>
parents: 13
diff changeset
   524
\begin{frame}[t]
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   525
\frametitle{Regular Expressions}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   526
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   527
Their inductive definition:
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   528
14
Christian Urban <urbanc@in.tum.de>
parents: 13
diff changeset
   529
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   530
\begin{textblock}{6}(2,7.5)
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   531
  \begin{tabular}{@ {}rrl@ {\hspace{13mm}}l}
512
a6aa52ecc1c5 updated
cu
parents: 510
diff changeset
   532
  \bl{$r$} & \bl{$::=$}  & \bl{$\ZERO$}  & nothing\\
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   533
         & \bl{$\mid$} & \bl{$\ONE$}       & empty string / \pcode{""} / $[]$\\
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   534
         & \bl{$\mid$} & \bl{$c$}                         & character\\
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   535
         & \bl{$\mid$} & \bl{$r_1 + r_2$}  & alternative / choice\\
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   536
         & \bl{$\mid$} & \bl{$r_1 \cdot r_2$} & sequence\\
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   537
         & \bl{$\mid$} & \bl{$r^*$}            & star (zero or more)\\
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   538
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   539
  \end{textblock}
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   540
  
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   541
  
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   542
\only<2->{\footnotesize
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   543
\begin{textblock}{9}(2,0.5)
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   544
\begin{bubble}[9.8cm]
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   545
\lstinputlisting{../progs/app01.scala}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   546
\end{bubble}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   547
\end{textblock}}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   548
  
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   549
\end{frame}
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   550
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   551
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   552
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   553
%\begin{frame}[t]
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   554
%\frametitle{Regular Expressions}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   555
%
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   556
%\small
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   557
%In Scala:\bigskip
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   558
%
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   559
%\footnotesize
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   560
%\lstinputlisting{../progs/app51.scala}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   561
%
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   562
%  
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   563
%\end{frame}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   564
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   565
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   566
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   567
\begin{frame}[t]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   568
\frametitle{Strings}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   569
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   570
\ldots are lists of characters. For example \code{"hello"}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   571
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   572
\begin{center}
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   573
\bl{$[h, e, l, l, o]$} or just \bl{$hello$}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   574
\end{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   575
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   576
the empty string: \bl{$[]$} or \bl{\pcode{""}}\bigskip\\
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   577
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   578
the concatenation of two strings:
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   579
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   580
\begin{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   581
\bl{$s_1 \,@\, s_2$}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   582
\end{center}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   583
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   584
\bl{\textit{foo $@$ bar = foobar}, \textit{baz $@\, []$ = baz}}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   585
  
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   586
\end{frame}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   587
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   588
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   589
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   590
\begin{frame}[c]
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   591
\frametitle{Languages, Strings}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   592
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   593
\begin{itemize}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   594
\item \alert{\bf Strings} are lists of characters, for example
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   595
\begin{center}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   596
\bl{$[]$},\;\bl{$abc$}  \hspace{2cm}(Pattern match: \bl{$c\!::\!s$})
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   597
\end{center}\bigskip
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   598
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   599
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   600
\item A \alert{\bf language} is a set of strings, for example\medskip
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   601
\begin{center}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   602
\bl{$\{[], hello, \textit{foobar}, a, abc\}$}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   603
\end{center}\bigskip
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   604
332
4755ad4b457b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 331
diff changeset
   605
\item \alert{\bf Concatenation} of strings and languages
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   606
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   607
\begin{center}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   608
\begin{tabular}{rcl}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   609
\bl{$\textit{foo}\;@\;bar$} & \bl{$=$} & \bl{$\textit{foobar}$}\medskip\\
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   610
\bl{$A\;@\;B$} & \bl{$\dn$} & \bl{$\{ s_1\,@\,s_2 \;\mid\; s_1 \in A \wedge s_2 \in B\}$}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   611
\end{tabular}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   612
\end{center}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   613
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   614
%\item The \alert{\bf meaning} of a regular expression is a set of 
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   615
%  strings, or language.
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   616
\end{itemize}  
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   617
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   618
\end{frame}
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   619
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   620
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   621
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   622
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   623
\mode<presentation>{
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   624
\begin{frame}[c]
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   625
\frametitle{\begin{tabular}{c}The Meaning of a\\[-2mm] 
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   626
  Regular Expression\end{tabular}}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   627
4
Christian Urban <urbanc@in.tum.de>
parents: 3
diff changeset
   628
\begin{textblock}{15}(1,4)
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   629
 \begin{tabular}{rcl}
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   630
 \bl{$L(\ZERO)$}  & \bl{$\dn$} & \bl{$\{\}$}\\
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   631
 \bl{$L(\ONE)$}     & \bl{$\dn$} & \bl{$\{[]\}$}\\
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   632
 \bl{$L(c)$}            & \bl{$\dn$} & \bl{$\{[c]\}$}\\
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   633
 \bl{$L(r_1 + r_2)$}    & \bl{$\dn$} & \bl{$L(r_1) \cup L(r_2)$}\\
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   634
 \bl{$L(r_1 \cdot r_2)$} & \bl{$\dn$} & \bl{$\{ s_1 \,@\, s_2 \;|\; s_1 \in L(r_1) \wedge s_2 \in L(r_2) \}$}\\
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   635
 \bl{$L(r^*)$}           & \bl{$\dn$} & \onslide<4->{\bl{$\bigcup_{0 \le n} L(r)^n$}}\\
4
Christian Urban <urbanc@in.tum.de>
parents: 3
diff changeset
   636
  \end{tabular}\bigskip
3
Christian Urban <urbanc@in.tum.de>
parents: 2
diff changeset
   637
  
4
Christian Urban <urbanc@in.tum.de>
parents: 3
diff changeset
   638
\onslide<2->{
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   639
\hspace{5mm}\bl{$L(r)^0 \;\dn\; \{[]\}$}\\
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   640
\bl{$L(r)^{n+1} \;\dn\; L(r) \,@\, L(r)^n$}\hspace{9mm}\onslide<3->{\small\textcolor{gray}{(append on sets)}\\
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   641
\small\hspace{5cm}\textcolor{gray}{$\{ s_1 @ s_2 \;|\; s_1\in L(r) \wedge s_2 \in L(r)^n \}$}}
4
Christian Urban <urbanc@in.tum.de>
parents: 3
diff changeset
   642
}  
Christian Urban <urbanc@in.tum.de>
parents: 3
diff changeset
   643
    \end{textblock}
Christian Urban <urbanc@in.tum.de>
parents: 3
diff changeset
   644
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   645
\end{frame}}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   646
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   647
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   648
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   649
\begin{frame}[c]
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   650
\frametitle{The Meaning of Matching}
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   651
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   652
\begin{bubble}[10cm]
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   653
\large
507
fdbc7d0ec04f updated
Christian Urban <urbanc@in.tum.de>
parents: 506
diff changeset
   654
A regular expression \bl{$r$} matches a string~\bl{$s$} 
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   655
provided
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   656
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   657
\begin{center}
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   658
\bl{$s \in L(r)$}\\ 
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   659
\end{center}
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   660
\end{bubble}\bigskip\bigskip
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   661
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   662
\ldots and the point of the next lecture is 
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   663
to decide this problem as fast as possible (unlike Python,
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   664
Ruby, Java)
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   665
254
dcd4688690ce updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 253
diff changeset
   666
\end{frame}
5
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   667
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents: 4
diff changeset
   668
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   669
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   670
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   671
\begin{frame}[c]
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   672
\frametitle{Written Exam}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   673
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   674
\begin{itemize}
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   675
\item Accounts for 80\%.\bigskip
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   676
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   677
\item You will understand the question ``\textit{Is this relevant for
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   678
      the exam?}'' is very demotivating for the lecturer!\bigskip\\
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   679
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   680
\item Deal: Whatever is in the homework (and is not marked
330
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   681
      ``\textit{optional}'') is relevant for the exam.\bigskip
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   682
      
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   683
\item Each lecture has also a handout. There are also handouts about
0806e45d873c updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 328
diff changeset
   684
notation and Scala.      
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   685
\end{itemize}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   686
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   687
\end{frame}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   688
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   689
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   690
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   691
\begin{frame}[t]
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   692
\frametitle{Coursework}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   693
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
\begin{itemize}
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   695
\item Accounts for 20\%. Two strands. Choose \alert{\bf one}!\bigskip
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
\end{itemize}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   698
\begin{columns}[t]
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   699
\begin{column}{.5\textwidth}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   700
\underline{\bf Strand 1}\medskip
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   701
\begin{itemize}
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   702
\item four programming tasks:
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   703
\begin{itemize}
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   704
\item matcher (4\%, 19.10.) 
428
a47c4227a0c6 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 334
diff changeset
   705
\item lexer (5\%, 03.11.)
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   706
\item parser (5\%, 23.11.)
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   707
\item compiler (6\%, 7.12.)
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   708
\end{itemize}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   709
\end{itemize}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   710
\end{column}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   711
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   712
\hspace{-45pt}\vrule{}\hspace{10pt}
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   713
\begin{column}{.5\textwidth}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   714
\underline{\bf Strand 2}\smallskip\begin{itemize}
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   715
\item one task: prove the correctness of a regular expression matcher in 
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   716
the Isabelle theorem prover
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   717
\item 20\%, submission 7.12.
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   718
\end{itemize}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   719
\end{column}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   720
\end{columns}\medskip
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   721
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   722
\small
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   723
\begin{itemize}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   724
\item Solving more than one strand will {\bf not} give you more 
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   725
marks.
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   726
253
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   727
\end{itemize}
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   728
75c469893514 added coursework
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 252
diff changeset
   729
\end{frame}
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   730
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   731
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   732
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   733
\begin{frame}[c]
506
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   734
\frametitle{Lecture Capture}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   735
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   736
\begin{itemize}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   737
\item Hope it works\ldots\medskip\pause
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   738
\item It is important to use lecture capture wisely:
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   739
\begin{itemize}  
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   740
\item Lecture recordings are a study and revision aid.
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   741
\item Statistically, there is a clear and direct link between attendance and
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   742
  attainment: Students who do not attend lectures, do less well in exams.
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   743
\end{itemize}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   744
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   745
\item Attending a lecture is more than watching it online -- if you do not
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   746
attend, you miss out!  
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   747
  
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   748
\end{itemize}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   749
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   750
\end{frame}
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   751
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   752
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   753
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   754
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12a8f57f68ea updated
Christian Urban <urbanc@in.tum.de>
parents: 505
diff changeset
   755
\begin{frame}[c]
255
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   756
\frametitle{\begin{tabular}{c}\\[3cm]\alert{Questions?}\end{tabular}}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   757
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   758
\mbox{}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   759
\end{frame}
96a99237fa42 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 254
diff changeset
   760
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
0
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   761
\end{document}
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   762
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   763
%%% Local Variables:  
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   764
%%% mode: latex
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   765
%%% TeX-master: t
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   766
%%% End: 
3a5e09a2ae54 initial comit
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   767