-
Notifications
You must be signed in to change notification settings - Fork 3
/
tex_55948.tex
133 lines (99 loc) · 4.11 KB
/
tex_55948.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
% Raphael Reitzig, 2012.
% MIT license
% Get an image by compiling to PDF and then
% > convert -density 600 tex_55948.pdf out.png
% > rm out-0.png
% > montage -geometry +3+2 -density 600 out-*.png out.png
% > mogrify -resize "750>x" out.png
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{xcolor,tikz,xifthen}
\usepackage[paperwidth=4cm,paperheight=3.25cm,margin=.5cm]{geometry}
\usetikzlibrary{positioning}
\tikzset{%
active/.style={fill=yellow!30},
unvisited/.style={opacity=.2},
hidden/.style={opacity=0},
lb/.style={color=green!70!black,scale=.7},
ub/.style={color=red!70!black,scale=.7}
}
\begin{document}
\begin{tikzpicture}[level 1/.style={sibling distance=10mm}]
\node [active] (a) {$[a]$}
child [hidden] { node (b) {$[b]$} }
child [hidden] { node (c) {$[c]$} };
\node[style=lb,below right=-3.5mm and -2mm of a] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of a] {$5$};
\node[style=hidden,below right=-3.5mm and -2mm of b] {$6$};
\node[style=hidden,above right=-3.5mm and -2mm of b] {$7$};
\node[style=hidden,below right=-3.5mm and -2mm of c] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of c] {$5$};
\node[right=1cm of a,scale=.7] {$1$};
\end{tikzpicture}
\clearpage
\begin{tikzpicture}[level 1/.style={sibling distance=10mm}]
\node [active] (a) {$[a]$}
child [unvisited] { node (b) {$[b]$} }
child [unvisited] { node (c) {$[c]$} };
\node[style=lb,below right=-3.5mm and -2mm of a] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of a] {$5$};
\node[style=lb,below right=-3.5mm and -2mm of b] {$6$};
\node[style=hidden,above right=-3.5mm and -2mm of b] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of c] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of c] {$5$};
\node[right=1cm of a,scale=.7] {$2$};
\end{tikzpicture}
\clearpage
\begin{tikzpicture}[level 1/.style={sibling distance=10mm}]
\node (a) {$[a]$}
child { node [active] (b) {$[b]$} }
child [unvisited] { node (c) {$[c]$} };
\node[style=lb,below right=-3.5mm and -2mm of a] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of a] {$5$};
\node[style=lb,below right=-3.5mm and -2mm of b] {$6$};
\node[style=ub,above right=-3.5mm and -2mm of b] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of c] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of c] {$5$};
\node[right=1cm of a,scale=.7] {$3$};
\end{tikzpicture}
\clearpage
\begin{tikzpicture}[level 1/.style={sibling distance=10mm}]
\node [active] (a) {$[a]$}
child { node (b) {$[b]$} }
child [unvisited] { node (c) {$[c]$} };
\node[style=lb,below right=-3.5mm and -2mm of a] {$5$};
\node[style=ub,above right=-3.5mm and -2mm of a] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of b] {$6$};
\node[style=ub,above right=-3.5mm and -2mm of b] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of c] {$5$};
\node[style=hidden,above right=-3.5mm and -2mm of c] {$5$};
\node[right=1cm of a,scale=.7] {$4$};
\end{tikzpicture}
\clearpage
\begin{tikzpicture}[level 1/.style={sibling distance=10mm}]
\node (a) {$[a]$}
child { node (b) {$[b]$} }
child { node [active] (c) {$[c]$} };
\node[style=lb,below right=-3.5mm and -2mm of a] {$5$};
\node[style=ub,above right=-3.5mm and -2mm of a] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of b] {$6$};
\node[style=ub,above right=-3.5mm and -2mm of b] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of c] {$5$};
\node[style=ub,above right=-3.5mm and -2mm of c] {$5$};
\node[right=1cm of a,scale=.7] {$5$};
\end{tikzpicture}
\clearpage
\begin{tikzpicture}[level 1/.style={sibling distance=10mm}]
\node [active] (a) {$[a]$}
child { node (b) {$[b]$} }
child { node (c) {$[c]$} };
\node[style=lb,below right=-3.5mm and -2mm of a] {$5$};
\node[style=ub,above right=-3.5mm and -2mm of a] {$5$};
\node[style=lb,below right=-3.5mm and -2mm of b] {$6$};
\node[style=ub,above right=-3.5mm and -2mm of b] {$7$};
\node[style=lb,below right=-3.5mm and -2mm of c] {$5$};
\node[style=ub,above right=-3.5mm and -2mm of c] {$5$};
\node[right=1cm of a,scale=.7] {$6$};
\end{tikzpicture}
\clearpage
\end{document}