Question: Find the overhead fraction for a full K-ary tree implementation with space requirements as follows: (a) All nodes store data, K child pointers, and a
Find the overhead fraction for a full K-ary tree implementation with space requirements as follows:
(a) All nodes store data, K child pointers, and a parent pointer. The data field requires four bytes and each pointer requires four bytes.
(b) All nodes store data and K child pointers. The data field requires sixteen bytes and each pointer requires four bytes.
(c) All nodes store data and a parent pointer, and internal nodes store K child pointers. The data field requires eight bytes and each pointer requires four bytes.
(d) Only leaf nodes store data; only internal nodes store K child pointers.
The data field requires four bytes and each pointer requires two bytes.
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
For these types of problems the overhead fraction is typically defined as the ratio of the memory used for overhead such as pointers to the total memo... View full answer
Get step-by-step solutions from verified subject matter experts
