|
@@ -0,0 +1,198 @@
|
|
|
|
+\documentclass{article}
|
|
|
|
+\usepackage[pdftex,active,tightpage]{preview}
|
|
|
|
+\setlength\PreviewBorder{2mm}
|
|
|
|
+
|
|
|
|
+\usepackage{tikz}
|
|
|
|
+\usetikzlibrary{calc,shapes.multipart,chains,arrows,positioning}
|
|
|
|
+
|
|
|
|
+\tikzset{
|
|
|
|
+ font=\tt,
|
|
|
|
+ >= stealth,
|
|
|
|
+ every picture/.style={thick},
|
|
|
|
+ pointer/.style={*->},
|
|
|
|
+ node/.style={
|
|
|
|
+ align=center,
|
|
|
|
+ rectangle split, rectangle split horizontal,
|
|
|
|
+ rectangle split parts=#1,
|
|
|
|
+ draw,
|
|
|
|
+ anchor=center,
|
|
|
|
+ rectangle split part align={center},
|
|
|
|
+ rectangle split empty part width=1.5,
|
|
|
|
+ rectangle split part fill = {white}
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+\begin{document}
|
|
|
|
+\begin{preview}
|
|
|
|
+\begin{tabular}{c | c}
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,3){
|
|
|
|
+ \tikz \node[node=1, rectangle split part fill={gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+\end{tikzpicture}
|
|
|
|
+
|
|
|
|
+&
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,3){
|
|
|
|
+ \tikz \node[node=3, rectangle split part fill={gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+\end{tikzpicture} \\
|
|
|
|
+
|
|
|
|
+\hline
|
|
|
|
+
|
|
|
|
+\\
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,3){
|
|
|
|
+ \tikz \node[node=5, rectangle split part fill={gray, white, gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}4
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+\end{tikzpicture}
|
|
|
|
+
|
|
|
|
+&
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,3){
|
|
|
|
+ \tikz \node[node=7, rectangle split part fill={gray, white, gray, white, gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}4
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ \nodepart{six}6
|
|
|
|
+ \nodepart{seven}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+\end{tikzpicture} \\
|
|
|
|
+
|
|
|
|
+\hline
|
|
|
|
+
|
|
|
|
+\\
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,3){
|
|
|
|
+ \tikz \node[node=9, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}4
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ \nodepart{six}6
|
|
|
|
+ \nodepart{seven}
|
|
|
|
+ \nodepart{eight}8
|
|
|
|
+ \nodepart{nine}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+\end{tikzpicture}
|
|
|
|
+
|
|
|
|
+&
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,3){
|
|
|
|
+ \tikz \node[node=11, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}4
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ \nodepart{six}6
|
|
|
|
+ \nodepart{seven}
|
|
|
|
+ \nodepart{eight}8
|
|
|
|
+ \nodepart{nine}
|
|
|
|
+ \nodepart{ten}10
|
|
|
|
+ \nodepart{eleven}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+\end{tikzpicture}
|
|
|
|
+
|
|
|
|
+\\
|
|
|
|
+
|
|
|
|
+\hline
|
|
|
|
+
|
|
|
|
+Node is full $\rightarrow$ first split node\\
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (2,3){
|
|
|
|
+ \tikz \node[node=3, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}6
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (0,0){
|
|
|
|
+ \tikz \node[node=5, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (B) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}4
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3,0){
|
|
|
|
+ \tikz \node[node=5, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (C) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}8
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}10
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ \draw[pointer] (1.5, 3.1) -- ($(B)+(0,0.4)$) node[] {};
|
|
|
|
+ \draw[pointer] (2.3, 3.1) -- ($(B)+(3,0.4)$) node[] {};
|
|
|
|
+\end{tikzpicture}
|
|
|
|
+
|
|
|
|
+&
|
|
|
|
+
|
|
|
|
+\begin{tikzpicture}
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (2,3){
|
|
|
|
+ \tikz \node[node=3, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (A) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}6
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (0,0){
|
|
|
|
+ \tikz \node[node=5, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (B) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}2
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}4
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ \node[align=center, draw, fill=yellow] at (3.5,0){
|
|
|
|
+ \tikz \node[node=7, rectangle split part fill={gray, white, gray, white, gray, white, gray, white, gray, white, gray}] (C) {
|
|
|
|
+ \nodepart{one}
|
|
|
|
+ \nodepart{two}8
|
|
|
|
+ \nodepart{three}
|
|
|
|
+ \nodepart{four}10
|
|
|
|
+ \nodepart{five}
|
|
|
|
+ \nodepart{six}12
|
|
|
|
+ \nodepart{seven}
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ \draw[pointer] (1.5, 3.1) -- ($(B)+(0,0.4)$) node[] {};
|
|
|
|
+ \draw[pointer] (2.3, 3.1) -- ($(B)+(3.5,0.4)$) node[] {};
|
|
|
|
+\end{tikzpicture}
|
|
|
|
+
|
|
|
|
+\end{tabular}
|
|
|
|
+\end{preview}
|
|
|
|
+\end{document}
|