Store a binary tree using an array_representation. Use 0_based_indexing. The root_index is 0. For node i:
This works best for a complete_binary_tree, giving a compact, heap like layout. If nodes are missing, keep a null_placeholder to preserve positions. Index access is O(1). Common uses include heaps and priority queues.