281 views
2 votes
2 votes
Assume unspanned blocking and 100 B block file consist of records of 20,50,35,70,40,20 bytes. What % of space will be wasted..?

1 Answer

Best answer
3 votes
3 votes
Unspanned means entire record should be in one block

1st block will contain only 20 and 50. we will have to place 35 in 2nd block becoz 1st block have remaining space = 100-20-50 = 30

2nd block will have only 35 becoz we cant accomodate 70 Byte block, since remaining space in 2nd block = 100-35 = 65

3rd block will have only 70 becoz we cant accomodate 40 Byte block, since remaining space in 3rd block = 100-70 = 30

4th block will have both 40 and 20 and remaining space will be 100-40-20 = 40

Total space wasted = 30 + 65 + 30 + 40 = 165

total block size = 4*100 = 400

so % space wasted = $\frac{165}{400}$ * 100 = 41.25%
selected by

Related questions

3 votes
3 votes
1 answer
1
mohitbawankar asked Jan 7, 2018
4,251 views
Consider the following relational schema R(ABCDEFG) with FD set {AB → C, BC → A, AC → B, B → D, D → E}. The minimum relations required to decompose R into BCNF ...
4 votes
4 votes
1 answer
2
Aradhana Singh asked Aug 22, 2016
2,139 views
which is difficult to achieve logical data independence or physical DI and why ?does change in conceptual level affect both physical level (internal level) and extrenal l...