Question: In Example 8.10 we suggested the possibility of sorting record fields by their alignment requirement, to minimize holes. In the example, we sorted smallest-alignment-first. What
In Example 8.10 we suggested the possibility of sorting record fields by their alignment requirement, to minimize holes. In the example, we sorted smallest-alignment-first. What would happen if we sorted longest-alignment-first? Do you see any advantages to this scheme? Any disadvantages? If the record as a whole must be an even multiple of the longest alignment, do the two approaches ever differ in total space required?
Step by Step Solution
3.31 Rating (166 Votes )
There are 3 Steps involved in it
On most machines alignment requirements are powers of two and any field that can be aligned at a a ... View full answer
Get step-by-step solutions from verified subject matter experts
