edited by
683 views
1 votes
1 votes
Block size 1000B records are of size 100B of which 12B are the key field and pointer of size 8B. a file consist of 10000 records

1.the number of blocks required for a sparse index on this file?

2.the number of blocks required for for a dense index on this file
edited by

1 Answer

2 votes
2 votes
for the main file:

blocking factor =(1000/100)=10

no. of blocks in main = (10000/10)=1000

for index file:

blocking factor=(1000/(12+8))=50

1.sparse index

no. of records =1000

no. of blocks in sparse indexing= (1000/50)=20

2.dense index

no. of records=10000

no .of blocks in dense indexing =(10000/50)=200

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
1 answer
2
vishnu777 asked Nov 8, 2022
407 views
Can anyone explain in detail about the concepts of sencondary indexing in dbms??
2 votes
2 votes
1 answer
4