Similar questions 4 more →
Tree Properties & Traversals

Answer & solution
Official answer: 31.0 : 31.0
Our answer: 31
BFS visits all shallower levels first. A full binary tree has 1+2+4+8=15 nodes above level4 and at most 16 nodes on level4. Taking t last on that level gives position 31, attained by a perfect tree through level4.
The last possible position at depth d in a binary tree is Σ(k=0 to d)2k=2d+1−1. Nodes at greater depth cannot precede t in BFS. Sparse levels or placing t earlier can only reduce its ordinal, so a full tree and a last-on-level choice attain the bound.