fork download
  1. \documentclass[dvipdfmx]{jsarticle}
  2. \usepackage{tikz}
  3. \usetikzlibrary{positioning}
  4. \begin{document}
  5. \begin{tikzpicture}[
  6. foo/.style={minimum width=2cm,minimum height=3cm,draw,fill=black!10,align=center}
  7. ]
  8. \node[foo] (a0) {};
  9. \node[foo,below=of a0] (a1) {\textit{*****}};
  10. \node[foo,right=of a0] (b0) {\textit{0****} \\ \textit{1****} \\ \textit{2****}};
  11. \node[foo,below=of b0] (b1) {\textit{3****}};
  12. \node[foo,right=of b0] (c0) {\textit{00***} \\ \textit{01***} \\ ... \\ \textit{29***} \\ \textit{30***}};
  13. \node[foo,below=of c0] (c1) {\textit{31***}};
  14. \node[foo,right=of c0] (d0) {\textit{000**} \\ \textit{001**} \\ ... \\ \textit{312**} \\ \textit{313**}};
  15. \node[foo,below=of d0] (d1) {\textit{314**}};
  16. \node[foo,right=of d0] (e0) {\textit{0000*} \\ \textit{0001*} \\ ... \\ \textit{3139*} \\ \textit{3140*}};
  17. \node[foo,below=of e0] (e1) {\textit{3141*}};
  18. \node[foo,right=of e0] (f0) {\textit{00000} \\ \textit{00001} \\ ... \\ \textit{31413} \\ \textit{31414}};
  19. \node[foo,below=of f0] (f1) {\textit{31415}};
  20.  
  21. \foreach \u/\v in {a0/b0, b0/c0, c0/d0, d0/e0, e0/f0}{
  22. \draw[->] (\u) to node [above] {\texttt{*}} (\v);
  23. };
  24. \foreach \u/\v/\w in {a1/b0/{0,1,2}, b1/c0/{0}, c1/d0/{0,1,2,3}, d1/e0/{0}, e1/f0/{0,1,2,3,4}} {
  25. \draw[->] (\u) to node [left] {\texttt\w} (\v);
  26. };
  27. \foreach \u/\v/\w in {a1/b1/{3}, b1/c1/{1}, c1/d1/{4}, d1/e1/{1}, e1/f1/{5}} {
  28. \draw[->] (\u) to node [above] {\texttt\w} (\v);
  29. };
  30.  
  31. \end{tikzpicture}
  32. \end{document}
  33.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty