Question: 1. Calculate the density of a data structure whose data set consists of 1,000,000 nodes, assuming the structure requires 1,000,000 bytes of overhead to
1. Calculate the density of a data structure whose data set consists of 1,000,000 nodes, assuming the structure requires 1,000,000 bytes of overhead to maintain itself, and: (a) each node in the data set contains 2000 information bytes. (b) each node in the data set contains 20 information bytes. Activate Windows 2. Repeat the above exercise assuming the overhead is 10 bytes perf nodeettings to activate Windows.
Step by Step Solution
3.50 Rating (167 Votes )
There are 3 Steps involved in it
To calculate the density of the data structure we can use the formula textDensity fractextUseful InformationtextTotal Storage Used 1 Given Overhead 1000000 bytes total a Each Node Contains 2000 Information Bytes Step 1 Calculate the Total Useful Information Useful Information Number of Nodes Information Per Node 1000000 times 2000 2000000000 text bytes Step 2 Calculate the Total Storage Used Total Storage Used Useful Information Total Overhead 2000000000 1000000 2001000000 text bytes Step 3 Calculate Density textDensity frac20000000002001000000 approx 09995 b Each Node Contains 20 Information Bytes Step 1 Calculate the Total Useful Information Useful Information Number of Nodes Information Per Node 1000000 times 20 20000000 text bytes Step 2 Calculate the Total Storage Used Total Storage Used Useful Information Total Overhead 20000000 1000000 21000000 text bytes Step 3 Calculate Density textDensity frac2000000021000000 approx 09524 2 Overhead 10 ... View full answer
Get step-by-step solutions from verified subject matter experts
