retagged by
501 views
1 votes
1 votes
consider a ABC university and the relation took(StudentID, CourseNo, Quarter, Year, Units, Grade) contains the grades for the courses completed by ABC students during the last 20 years. For simplicity, assume that there are 25,000 students enrolled each quarter, and that each student takes four courses per quarter, and that there are four quarters each year. Then we get a total of 8,000,000 records. If 10,000 new students enter ABC every year, we can assume that in took there are 200,000 different students, each identified by its StudentID. On the average, a student took 40 different courses. The file blocks hold 2048 bytes and each took tuple requires 50 bytes.
The table has a primary index on StudentID. If the StudentID index is a B+ tree with order n = 101, how many levels does the B+ use, in the worst case. (n denotes the maximum number of pointers in a node.)

 

Ans 3

Please explain
retagged by

1 Answer

0 votes
0 votes

even if we consider like this 

as the primary key is the student id so in total there are 200000 records to be pointed to

level nodes pointers   
0th  1(root) 101(order)
1st   101  101*101   
2nd 101*101

101*101*101(approx 10^5)

                                                                                      

so thus 3 levels needed  (0th ,1st and 2nd )                                                

No related questions found