Width counts the empty slots
transcript
How wide is a level of a tree? Count its nodes? That is a trap. Empty slots can sit between them. They count too.
The third level has two nodes, four and five. Draw the tree as if it were full. Four is at position zero. Five is the right child of the right child. It is at position three. Slots one and two between them are empty. The width is three minus zero plus one, which is four.
Counting the nodes of the third level gives two. A screen two slots wide would cut the tree. The tree really needs four slots on that level. So the width is not the count of nodes.
Position p has children at two p and two p plus one. The width is the last position minus the first, plus one. Subtract the first position at each level, so numbers stay small.
Width counts the empty slots. Positions double each level. Shift them to keep them small. Full breakdown in the lecture.