Skip to content

Instantly share code, notes, and snippets.

@linusheck
Created May 9, 2018 11:20
Show Gist options
  • Save linusheck/3b1302117ecaacb8b53946ec834938d5 to your computer and use it in GitHub Desktop.
Save linusheck/3b1302117ecaacb8b53946ec834938d5 to your computer and use it in GitHub Desktop.
\def \tbleaf #1#2%
{
\begin{TAB}(r,1cm,1cm)[5pt]{|c|}{|c|c|}% (rows,min,max)[tabcolsep]{columns}{rows}
#1 \\
#2
\end{TAB}
}
\scalebox{0.8}{
\begin{forest}
[ \tbleaf{$T(n)$}{$n$}
[ \tbleaf{$T(\lfloor \frac{n}{16} \rfloor)$}{$\lfloor \frac{n}{16} \rfloor$}
[ \tbleaf{$T(\lfloor \frac{n}{256} \rfloor)$}{$\lfloor \frac{n}{256} \rfloor$}
[...
[ \tbleaf{$T(1)$}{$1$} ]
]
]
[ \tbleaf{$T(\lfloor \frac{n}{256} \rfloor)$}{$\lfloor \frac{n}{256} \rfloor$}
[... [ \tbleaf{$T(1)$}{$1$} ] ]
]
[ \tbleaf{$T(\lfloor \frac{n}{256} \rfloor)$}{$\lfloor \frac{n}{256} \rfloor$}
[... [ \tbleaf{$T(1)$}{$1$} ] ]
]
[ \tbleaf{$T(\lfloor \frac{n}{256} \rfloor)$}{$\lfloor \frac{n}{256} \rfloor$}
[... [ \tbleaf{$T(1)$}{$1$} ] ]
]
]
[ \tbleaf{$T(\lfloor \frac{n}{16} \rfloor)$}{$\lfloor \frac{n}{16} \rfloor$} ]
[ \tbleaf{$T(\lfloor \frac{n}{16} \rfloor)$}{$\lfloor \frac{n}{16} \rfloor$} ]
[ \tbleaf{$T(\lfloor \frac{n}{16} \rfloor)$}{$\lfloor \frac{n}{16} \rfloor$} ]
]
\end{forest}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment