packages feed

control-monad-queue-0.1: doc/levelorder.tex

{\fontsize{10}{12}
\begin{tikzpicture}[level distance = 8mm, baseline=(current bounding box.north)]
  \tikzstyle{level 1} = [sibling distance = 16mm]
  \tikzstyle{level 2} = [sibling distance = 8mm]
  \tikzstyle{level 3} = [sibling distance = 6mm]
  \node {3}
     child {node {1} 
             child {node {0}}
             child {node {0}}}
     child {node {2}
              child {node {0}}
              child {node {1} child {node {0}}  child {node {0}}}};
\end{tikzpicture}
\hskip+1cm
\begin{tikzpicture}[baseline=(current bounding box.north)]
  \draw (0.00  cm, 0) node[anchor=text] (h) {3};
  \draw (0.22  cm, 0) node[anchor=text]     {:};
  \draw (0.35  cm, 0) node[anchor=text]     {explore 1};
  \draw (1.85  cm, 0) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -0.7 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -0.7 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -0.7 cm) node[anchor=text] (h) {1};
  \draw (0.56  cm, -0.7 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -0.7 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -0.7 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -0.7 cm) node[anchor=text]     {explore 2};
  \draw (2.54  cm, -0.7 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -1.4 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -1.4 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -1.4 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -1.4 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -1.4 cm) node[anchor=text] (h) {2};
  \draw (0.91  cm, -1.4 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -1.4 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -1.4 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -1.4 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -1.4 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -1.4 cm) node[anchor=text]     {explore 3};
  \draw (3.24  cm, -1.4 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -2.1 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -2.1 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -2.1 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -2.1 cm) node[anchor=text] (h) {0};
  \draw (1.26  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -2.1 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -2.1 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -2.1 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -2.1 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -2.1 cm) node[anchor=text]     {explore 4};
  \draw (3.93  cm, -2.1 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -2.8 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -2.8 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -2.8 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -2.8 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -2.8 cm) node[anchor=text] (h) {0};
  \draw (1.61  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -2.8 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -2.8 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -2.8 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -2.8 cm) node[anchor=text]     {explore 3};
  \draw (3.93  cm, -2.8 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -3.5 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -3.5 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -3.5 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -3.5 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -3.5 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -3.5 cm) node[anchor=text] (h) {0};
  \draw (1.96  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -3.5 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -3.5 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -3.5 cm) node[anchor=text]     {explore 2};
  \draw (3.93  cm, -3.5 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -4.2 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -4.2 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (0.71  cm, -4.2 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -4.2 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -4.2 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -4.2 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -4.2 cm) node[anchor=text] (h) {1};
  \draw (2.30  cm, -4.2 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -4.2 cm) node[anchor=text]     {explore 1};
  \draw (3.93  cm, -4.2 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -4.9 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -4.9 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -4.9 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -4.9 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -4.9 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -4.9 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -4.9 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -4.9 cm) node[anchor=text] (h) {0};
  \draw (2.65  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (2.78  cm, -4.9 cm) node[anchor=text]     {0};
  \draw (3.00  cm, -4.9 cm) node[anchor=text]     {:};
  \draw (3.13  cm, -4.9 cm) node[anchor=text]     {explore 2};
  \draw (4.63  cm, -4.9 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -5.6 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -5.6 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -5.6 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -5.6 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -5.6 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -5.6 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -5.6 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -5.6 cm) node[anchor=text]     {0};
  \draw (2.65  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (2.78  cm, -5.6 cm) node[anchor=text] (h) {0};
  \draw (3.00  cm, -5.6 cm) node[anchor=text]     {:};
  \draw (3.13  cm, -5.6 cm) node[anchor=text]     {explore 1};
  \draw (4.63  cm, -5.6 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -6.3 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -6.3 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -6.3 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -6.3 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -6.3 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -6.3 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -6.3 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -6.3 cm) node[anchor=text]     {0};
  \draw (2.65  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (2.78  cm, -6.3 cm) node[anchor=text]     {0};
  \draw (3.00  cm, -6.3 cm) node[anchor=text]     {:};
  \draw (3.13  cm, -6.3 cm) node[anchor=text] (h) {explore 0};
  \draw (4.63  cm, -6.3 cm) node[anchor=text] (t) {$\boxdot$};

  \draw [->] (t.mid) -- (t.north) -- +(0.1pt,1.5 mm) -| (h.north);


  \draw (0.00  cm, -7.0 cm) node[anchor=text]     {3};
  \draw (0.22  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (0.35  cm, -7.0 cm) node[anchor=text]     {1};
  \draw (0.56  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (0.69  cm, -7.0 cm) node[anchor=text]     {2};
  \draw (0.91  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (1.04  cm, -7.0 cm) node[anchor=text]     {0};
  \draw (1.26  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (1.39  cm, -7.0 cm) node[anchor=text]     {0};
  \draw (1.61  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (1.74  cm, -7.0 cm) node[anchor=text]     {0};
  \draw (1.96  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (2.09  cm, -7.0 cm) node[anchor=text]     {1};
  \draw (2.30  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (2.43  cm, -7.0 cm) node[anchor=text]     {0};
  \draw (2.65  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (2.78  cm, -7.0 cm) node[anchor=text]     {0};
  \draw (3.00  cm, -7.0 cm) node[anchor=text]     {:};
  \draw (3.13  cm, -7.0 cm) node[anchor=text]     {[]};
\end{tikzpicture}
}