Block size=1024B
Record Size=100B
No of records per block= 1024/100=10.24 but we can store only 10 records at max
No of blocks required to store 30000 records=30000/10= 3000
Without Primary Index: No of block accesses= log(3000)= 12
Size of a Index record= 9+6=15B
No of index record per block= 1024/15= 68 (unspanned)
we have already calculated no of blocks needed to store all records= 3000
so total no of index records =3000
Since, 68 index records are present in 1 block.
3000 index records will be present in 3000/68= 45 blocks.
With primary index: total no of block accesses =ceil(log(45))+1=6+1=7