slides/slides03.tex
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 06 Jun 2024 22:18:15 +0100
changeset 490 4778fefecd0c
parent 481 e03a0100ec46
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
     1
% !TEX program = xelatex
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
     2
\documentclass[dvipsnames,14pt,t,xelatex,aspectratio=169,xcolor={table}]{beamer}
448
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
     3
\usepackage{../styles/slides}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
     4
\usepackage{../styles/mygraphs}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
     5
\usepackage{../styles/langs}
155
371acb50643d updated
Christian Urban <urbanc@in.tum.de>
parents: 140
diff changeset
     6
%%\usepackage{../data}
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
     7
\usetikzlibrary{shapes}
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
     8
\usepackage[export]{adjustbox}
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    10
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
\hfuzz=220pt 
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    13
\usepackage{tcolorbox}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    14
\newtcolorbox{mybox}{colback=red!5!white,colframe=red!75!black}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    15
\newtcolorbox{mybox2}[1]{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries,title=#1}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    16
\newtcolorbox{mybox3}[1]{colback=Cyan!5!white,colframe=Cyan!75!black,fonttitle=\bfseries,title=#1}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    17
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    18
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    19
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    20
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
%\setmonofont[Scale=.88]{Consolas}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
%\newfontfamily{\consolas}{Consolas}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
\lstset{language=Scala,
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
        style=mystyle,
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
        numbersep=0pt,
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
        numbers=none,
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
        xleftmargin=0mm}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
\newcommand{\bl}[1]{\textcolor{blue}{#1}}     
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
% beamer stuff 
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
    33
\renewcommand{\slidecaption}{PEP (Scala) 03, King's College London}
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    35
\newcommand{\UParrow}[3]{%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    36
\begin{textblock}{0}(#2,#3)%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    37
\onslide<#1>{%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    38
\begin{tikzpicture}%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    39
\node at (0,0) [single arrow, shape border rotate=90, fill=red,text=red]{a};%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    40
\end{tikzpicture}}%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    41
\end{textblock}}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    42
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    43
\newcommand{\DOWNarrow}[3]{%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    44
\begin{textblock}{0}(#2,#3)%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    45
\onslide<#1>{%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    46
\begin{tikzpicture}%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    47
\node at (0,0) [single arrow, shape border rotate=270, fill=red,text=red]{a};%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    48
\end{tikzpicture}}%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    49
\end{textblock}}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    50
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
\begin{document}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
\begin{frame}[t]
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
\frametitle{%
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
  \begin{tabular}{@ {}c@ {}}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
  \\[5mm]
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    57
  \hspace{7mm}\huge PEP Scala (\liningnums{3}) 
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
  \end{tabular}}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
  \normalsize
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  \begin{center}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  \begin{tabular}{ll}
155
371acb50643d updated
Christian Urban <urbanc@in.tum.de>
parents: 140
diff changeset
    63
    Email:  & christian.urban at kcl.ac.uk\\
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    64
    %Office: & N\liningnums{7.07} (North Wing, Bush House)\bigskip\\
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
    65
    Slides \& Code: & KEATS\bigskip\\
448
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
    66
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    67
    Office Hour: &  Fridays 13:00 -- 14:00\\
448
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
    68
    Location: & N7.07 (North Wing, Bush House)\bigskip\\
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
    69
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
    70
    Pollev: & \texttt{\alert{https://pollev.com/cfltutoratki576}}\\  \\
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    71
    %Additionally: & (for Scala) Tuesdays 10:45 -- 11:45\\ 
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  \end{tabular}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  \end{center}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    75
  %\tiny
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    76
  %developed since 2004 bv Martin Odersky
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    77
  %picture about assignments
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    78
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    79
\begin{textblock}{6}(0.5,0.5)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    80
\includegraphics[scale=0.035]{../pics/assign.jpg}\\[-1mm]
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    81
\end{textblock}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    82
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
\end{frame}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    86
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
    87
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    88
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    89
% \begin{frame}[c]
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    90
% \frametitle{Preliminary 6}
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    91
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    92
% Raw marks (261 submissions):\bigskip
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    93
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    94
% \begin{itemize}
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    95
% \item 3\%: \hspace{4mm}219
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    96
% \item 2\%: \hspace{4mm}19
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    97
% \item 1\%: \hspace{4mm}0
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    98
% \item 0\%: \hspace{4mm}23 \;(4 no submission)
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
    99
% \end{itemize}  
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   100
% \end{frame}
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   101
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   102
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   103
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   104
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   106
\begin{frame}[c,fragile]
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   107
\frametitle{Default Arguments}
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   108
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   109
\small
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   110
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-3mm]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   111
def collatzHelper(n: Int, a: Int = 0) : Int = ...
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   112
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   113
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   114
collatzHelper(n, 3)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   115
collatzHelper(n, 0)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   116
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   117
collatzHelper(n)   // a = 0   
155
371acb50643d updated
Christian Urban <urbanc@in.tum.de>
parents: 140
diff changeset
   118
\end{lstlisting}
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   119
448
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   120
\DOWNarrow{1}{8.3}{3.4}
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   121
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   122
\end{frame}
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   123
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   124
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   125
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   126
\begin{frame}[c,fragile]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   127
\frametitle{Last Week: Options \& HO Funs.}
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   128
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   129
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   130
List(7,2,3,4,5,6).find(_ < 4)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   131
res: Option[Int] = Some(2)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   132
 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   133
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   134
List(5,6,7,8,9).find(_ < 4)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   135
res: Option[Int] = None
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   136
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   137
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   138
List(1,2,3,4,5).map(x => x * x)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   139
res: List[Int] = List(1, 4, 9, 16, 25)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   140
\end{lstlisting}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   141
  
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   142
  \end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   143
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   144
 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   145
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   146
\begin{frame}[c,fragile]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   147
\frametitle{Web-Crawler (1)}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   148
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   149
\small
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   150
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-7mm]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   151
def get_page(url: String) : String = {
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   152
Try(fromURL(url)("ISO-8859-1").take(10000).mkString)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   153
   .getOrElse { println(s" Problem with: $url"); ""}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   154
}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   155
\end{lstlisting}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   156
\end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   157
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   158
 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   159
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   160
\begin{frame}[c,fragile]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   161
\frametitle{Web-Crawler (2)}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   162
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   163
\small
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   164
\begin{lstlisting}[language=Scala, numbers=none, 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   165
                    xleftmargin=-7mm, escapeinside={(*@}{@*)}]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   166
val http_pattern = """(*@\textcolor{codegreen}{"}@*)https?://[\^(*@\textcolor{codegreen}{"}@*)]*(*@\textcolor{codegreen}{"}@*)""".r
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   167
val email_pattern = 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   168
 """([a-z\d\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})""".r
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   169
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   170
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   171
def unquote(s: String) = s.drop(1).dropRight(1)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   172
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   173
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   174
def get_all_URLs(page: String): Set[String] = 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   175
  http_pattern.findAllIn(page).map(unquote).toSet
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   176
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   177
  // returns all URLs in a page  
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   178
\end{lstlisting}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   179
  
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   180
  \end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   181
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   182
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   183
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   184
\begin{frame}[c,fragile]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   185
\frametitle{Web-Crawler (3)}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   186
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   187
\small
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   188
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   189
def crawl(url: String, n: Int) : Unit = {
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   190
  if (n == 0) ()
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   191
  else {
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   192
    println(s"  Visiting: $n $url")
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   193
    val page = get_page(url)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   194
    for (u <- get_all_URLs(page)) 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   195
      crawl(u, n - 1)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   196
  }
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   197
}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   198
\end{lstlisting}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   199
\end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   200
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   201
  
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   202
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   203
\begin{frame}[c,fragile]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   204
\frametitle{Email Harvester}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   205
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   206
\small
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   207
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-3mm]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   208
def emails(url: String, n: Int) : Set[String] = {
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   209
 if (n == 0) Set()
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   210
 else {
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   211
  println(s"  Visiting: $n $url")
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   212
  val page = get_page(url)
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   213
  val new_emails = 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   214
    email_pattern.findAllIn(page).toSet
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   215
  new_emails ++ 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   216
    (for (u <- get_all_URLs(page)) 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   217
       yield emails(u, n - 1)).flatten
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   218
 }
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   219
} 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   220
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   221
\end{lstlisting}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   222
\end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   223
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   224
  
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   225
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   226
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   227
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
68
8da9e0c16194 updated
Christian Urban <urbanc@in.tum.de>
parents: 67
diff changeset
   228
\begin{frame}[c]
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   229
\frametitle{Jumping Towers}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   230
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   231
\begin{center}
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   232
\begin{tikzpicture}[scale=1.3]
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   233
  \draw[line width=1mm,cap=round] (0,0) -- (5,0);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   234
  \draw[line width=1mm,cap=round] (0,1) -- (5,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   235
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   236
  \draw[line width=1mm,cap=round] (0,0) -- (0,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   237
  \node at (0.5,0.5) {\textbf{\Large 3}};
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   238
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   239
  \draw[line width=1mm,cap=round] (1,0) -- (1,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   240
  \node at (1.5,0.5) {\textbf{\Large 4}};
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   241
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   242
  \draw[line width=1mm,cap=round] (2,0) -- (2,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   243
  \node at (2.5,0.5) {\textbf{\Large 2}};
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   244
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   245
  \draw[line width=1mm,cap=round] (3,0) -- (3,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   246
  \node at (3.5,0.5) {\textbf{\Large 0}};
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   247
  
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   248
  \draw[line width=1mm,cap=round] (4,0) -- (4,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   249
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   250
  \node at (4.5,0.5) {\textbf{\Large 1}};
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   251
  
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   252
  \draw[line width=1mm,cap=round] (5,0) -- (5,1);
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   253
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   254
  \draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (0.5,1) to (1.5,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   255
  \draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (0.5,1) to (2.5,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   256
  \draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (0.5,1) to (3.5,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   257
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   258
  \draw[->,line width=0.5mm,cap=round,out=-90,in=-90,relative] (2.5,0) to (3.5,0);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   259
  \draw[->,line width=0.5mm,cap=round,out=-90,in=-90,relative] (2.5,0) to (4.5,0);
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   260
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   261
  \draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (4.5,1) to (5.7,1);
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   262
  \node at (5.7, 0.8) {End};
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   263
\end{tikzpicture}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   264
\end{center}\bigskip
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   265
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   266
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   267
shortest: 3 $\rightarrow$ 4 $\rightarrow$ End
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   268
67
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   269
\end{frame}
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   270
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   271
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   272
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ca5884c2e3bd updated
Christian Urban <urbanc@in.tum.de>
parents: 66
diff changeset
   273
70
6024381415cb updated
Christian Urban <urbanc@in.tum.de>
parents: 68
diff changeset
   274
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
6024381415cb updated
Christian Urban <urbanc@in.tum.de>
parents: 68
diff changeset
   275
\begin{frame}[c]
366
1c829680503e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 365
diff changeset
   276
\frametitle{next moves}
70
6024381415cb updated
Christian Urban <urbanc@in.tum.de>
parents: 68
diff changeset
   277
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   278
\begin{center}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   279
  \begin{tikzpicture}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   280
    [grow=right,level distance=30mm,child anchor=north,line width=0.5mm]
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   281
  \node {$[3,4,2,0,1]$}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   282
     child {node {$[0,1]$}}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   283
     child {node {$[2,0,1]$}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   284
        child {node {$[1]$} child [level distance=13mm] {node {End}}}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   285
        child {node {$[0,1]$}}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   286
     }
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   287
     child {node {$[4,2,0,1]$\ldots}};
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   288
\end{tikzpicture}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   289
\end{center}
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   290
366
1c829680503e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 365
diff changeset
   291
\begin{textblock}{4}(13,12)
1c829680503e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 365
diff changeset
   292
\includegraphics[scale=0.06]{../pics/chess.jpg}
1c829680503e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 365
diff changeset
   293
\end{textblock}
1c829680503e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 365
diff changeset
   294
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   295
\end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   296
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   297
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   298
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   299
\begin{frame}[c,fragile]
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   300
\frametitle{Reverse Polish Notation}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   301
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   302
{\Large\bl{$(3 + 1) * (2 + 9)$}}\bigskip
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   303
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   304
{\Large$\Rightarrow$}\bigskip
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   305
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   306
{\;\;\Large\bl{$3\;\;1\;+\;2\;\;9\;+\;*$}}
323
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   307
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   308
\begin{textblock}{3}(11,4)
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   309
\begin{onlyenv}<2>
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   310
\begin{lstlisting}[language=JVMIS]
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   311
ldc 3
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   312
ldc 1
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   313
iadd
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   314
ldc 2
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   315
ldc 9
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   316
iadd
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   317
imul
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   318
\end{lstlisting}
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   319
\end{onlyenv} 
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   320
\end{textblock}
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   321
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   322
\end{frame}
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   323
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   324
 
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   325
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   326
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   327
% \begin{frame}[c,fragile]
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   328
% \frametitle{Sudoku}
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   329
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   330
% A very simple-minded version on 110 problems:\bigskip
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   331
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   332
% \begin{itemize}
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   333
% \item 1 core: 800 secs
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   334
% \item 2 cores: 400 secs
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   335
% \item 8 cores: 290 secs
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   336
% \item 18 cores: 142 secs
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   337
% \end{itemize}
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   338
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   339
% \end{frame}
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   340
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
320
cdfb2ce30a3d updated
Christian Urban <urbanc@in.tum.de>
parents: 218
diff changeset
   341
 
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   342
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   343
% \begin{frame}[t]
323
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   344
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   345
%   \begin{center}  
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   346
%   \includegraphics[scale=0.3]{../pics/blow.png}
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   347
%   \end{center}
323
1f8005b4cdf6 updated
Christian Urban <urbanc@in.tum.de>
parents: 320
diff changeset
   348
  
365
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   349
%   \begin{textblock}{14}(2,11.4)
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   350
%   \large\bf{}Mind-Blowing Programming Languages:\\ 
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   351
%   \centering JavaScript
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   352
%   \end{textblock}
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   353
% \end{frame}
fc118ee0fce4 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 323
diff changeset
   354
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217
e689375abcc1 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   355
382
1bd800376e0c updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 367
diff changeset
   356
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
448
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   357
%\begin{frame}[t]
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   358
%\frametitle{Preliminary 1 (Scala)}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   359
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   360
%Raw marks (298 submissions):\bigskip
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   361
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   362
%\begin{itemize}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   363
%\item 3\%: \hspace{4mm}227
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   364
%\item 2\%: \hspace{4mm}35
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   365
%\item 1\%: \hspace{4mm}9
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   366
%\item 0\%: \hspace{4mm}27 
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   367
%\end{itemize}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   368
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   369
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   370
%\end{frame}
384
6e1237691307 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 382
diff changeset
   371
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
448
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   372
%\begin{frame}[t]
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   373
%\frametitle{Preliminary 2 (Scala)}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   374
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   375
%Raw marks (301 submissions):\bigskip%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   376
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   377
%\begin{itemize}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   378
%\item 3.0\%: \hspace{4mm}236
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   379
%\item 2.5\%: \hspace{4mm}5
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   380
%\item 2.0\%: \hspace{4mm}7
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   381
%\item 1.5\%: \hspace{4mm}13
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   382
%\item 1.0\%: \hspace{4mm}1
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   383
%\item 0.5\%: \hspace{4mm}2
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   384
%\item 0.0\%: \hspace{4mm}37
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   385
%\end{itemize}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   386
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   387
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   388
%\end{frame}
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   389
%
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   390
%\begin{frame}<1-20>
db2a3e3287a9 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 416
diff changeset
   391
%\end{frame}
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   392
449
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   393
\begin{frame}<1-10>[t]
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   394
  
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   395
\end{frame}
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   396
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   397
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   398
\begin{frame}[t,fragile]
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   399
\frametitle{\mbox{}\hspace{40mm}\textbf{Testing Server}}
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   400
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   401
\begin{textblock}{5}(2,6)
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   402
\includegraphics[scale=0.35]{../pics/commits.png}
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   403
\end{textblock}
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   404
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   405
\end{frame}
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   406
481
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   407
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   408
{
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   409
\setbeamercolor{background canvas}{bg=cream}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   410
\begin{frame}[c]
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   411
  \frametitle{\mbox{}\hspace{40mm}\textbf{Feedback in
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   412
      \textcolor{red}{\underline{CFL}!}}}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   413
  
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   414
\begin{minipage}{1.3\textwidth}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   415
\begin{mybox3}{End-of-year feedback for 6CCS3CFL in 2019}\it\small
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   416
Unequivocally the worst module I've taken on this course. The subject
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   417
matter is fascinating, however the insistence on the use of this
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   418
abomination of a language "Scala" completely ruins it. If you're going
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   419
to teach something as complex as this, use a proper language, not some
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   420
"object oriented functional" abomination. Use C, you know, the
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   421
language that real compilers are written in. I will go to the end of
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   422
the earth to dissuade others from taking this module so long as Scala
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   423
is still being used.\\
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   424
\mbox{}\hfill-- Lone voice in the end-of-year feedback in 2019
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   425
\end{mybox3}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   426
\end{minipage}\bigskip
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   427
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   428
\end{frame}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   429
}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   430
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   431
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   432
{\definecolor{rred}{HTML}{C0504D}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   433
\setbeamercolor{background canvas}{bg=cream}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   434
\begin{frame}[c]
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   435
\frametitle{Students in CFL}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   436
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   437
\begin{center}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   438
\begin{tikzpicture}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   439
  \begin{axis}[symbolic x coords={2016,2017,2018,2019,2020,2021,2022,2023},
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   440
    width  = \textwidth,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   441
    height = 5cm,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   442
    bar width=8mm,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   443
    nodes near coords,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   444
    axis lines = left,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   445
    text=black,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   446
    ymin=0,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   447
    clip=false,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   448
    hide y axis,
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   449
    axis line style={-},
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   450
    name=mygraph
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   451
    ]
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   452
    
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   453
\addplot[ybar,style={rred,fill=rred!75,mark=none},text=black] coordinates {
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   454
(2023,183)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   455
(2022,112)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   456
(2021,98)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   457
(2020,59)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   458
(2019,38)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   459
(2018,20)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   460
(2017,22)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   461
(2016,8)};
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   462
\end{axis}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   463
\node[anchor=north, yshift=-10mm] at (mygraph.south) {\small{}Student numbers since the start of the compiler module.};
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   464
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   465
\end{tikzpicture}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   466
\end{center}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   467
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   468
\begin{textblock}{5}(12, 2.5)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   469
  \includegraphics[scale=0.15]{../pics/cfl.png}\\
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   470
  \hspace{5mm}2021
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   471
\end{textblock}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   472
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   473
\begin{textblock}{5}(12, 9)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   474
  \includegraphics[scale=0.15]{../pics/cfl2021.png}\\
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   475
  \hspace{5mm}2022
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   476
\end{textblock}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   477
\end{frame}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   478
}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   479
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   480
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   481
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   482
{
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   483
\setbeamercolor{background canvas}{bg=cream}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   484
\begin{frame}[c]
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   485
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   486
\mbox{}\\[-4mm]  
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   487
   
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   488
\begin{minipage}{1.3\textwidth}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   489
\begin{mybox3}{One comment from this year}\it\small
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   490
  I feel like the module's point is to help us experience what it is
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   491
  like to program very challenging problems, it's not very realistic
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   492
  as in a realistic scenario we would have access to the internet, and
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   493
  other people's code and may collaborate. I feel like the point of
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   494
  the module is taken away due to how the plagiarism and collusion
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   495
  rules are put into place.
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   496
\end{mybox3}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   497
\end{minipage}\smallskip
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   498
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   499
\begin{minipage}{1.3\textwidth}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   500
\begin{mybox3}{Another comment from this year}\it\small
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   501
To prepare students for the C++ coursework better, for example introducing recursion and/or backtracking, because that is a big part of the coursework but wasn't even touched upon in the videos
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   502
\end{mybox3}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   503
\end{minipage}\smallskip
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   504
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   505
\begin{minipage}{1.3\textwidth}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   506
\begin{mybox3}{Even another comment from this year}\it\small
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   507
The coursework is too difficult.
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   508
\end{mybox3}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   509
\end{minipage}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   510
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   511
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   512
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   513
\end{frame}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   514
}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   515
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   516
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   517
{
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   518
\setbeamercolor{background canvas}{bg=cream}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   519
\begin{frame}[c]
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   520
   
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   521
\begin{itemize}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   522
\item we reduced the amount of work this year and gave more time for C++ CW
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   523
\item we recruited TA's for\bigskip
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   524
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   525
installation problems:
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   526
\begin{itemize}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   527
\item Oscar Sjostedt (\texttt{\small{}oscar.sjostedt@kcl.ac.uk})
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   528
\item Nicole Lehchevska (\texttt{\small{}nicole.lehchevska@kcl.ac.uk})\bigskip
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   529
\end{itemize}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   530
github problems:
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   531
\begin{itemize}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   532
\item Quan Tran (\texttt{\small{}anh.tran@kcl.ac.uk})\bigskip
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   533
\end{itemize}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   534
discussion forum / general problems:
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   535
\begin{itemize}  
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   536
\item Ruben Ticehurst-James (\texttt{\small{}ruben.ticehurst-james@kcl.ac.uk})  
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   537
\end{itemize} 
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   538
\end{itemize}    
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   539
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   540
\only<2->{
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   541
\begin{textblock}{7}(9, 8)
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   542
  \textcolor{red}{\Large\bf Could you
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   543
    please spend the next 10 mins to fill
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   544
  out the end-of-year feedback.}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   545
  \includegraphics[scale=0.035]{thanks.png}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   546
\end{textblock}}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   547
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   548
\end{frame}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   549
}
e03a0100ec46 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 449
diff changeset
   550
449
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   551
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   552
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d67c5f7177a6 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 448
diff changeset
   553
66
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   554
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   555
\end{document}
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   556
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   557
%%% Local Variables:  
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   558
%%% mode: latex
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   559
%%% TeX-master: t
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   560
%%% End: 
3506b681c191 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   561