Trees drawn with TikZ's own child syntax: probability trees, search trees, and heaps.


A root with two children and four leaves, using TikZ's child syntax with default styling.


Two stages of events with branch probabilities and the probability of each outcome.


The nodes visited while searching for 6 are highlighted, along with the edges taken.


A min-heap drawn as a tree, with the same keys in the array that stores it.