Added first version of sol05.
1 \documentclass[a4paper, 10pt, pagesize, smallheadings]{article}
3 %\usepackage[latin1]{inputenc}
4 \usepackage{amsmath, amsthm, amssymb}
7 \usepackage{algorithmic}
12 \usepackage{tikz-qtree}
13 \usetikzlibrary{decorations.pathmorphing} % noisy shapes
14 \usetikzlibrary{fit} % fitting shapes to coordinates
15 \usetikzlibrary{backgrounds} % drawin
16 \usetikzlibrary{shapes,snakes}
17 \addtolength{\voffset}{-20pt}
18 \title{CSP Exercise 05 Solution}
20 \renewcommand{\familydefault}{\sfdefault}
21 \newcommand{\R}{\mathcal{R}}
22 \newcommand{\N}{\mathbb{N}}
23 \newcommand{\C}{\mathcal{C}}
24 \newcommand{\bo}{\mathcal{O}}
26 %\include{pythonlisting}
32 \section*{Exercise 5.1}
33 (a) The following table shows the states during the iterations.\\\\
34 \begin{tabular}{r l l l}
35 Iteration & Queue & Revise & Domains\\\hline
36 $0$ & $\{(v_1,v_2),(v_2,v_1),
38 (v_1,v_3),(v_3,v_1)\}$
43 $1$ & $\{(v_1,v_2),(v_2,v_1),
50 $2$ & $\{(v_1,v_2),(v_2,v_1),
57 $3$ & $\{(v_1,v_2),(v_2,v_1),
58 (v_2,v_3)\}\cup\{(v_1,v_3)\}$
63 $4$ & $\{(v_1,v_2),(v_2,v_1),
69 $5$ & $\{(v_1,v_2),(v_2,v_1)\}$