author | Christian Urban <urbanc@in.tum.de> |
Sun, 27 Oct 2019 13:03:58 +0000 | |
changeset 673 | 715b46eee102 |
parent 669 | 2f5a4d76756d |
child 719 | 0de3527e6ae3 |
permissions | -rw-r--r-- |
236
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
\usepackage{xcolor} |
399
5c1fbb39c93e
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
398
diff
changeset
|
2 |
%%\usepackage{fontspec} |
236
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
\usepackage[sc]{mathpazo} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
4 |
\usepackage{fontspec} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
\setmainfont[Ligatures=TeX]{Palatino Linotype} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
\usepackage{amssymb} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
7 |
\usepackage{amsmath} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
8 |
\usepackage{menukeys} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
\definecolor{darkblue}{rgb}{0,0,0.6} |
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
\usepackage[colorlinks=true,urlcolor=darkblue,linkcolor=darkblue]{hyperref} |
618 | 11 |
\usepackage{soul} |
236
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
12 |
|
400
e4afe3f46c29
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
399
diff
changeset
|
13 |
%%% for regular expressions and values |
398
c8ce95067c1a
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
395
diff
changeset
|
14 |
\newcommand{\ZERO}{\mbox{\bf 0}} |
c8ce95067c1a
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
395
diff
changeset
|
15 |
\newcommand{\ONE}{\mbox{\bf 1}} |
400
e4afe3f46c29
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
399
diff
changeset
|
16 |
\newcommand{\Left}{\textit{Left}} |
669 | 17 |
\newcommand{\Right}{\textit{Right}} |
433
c08290ee4f1f
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
416
diff
changeset
|
18 |
\newcommand{\Der}{\textit{Der}} |
c08290ee4f1f
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
416
diff
changeset
|
19 |
\newcommand{\der}{\textit{der}} |
c08290ee4f1f
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
416
diff
changeset
|
20 |
\newcommand{\Ders}{\textit{Ders}} |
c08290ee4f1f
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
416
diff
changeset
|
21 |
\newcommand{\ders}{\textit{ders}} |
669 | 22 |
\newcommand{\inj}{\textit{inj}} |
23 |
\newcommand{\nullable}{\textit{nullable}} |
|
398
c8ce95067c1a
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
395
diff
changeset
|
24 |
|
327
9470cd124667
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
295
diff
changeset
|
25 |
%%% for trees |
9470cd124667
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
295
diff
changeset
|
26 |
%% http://anorien.csc.warwick.ac.uk/mirrors/CTAN/graphics/pgf/contrib/forest/forest.pdf |
295
19f23c4c2167
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
239
diff
changeset
|
27 |
|
239
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
28 |
\newcommand\grid[1]{% |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
29 |
\begin{tikzpicture}[baseline=(char.base)] |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
30 |
\path[use as bounding box] |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
31 |
(0,0) rectangle (1em,1em); |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
32 |
\draw[red!50, fill=red!20] |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
33 |
(0,0) rectangle (1em,1em); |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
34 |
\node[inner sep=1pt,anchor=base west] |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
35 |
(char) at (0em,\gridraiseamount) {#1}; |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
36 |
\end{tikzpicture}} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
37 |
\newcommand\gridraiseamount{0.12em} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
38 |
|
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
39 |
\makeatletter |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
40 |
\newcommand\Grid[1]{% |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
41 |
\@tfor\z:=#1\do{\grid{\z}}} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
42 |
\makeatother |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
43 |
|
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
44 |
\newcommand\Vspace[1][.3em]{% |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
45 |
\mbox{\kern.06em\vrule height.3ex}% |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
46 |
\vbox{\hrule width#1}% |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
47 |
\hbox{\vrule height.3ex}} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
48 |
|
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
49 |
\def\VS{\Vspace[0.6em]} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
50 |
|
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
51 |
|
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
52 |
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
53 |
\newcommand{\defn}[1]{\textit{\textbf{#1}}} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
54 |
\newcommand{\dq}[1]{\mbox{\tt{"}}#1\mbox{\tt{"}}} |
68d98140b90b
added notation handout
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
236
diff
changeset
|
55 |
|
236
34e901c529ce
farmed out style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
56 |
\definecolor{codegray}{gray}{0.9} |
331
a2c18456c6b7
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
327
diff
changeset
|
57 |
|
395
e57d3d92b856
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
394
diff
changeset
|
58 |
\makeatletter |
e57d3d92b856
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
394
diff
changeset
|
59 |
\def\fnote{\gdef\@thefnmark{}\@footnotetext} |
e57d3d92b856
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
394
diff
changeset
|
60 |
\makeatother |
e57d3d92b856
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
394
diff
changeset
|
61 |
|
331
a2c18456c6b7
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
327
diff
changeset
|
62 |
\newcommand{\HEADER}{{\bf Please submit your solutions via email. Please submit |
a2c18456c6b7
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
327
diff
changeset
|
63 |
only ASCII text or PDFs. Every solution should be preceeded by the corresponding |
461 | 64 |
question text, like: |
347
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
65 |
|
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
66 |
\begin{center} |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
67 |
\begin{tabular}{ll} |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
68 |
Q$n$: & \ldots a difficult question from me\ldots\\ |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
69 |
A: & \ldots an answer from you \ldots\\ |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
70 |
Q$n+1$ & \ldots another difficult question\ldots\\ |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
71 |
A: & \ldots another brilliant answer from you\ldots |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
72 |
\end{tabular} |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
73 |
\end{center} |
22b5294daa2a
updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
331
diff
changeset
|
74 |
|
438
84608b4b3578
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
433
diff
changeset
|
75 |
\noindent Solutions will only be accepted until 20th December! Please send only |
394
2f9fe225ecc8
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
347
diff
changeset
|
76 |
one homework per email.}\bigskip} |
403
564f7584eff1
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
400
diff
changeset
|
77 |
|
564f7584eff1
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
400
diff
changeset
|
78 |
\newcommand{\POSTSCRIPT}{ |
564f7584eff1
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
400
diff
changeset
|
79 |
{\bf (Optional)} This question is for you to provide |
416 | 80 |
regular feedback to me: for example |
81 |
what were the most interesting, least interesting, or confusing |
|
82 |
parts in this lecture? Any problems with my Scala code? Please |
|
618 | 83 |
feel free to share any other questions or concerns. Also, all my |
84 |
material is \st{crap} imperfect. If you have any suggestions for |
|
85 |
improvement, I am very grateful to hear.} |