source: liacs/penc/assignment1/report.tex@ 144

Last change on this file since 144 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 2.8 KB
Line 
1%
2% $Id: report.tex 573 2008-04-21 20:58:12Z rick $
3%
4
5\documentclass[12pt,a4paper]{article}
6
7\frenchspacing
8\usepackage[english]{babel}
9\selectlanguage{english}
10\usepackage{url}
11\usepackage{multicol}
12\usepackage{graphics}
13
14% Include tikz,pdf drawing package
15\usepackage{pgf,tikz}
16\usetikzlibrary{automata,arrows,positioning}
17\usetikzlibrary{shapes.multipart}
18
19\author{Rick van der Zwet, Universiteit Leiden}
20\title{XXX \\
21\large{XXX}}
22\author{Rick van der Zwet\\
23 \texttt{<hvdzwet@liacs.nl>}\\
24 \\
25 LIACS\\
26 Leiden University\\
27 Niels Bohrweg 1\\
28 2333 CA Leiden\\
29 The Netherlands}
30\date{\today}
31
32\begin{document}
33\maketitle
34
35\begin{center}
36\begin{figure}[!ht]
37\includegraphics[width=\textwidth]{0007_en_deadlock}
38\caption{0xBABAF000L --- http://tnerual.eriogerg.free.fr/0xBABAF000L/index.html}
39\label{fig:deadlock}
40\end{figure}
41\end{center}
42
43Figure~\ref{fig:fork} shows the different states a fork could get, while
44Figure~\ref{fig:phil} states the Philosopher, the string of length
45states the state of $Fork_i Fork_{i+1} Hungry$.The Philosopher $i$ has got
46$Fork_i$ laying left of him and $Fork_{i+1}$ on his right. In total
47there are $n$ Philosophers. The last one in the circle number $n$ has
48got a special case, cause his right fork is $Fork_0$
49
50\begin{figure}[!ht]
51\begin{center}
52\begin{tikzpicture}[shorten >=1pt,node distance=3cm,on grid,auto]
53\node[state,initial] (A) {Free};
54\node[state] (B) [below=of A] {Taken};
55\path[->] (A) edge [bend left] node {} (B)
56 (B) edge [bend left] node {} (A);
57\end{tikzpicture}
58\end{center}
59\caption{Kripke structure $Fork_i$}
60\label{fig:fork}
61\end{figure}
62
63\begin{figure}[!ht]
64\begin{center}
65\begin{tikzpicture}[shorten >=1pt,node distance=3cm,on grid,auto]
66\node[state with output, initial] (A) {Thinking \nodepart{lower} $000$};
67\node[state with output] (B) [below right=of A] {Hungry \nodepart{lower} $001$};
68\node[state with output] (C) [below left=of B] {Waiting \nodepart{lower} $011$};
69\node[state with output] (D) [below left=of A] {Eating \nodepart{lower} $111$};
70\path[->] (A) edge [bend left] node {} (B)
71 (B) edge [bend left] node {} (C)
72 (C) edge [bend left] node {} (D)
73 (D) edge [bend left] node {} (A);
74\end{tikzpicture}
75\end{center}
76\caption{Kripke structure $Philosophers_i$}
77\label{fig:phil}
78\end{figure}
79
80
81
82%\begin{thebibliography}{10}
83%\end{thebibliography}
84% \advance\textwidth by 8cm
85% \advance\oddsidemargin by -3cm
86% \advance\evensidemargin by -3cm
87% \advance\topmargin by -2cm
88% \advance\textheight by 4cm
89% \advance\footskip by -4cm
90% \marginparwidth 0cm
91% \twocolumn
92% \section*{Appendix}
93% De NN code en pre-parse.pl code zagen er als volgt uit:
94% \newline
95% \tiny
96% %preformatted with `source-highlight -n -f latex bridge.cc`
97% \input{nn.c}
98% \input{data/pre-parse.pl}
99% \onecolumn
100
101\end{document}
Note: See TracBrowser for help on using the repository browser.