author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Sun, 21 Sep 2014 11:46:49 +0100 | |
changeset 252 | e8ef8f38ca84 |
parent 215 | 828303e8e4af |
child 253 | 75c469893514 |
permissions | -rw-r--r-- |
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 | 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 |
|
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
9 |
%\setmonofont[Scale=.88]{Consolas} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
10 |
%\newfontfamily{\consolas}{Consolas} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
11 |
%\usepackage{beamerthemeplaincu} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
12 |
%\usepackage{fontenc,xltxtra,xunicode} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
13 |
%\defaultfontfeatures{Mapping=tex-text} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
14 |
%\usepackage[absolute,overlay]{textpos} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
15 |
%\usepackage{ifthen} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
16 |
%\usepackage{tikz} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
17 |
%\usepackage{pgf} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
18 |
%\usepackage{calc} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
19 |
%\usepackage{ulem} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
20 |
%\usepackage{listings} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
21 |
%\renewcommand{\uline}[1]{#1} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
22 |
%\usetikzlibrary{arrows} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
23 |
%\usetikzlibrary{automata} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
24 |
%\usetikzlibrary{shapes} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
25 |
%\usetikzlibrary{shadows} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
26 |
%\usetikzlibrary{positioning} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
27 |
%\usetikzlibrary{calc} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
28 |
%\usetikzlibrary{plotmarks} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
29 |
%\usepackage{graphicx} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
30 |
%\usepackage{pgfplots} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
31 |
%\usepackage{../langs} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
32 |
%\usepackage{../data} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
33 |
|
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
34 |
%\makeatletter |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
35 |
%\lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}} |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
36 |
%\@empty\z@\@empty |
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
37 |
%\makeatother |
95
dbe49327b6c5
added new stuff
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
93
diff
changeset
|
38 |
|
0 | 39 |
% beamer stuff |
252
e8ef8f38ca84
added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
215
diff
changeset
|
40 |
\renewcommand{\slidecaption}{AFL 01, King's College London} |
0 | 41 |
|
42 |
||
43 |
\begin{document} |
|
44 |
||
45 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
46 |
\mode<presentation>{ |
|
47 |
\begin{frame}<1>[t] |
|
48 |
\frametitle{% |
|
49 |
\begin{tabular}{@ {}c@ {}} |
|
1 | 50 |
\\[-3mm] |
51 |
\LARGE Automata and \\[-2mm] |
|
52 |
\LARGE Formal Languages (1)\\[-3mm] |
|
0 | 53 |
\end{tabular}} |
54 |
||
55 |
\begin{center} |
|
1 | 56 |
\includegraphics[scale=0.3]{pics/ante1.jpg}\hspace{5mm} |
57 |
\includegraphics[scale=0.31]{pics/ante2.jpg}\\ |
|
58 |
\footnotesize\textcolor{gray}{Antikythera automaton, 100 BC (Archimedes?)} |
|
0 | 59 |
\end{center} |
60 |
||
61 |
\normalsize |
|
62 |
\begin{center} |
|
63 |
\begin{tabular}{ll} |
|
64 |
Email: & christian.urban at kcl.ac.uk\\ |
|
95
dbe49327b6c5
added new stuff
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
93
diff
changeset
|
65 |
Office: & S1.27 (1st floor Strand Building)\\ |
0 | 66 |
Slides: & KEATS |
67 |
\end{tabular} |
|
68 |
\end{center} |
|
69 |
||
70 |
||
71 |
\end{frame}} |
|
72 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
73 |
||
74 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
75 |
\mode<presentation>{ |
|
76 |
\begin{frame}[c] |
|
77 |
||
1 | 78 |
\begin{textblock}{1}(2,5) |
0 | 79 |
\begin{tabular}{c} |
1 | 80 |
\includegraphics[scale=0.15]{pics/servers.png}\\[-2mm] |
81 |
\small Server |
|
0 | 82 |
\end{tabular} |
83 |
\end{textblock} |
|
84 |
||
1 | 85 |
\begin{textblock}{1}(5.6,4) |
86 |
\begin{tikzpicture}[scale=1.1] |
|
87 |
\draw[white] (0,1) node (X) {}; |
|
88 |
\draw[white] (2,1) node (Y) {}; |
|
89 |
\draw[white] (0,0) node (X1) {}; |
|
90 |
\draw[white] (2,0) node (Y1) {}; |
|
91 |
\draw[white] (0,-1) node (X2) {}; |
|
92 |
\draw[white] (2,-1) node (Y2) {}; |
|
93 |
\draw[red, <-, line width = 2mm] (X) -- (Y); |
|
94 |
\node [inner sep=5pt,label=above:\textcolor{black}{GET request}] at ($ (X)!.5!(Y) $) {}; |
|
95 |
\draw[red, ->, line width = 2mm] (X1) -- (Y1); |
|
96 |
\node [inner sep=5pt,label=above:\textcolor{black}{webpage}] at ($ (X1)!.5!(Y1) $) {}; |
|
97 |
\draw[red, <-, line width = 2mm] (X2) -- (Y2); |
|
98 |
\node [inner sep=7pt,label=above:\textcolor{black}{POST data}] at ($ (X2)!.5!(Y2) $) {}; |
|
0 | 99 |
\end{tikzpicture} |
100 |
\end{textblock} |
|
101 |
||
102 |
||
1 | 103 |
\begin{textblock}{1}(9,5.5) |
0 | 104 |
\begin{tabular}{c} |
1 | 105 |
\includegraphics[scale=0.15]{pics/laptop.png}\\[-2mm] |
106 |
\small Browser |
|
0 | 107 |
\end{tabular} |
108 |
\end{textblock} |
|
109 |
||
1 | 110 |
\only<2>{ |
111 |
\begin{textblock}{10}(2,13.5) |
|
0 | 112 |
\begin{itemize} |
1 | 113 |
\item programming languages, compilers |
0 | 114 |
\end{itemize} |
1 | 115 |
\end{textblock}} |
0 | 116 |
|
117 |
||
118 |
\end{frame}} |
|
119 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
120 |
||
121 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
122 |
\mode<presentation>{ |
|
123 |
\begin{frame}[c] |
|
1 | 124 |
|
125 |
transforming strings into structured data\\[10mm] |
|
0 | 126 |
|
1 | 127 |
{\LARGE\bf Lexing}\medskip\\ |
128 |
\hspace{5mm}(recognising ``words'')\\[6mm] |
|
0 | 129 |
|
1 | 130 |
{\LARGE\bf Parsing}\medskip\\ |
131 |
\hspace{5mm}(recognising ``sentences'') |
|
132 |
||
0 | 133 |
\end{frame}} |
1 | 134 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
135 |
||
0 | 136 |
|
137 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
138 |
\mode<presentation>{ |
|
139 |
\begin{frame}[c] |
|
140 |
||
1 | 141 |
The subject is quite old: |
0 | 142 |
|
143 |
\begin{itemize} |
|
1 | 144 |
\item Turing Machines, 1936 |
145 |
\item first compiler for COBOL, 1957 (Grace Hopper) |
|
146 |
\item but surprisingly research papers are still published now |
|
0 | 147 |
\end{itemize} |
148 |
||
1 | 149 |
\begin{flushright} |
150 |
\includegraphics[scale=0.3]{pics/hopper.jpg}\\ |
|
151 |
\footnotesize\textcolor{gray}{Grace Hopper} |
|
152 |
\end{flushright} |
|
153 |
||
154 |
{\footnotesize\textcolor{gray}{(she made it to David Letterman's Tonight Show, \url{http://www.youtube.com/watch?v=aZOxtURhfEU})}} |
|
0 | 155 |
|
1 | 156 |
\end{frame}} |
157 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
158 |
||
159 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
160 |
\mode<presentation>{ |
|
161 |
\begin{frame}[c] |
|
162 |
\frametitle{\begin{tabular}{c}This Course\end{tabular}} |
|
0 | 163 |
|
1 | 164 |
\begin{itemize} |
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
165 |
\item the ultimate goal is to implement a small compiler (a really small one for the JVM)\bigskip |
1 | 166 |
\end{itemize} |
167 |
||
168 |
Let's start with: |
|
169 |
||
170 |
\begin{itemize} |
|
171 |
\item a web-crawler |
|
172 |
\item an email harvester |
|
173 |
\item a web-scraper |
|
174 |
\end{itemize} |
|
175 |
||
98
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
176 |
\begin{textblock}{6}(10,7) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
177 |
\begin{tikzpicture}[scale=0.38] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
178 |
\begin{axis}[axis x line=bottom, axis y line=left, ylabel=secs, |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
179 |
xlabel=n, |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
180 |
enlargelimits=0.05, |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
181 |
ybar interval=0.7, legend style=small] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
182 |
\addplot file {interpreted2.data}; |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
183 |
\addplot file {compiled2.data}; |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
184 |
%\legend{interpreted, compiled} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
185 |
\end{axis} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
186 |
\end{tikzpicture} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
187 |
\end{textblock} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
188 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
189 |
|
1 | 190 |
\end{frame}} |
191 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
0 | 192 |
|
2 | 193 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
194 |
\mode<presentation>{ |
|
3 | 195 |
\begin{frame}[t] |
13 | 196 |
\frametitle{\begin{tabular}{c}A Web-Crawler\end{tabular}} |
2 | 197 |
|
3 | 198 |
\mbox{}\\[10mm] |
199 |
||
2 | 200 |
\begin{enumerate} |
201 |
\item given an URL, read the corresponding webpage |
|
202 |
\item extract all links from it |
|
203 |
\item call the web-crawler again for all these links |
|
204 |
\end{enumerate} |
|
205 |
||
206 |
\end{frame}} |
|
207 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
208 |
||
209 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
210 |
\mode<presentation>{ |
|
3 | 211 |
\begin{frame}[t] |
13 | 212 |
\frametitle{\begin{tabular}{c}A Web-Crawler\end{tabular}} |
2 | 213 |
|
3 | 214 |
\mbox{}\\[10mm] |
215 |
||
216 |
||
2 | 217 |
\begin{enumerate} |
218 |
\item given an URL, read the corresponding webpage |
|
219 |
\item if not possible print, out a problem |
|
220 |
\item if possible, extract all links from it |
|
221 |
\item call the web-crawler again for all these links |
|
222 |
\end{enumerate}\bigskip\pause |
|
223 |
||
3 | 224 |
\small (we need a bound for the number of recursive calls) |
2 | 225 |
|
226 |
\small (the purpose is to check all links on my own webpage) |
|
227 |
\end{frame}} |
|
228 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
229 |
||
0 | 230 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
231 |
\mode<presentation>{ |
|
232 |
\begin{frame}[c] |
|
1 | 233 |
\frametitle{\begin{tabular}{c}Scala\end{tabular}} |
234 |
||
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
235 |
\small a simple Scala function for reading webpages\\[-3mm] |
0 | 236 |
|
98
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
237 |
\footnotesize |
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
238 |
{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app0.scala}}}\pause |
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
239 |
{\lstset{language=Scala}\texttt{\lstinline{get_page("""http://www.inf.kcl.ac.uk/staff/urbanc/""")}}}\pause\bigskip |
0 | 240 |
|
3 | 241 |
|
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
242 |
\small slightly more complicated for handling errors properly:\\[-3mm] |
2 | 243 |
|
98
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
244 |
\footnotesize |
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
245 |
{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app1.scala}}} |
1 | 246 |
|
0 | 247 |
|
248 |
\end{frame}} |
|
249 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
250 |
||
251 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
252 |
\mode<presentation>{ |
|
98
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
253 |
\begin{frame}[c] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
254 |
\frametitle{\begin{tabular}{c}Why Scala?\end{tabular}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
255 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
256 |
\begin{textblock}{6}(1,3) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
257 |
\begin{tabular}{l} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
258 |
\mbox{}\hspace{-1mm}\includegraphics[scale=0.36]{pics/twitter.png}\\[-1mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
259 |
\includegraphics[scale=0.30]{pics/linked.png}\\ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
260 |
\includegraphics[scale=0.30]{pics/guardian.jpg}\\[-3mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
261 |
\mbox{}\hspace{-2mm}\includegraphics[scale=0.38]{pics/morgan.png}\\[-3mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
262 |
\includegraphics[scale=0.30]{pics/suisse.png}\\ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
263 |
\includegraphics[scale=0.20]{pics/edf.png}\\[-1mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
264 |
\includegraphics[scale=0.08]{pics/novell.png}\\[-1mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
265 |
\includegraphics[scale=0.30]{pics/foursquare.png}\\ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
266 |
\includegraphics[scale=0.30]{pics/hsbc.png}\\ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
267 |
{\large\bf ...} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
268 |
\end{tabular} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
269 |
\end{textblock} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
270 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
271 |
\only<2->{ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
272 |
\begin{textblock}{6}(6,3) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
273 |
\includegraphics[scale=0.35]{pics/jobgraph.png}\\ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
274 |
\end{textblock}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
275 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
276 |
\only<3->{ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
277 |
\begin{textblock}{6}(7.3,9.2) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
278 |
\begin{tabular}{l} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
279 |
\footnotesize 2013: 1$\%$\\[-2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
280 |
\footnotesize 2014: 3$\%$\\[-2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
281 |
\footnotesize 2015: 9$\%$\\[-2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
282 |
\footnotesize 2016: 27$\%$\\[-2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
283 |
\footnotesize 2017: 81$\%$\\[-2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
284 |
\footnotesize 2018: 243$\%$ \raisebox{-1mm}{\includegraphics[scale=0.02]{pics/smiley.jpg}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
285 |
\end{tabular} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
286 |
\end{textblock}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
287 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
288 |
\only<3->{ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
289 |
\begin{textblock}{6}(6,9.5) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
290 |
\footnotesize 5 yrs $\begin{cases}\mbox{}\\[1.4cm]\end{cases}$ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
291 |
\end{textblock}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
292 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
293 |
\only<4->{ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
294 |
\begin{textblock}{11}(5,14.1) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
295 |
\textcolor{gray}{ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
296 |
\footnotesize {\bf in London today:} 1 Scala job for every 30 Java jobs;\\[-2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
297 |
Scala programmers seem to get up to 20\% better salary} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
298 |
\end{textblock}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
299 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
300 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
301 |
\only<5->{ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
302 |
\begin{textblock}{1}(3,6) |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
303 |
\begin{tikzpicture} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
304 |
\draw (0,0) node[inner sep=2mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
305 |
{\normalsize\color{darkgray} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
306 |
\begin{minipage}{8.5cm}\raggedright\normalsize |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
307 |
Scala is a functional and object-oriented programming language; compiles to the JVM; does not |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
308 |
need null-pointer exceptions; a course on Coursera\\ |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
309 |
\mbox{}\hfill\textcolor{blue}{\url{http://www.scala-lang.org}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
310 |
\end{minipage}}; |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
311 |
\end{tikzpicture} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
312 |
\end{textblock}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
313 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
314 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
315 |
\end{frame}} |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
316 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
317 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
318 |
|
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
319 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
1f3d89fe9820
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
320 |
\mode<presentation>{ |
3 | 321 |
\begin{frame}[t] |
322 |
\frametitle{\begin{tabular}{c}A Regular Expression\end{tabular}} |
|
323 |
||
324 |
\begin{itemize} |
|
325 |
\item \ldots{} is a pattern or template for specifying strings |
|
326 |
\end{itemize}\bigskip |
|
327 |
||
328 |
\begin{center} |
|
329 |
\only<1>{{\lstset{language=Scala}\fontsize{18}{19}\selectfont\bf |
|
330 |
\texttt{"https?://[$\hat{\hspace{2mm}}$"]*"}}}% |
|
331 |
\only<2>{{\lstset{language=Scala}\fontsize{18}{19}\selectfont\bf |
|
332 |
\texttt{"""\textbackslash{}"https?://[$\hat{\hspace{2mm}}$\textbackslash{}"]*\textbackslash{}"""".r}}} |
|
333 |
\end{center}\bigskip\bigskip |
|
334 |
||
335 |
matches for example\\ |
|
336 |
\;{\lstset{language=Scala}\fontsize{12}{14}\selectfont\bf |
|
337 |
\texttt{"http://www.foobar.com"}}\\ |
|
338 |
\;{\lstset{language=Scala}\fontsize{12}{14}\selectfont\bf |
|
339 |
\texttt{"https://www.tls.org"}}\\ |
|
340 |
||
341 |
\end{frame}} |
|
342 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
343 |
||
344 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
345 |
\mode<presentation>{ |
|
0 | 346 |
\begin{frame}[c] |
347 |
||
3 | 348 |
{\lstset{language=Scala}\fontsize{18}{19}\selectfont\bf |
349 |
\texttt{rexp.findAllIn(string)}}\medskip |
|
350 |
||
351 |
returns a list of all (sub)strings that match the regular expression\bigskip\bigskip |
|
352 |
||
353 |
{\lstset{language=Scala}\fontsize{18}{19}\selectfont\bf |
|
354 |
\texttt{rexp.findFirstIn(string)}}\medskip |
|
355 |
||
356 |
returns either {\bf\texttt{None}} if no (sub)string matches |
|
357 |
or {\bf\texttt{Some(s)}} with the first (sub)string |
|
0 | 358 |
|
359 |
\end{frame}} |
|
360 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
361 |
||
362 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
363 |
\mode<presentation>{ |
|
364 |
\begin{frame}[c] |
|
365 |
||
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
366 |
\small |
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
367 |
{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app2.scala}}}\medskip |
0 | 368 |
|
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
369 |
{\lstset{language=Scala}\texttt{crawl(some\_start\_URL, 2)}}\ |
0 | 370 |
|
371 |
\end{frame}} |
|
372 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
373 |
||
374 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
375 |
\mode<presentation>{ |
|
3 | 376 |
\begin{frame}[c] |
0 | 377 |
|
3 | 378 |
\footnotesize |
379 |
a version that only ``crawls'' links in my domain: |
|
0 | 380 |
|
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
381 |
\small |
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
382 |
{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app3.scala}}} |
0 | 383 |
|
384 |
||
385 |
\end{frame}} |
|
386 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
387 |
||
388 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
389 |
\mode<presentation>{ |
|
390 |
\begin{frame}[c] |
|
3 | 391 |
|
392 |
\footnotesize |
|
393 |
a little email ``harvester'': |
|
394 |
||
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
395 |
\small |
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
396 |
{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app4.scala}}}\bigskip |
3 | 397 |
|
398 |
\tiny |
|
399 |
\textcolor{gray}{\url{http://net.tutsplus.com/tutorials/other/8-regular-expressions-you-should-know/}} |
|
400 |
||
401 |
\end{frame}} |
|
402 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
403 |
||
404 |
\newcommand{\bl}[1]{\textcolor{blue}{#1}} |
|
405 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
406 |
\mode<presentation>{ |
|
14 | 407 |
\begin{frame}[t] |
3 | 408 |
\frametitle{\begin{tabular}{c}Regular Expressions\end{tabular}} |
0 | 409 |
|
14 | 410 |
Their inductive definition:\medskip |
411 |
||
412 |
\begin{textblock}{6}(2,5) |
|
3 | 413 |
\begin{tabular}{@ {}rrl@ {\hspace{13mm}}l} |
414 |
\bl{r} & \bl{$::=$} & \bl{$\varnothing$} & null\\ |
|
5 | 415 |
& \bl{$\mid$} & \bl{$\epsilon$} & empty string / "" / []\\ |
3 | 416 |
& \bl{$\mid$} & \bl{c} & character\\ |
417 |
& \bl{$\mid$} & \bl{r$_1$ $\cdot$ r$_2$} & sequence\\ |
|
418 |
& \bl{$\mid$} & \bl{r$_1$ + r$_2$} & alternative / choice\\ |
|
419 |
& \bl{$\mid$} & \bl{r$^*$} & star (zero or more)\\ |
|
420 |
\end{tabular} |
|
421 |
\end{textblock} |
|
422 |
||
423 |
\end{frame}} |
|
424 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
425 |
||
426 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
427 |
\mode<presentation>{ |
|
428 |
\begin{frame}[t] |
|
429 |
\frametitle{\begin{tabular}{c}Regular Expressions\end{tabular}} |
|
430 |
||
14 | 431 |
\small |
432 |
In Scala: |
|
433 |
||
434 |
||
3 | 435 |
{\lstset{language=Scala}\fontsize{8}{10}\selectfont |
95
dbe49327b6c5
added new stuff
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
93
diff
changeset
|
436 |
\texttt{\lstinputlisting{../progs/app51.scala}}} |
0 | 437 |
|
438 |
||
439 |
\end{frame}} |
|
440 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
441 |
||
3 | 442 |
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}% for definitions |
0 | 443 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
444 |
\mode<presentation>{ |
|
445 |
\begin{frame}[c] |
|
3 | 446 |
\frametitle{\begin{tabular}{c}The Meaning of a\\[-2mm] Regular Expression\end{tabular}} |
0 | 447 |
|
4 | 448 |
\begin{textblock}{15}(1,4) |
3 | 449 |
\begin{tabular}{@ {}rcl} |
450 |
\bl{$L$($\varnothing$)} & \bl{$\dn$} & \bl{$\varnothing$}\\ |
|
451 |
\bl{$L$($\epsilon$)} & \bl{$\dn$} & \bl{$\{$""$\}$}\\ |
|
452 |
\bl{$L$(c)} & \bl{$\dn$} & \bl{$\{$"c"$\}$}\\ |
|
453 |
\bl{$L$(r$_1$ + r$_2$)} & \bl{$\dn$} & \bl{$L$(r$_1$) $\cup$ $L$(r$_2$)}\\ |
|
4 | 454 |
\bl{$L$(r$_1$ $\cdot$ r$_2$)} & \bl{$\dn$} & \bl{$\{$ s$_1$ @ s$_2$ $|$ s$_1$ $\in$ $L$(r$_1$) $\wedge$ s$_2$ $\in$ |
455 |
$L$(r$_2$) $\}$}\\ |
|
5 | 456 |
\bl{$L$(r$^*$)} & \bl{$\dn$} & \onslide<4->{\bl{$\bigcup_{n \ge 0}$ $L$(r)$^n$}}\\ |
4 | 457 |
\end{tabular}\bigskip |
3 | 458 |
|
4 | 459 |
\onslide<2->{ |
460 |
\hspace{5mm}\bl{$L$(r)$^0$ $\;\dn\;$ $\{$""$\}$}\\ |
|
5 | 461 |
\bl{$L$(r)$^{n+1}$ $\;\dn\;$ $L$(r) @ $L$(r)$^n$}\hspace{9mm}\onslide<3->{\small\textcolor{gray}{(append on sets)}\\ |
462 |
\small\hspace{5cm}\textcolor{gray}{$\{$ s$_1$ @ s$_2$ $|$ s$_1$ $\in$ $L$(r) $\wedge$ s$_2$ $\in$ |
|
463 |
$L$(r)$^n$ $\}$}} |
|
4 | 464 |
} |
465 |
\end{textblock} |
|
466 |
||
0 | 467 |
\end{frame}} |
468 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
469 |
||
5 | 470 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
471 |
\mode<presentation>{ |
|
472 |
\begin{frame}[c] |
|
8 | 473 |
\frametitle{\begin{tabular}{c}The Meaning of Matching\end{tabular}} |
5 | 474 |
|
475 |
\large |
|
476 |
a regular expression \bl{r} matches a string \bl{s} is defined as |
|
477 |
||
478 |
\begin{center} |
|
479 |
\bl{s $\in$ $L$(r)}\\ |
|
480 |
\end{center} |
|
481 |
||
482 |
\end{frame}} |
|
483 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
484 |
||
3 | 485 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
486 |
\mode<presentation>{ |
|
487 |
\begin{frame}[c] |
|
488 |
\frametitle{\begin{tabular}{c}This Course\end{tabular}} |
|
489 |
||
7 | 490 |
We will have a look at: |
3 | 491 |
|
492 |
\begin{itemize} |
|
7 | 493 |
\item regular expressions / regular expression matching |
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
494 |
\item derivatives |
3 | 495 |
\item automata |
496 |
\item parsing |
|
497 |
\item grammars |
|
97
60a3ba90dd53
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
95
diff
changeset
|
498 |
\item a small interpreter / compiler |
3 | 499 |
\end{itemize} |
500 |
||
501 |
\end{frame}} |
|
502 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
503 |
||
0 | 504 |
|
505 |
||
506 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
507 |
\mode<presentation>{ |
|
508 |
\begin{frame}[c] |
|
1 | 509 |
\frametitle{\begin{tabular}{c}Exam\end{tabular}} |
0 | 510 |
|
511 |
\begin{itemize} |
|
7 | 512 |
\item The question ``Is this relevant for the exam?'' is not appreciated!\bigskip\\ |
0 | 513 |
|
14 | 514 |
Whatever is in the homework sheets (and is not marked ``optional'') is relevant for the |
515 |
exam.\\ No code needs to be written in the exam. |
|
0 | 516 |
\end{itemize} |
517 |
||
518 |
\end{frame}} |
|
519 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
520 |
||
521 |
||
522 |
\end{document} |
|
523 |
||
524 |
%%% Local Variables: |
|
525 |
%%% mode: latex |
|
526 |
%%% TeX-master: t |
|
527 |
%%% End: |
|
528 |