Unformatted text preview: 12 / 16 = 75% . (b) Since every node stores 16 bytes of data and 8 bytes of pointers, the overhead fraction is 8 / 24 ≈ 33% . (c) Leaf nodes store 8 bytes of data and 4 bytes of pointers; internal nodes store 8 bytes of data and 12 bytes of pointers. Since the nodes have different sizes, the total space needed for internal nodes is not the same as for leaf nodes. Students must be careful to do the calculation cor-rectly, taking the weighting into account. The correct formula looks as follows, given that there are x internal nodes and x leaf nodes. 4 x + 12 x 12 x + 20 x = 16 / 32 = 50% . (d) Leaf nodes store 4 bytes of data; internal nodes store 4 bytes of pointers. The formula looks as follows, given that there are x internal nodes and...
View Full Document
- Fall '08
- Pointer, Void type, 8 bytes, 4 bytes