Neocortex 🧠

Search

Search IconIcon to open search

Full vs Complete Binary Trees

Last updated Dec 14, 2021 Edit Source

# A Full Binary Tree

graph TD; A(( ))-->B(( )) & C(( )); B(( ))-->D(( )) & E(( )); C(( ))-->F(( )) & G(( ));

# A Complete Binary Tree

graph TD; A(( ))-->B(( )) & C(( )); B(( ))-->D(( ));

# This is not a valid complete binary tree:

graph TD; A(( ))-->B(( )) & C(( )); B(( ))-->D(( )); C-->E(( ));

Interactive Graph