Question

A B+ tree based unclustered index exists over on a search key of 98452 records, which...

A B+ tree based unclustered index exists over on a search key of 98452 records, which stores 200 keys in each leaf and steering page. What is the smallest number pages might be used by this index? how deep is the tree in this case? how many keys are in the root node?

Homework Answers

Answer #1

98452 records and 200 keys per node

Smallest no. of pages:

98452/200 = 492 full pages with remainder of 52 keys, but this would violate the 50% rule as 52 < 50% of 200 so,

we can have 491 full pages and the remainder in this case would be 252 keys as 491*200 + 252 = 98452

Now these remaining 252 keys can be split into two pages with 126 keys each, in this the 50% rule is not violated as 126 > 50% of 200

So the smallest no of pages = 491 + 2 = 493

Keys in the root node:

We take the total no of records 98452 and divide it by the order 200. This gives us 492 which is greater than 200

We again divide 492 by 200 which gives us 2. We stop now as we got a number less than the order (200).

So the number of keys in root node = 2

Depth of the tree:

Since we made 2 divisions in the previous step to calculate no of keys in root node, depth of the tree is 2+1 = 3

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
In this lab, you will write a program that creates a binary search tree based on...
In this lab, you will write a program that creates a binary search tree based on user input. Then, the user will indicate what order to print the values in. **Please write in C code** Start with the bst.h and bst.c base code provided to you. You will need to modify the source and header file to complete this lab. bst.h: #ifndef BST_H #define BST_H typedef struct BSTNode { int value; struct BSTNode* left; struct BSTNode* right; } BSTNode; BSTNode*...
Assume one file has r = 10^6 records. Each record takes R = 100 bytes, of...
Assume one file has r = 10^6 records. Each record takes R = 100 bytes, of which 10 bytes are for the key of the record. Suppose the key values range from 1 through 1,000,000 inclusive. Assume the block size B is 1000 bytes for all files, and that an address (block pointer, tree node pointer, or data record pointer) takes 10 bytes. What is the blocking factor bfr i for the single level index ? How many index blocks...
Please ask the user to input a low range and a high range and then print...
Please ask the user to input a low range and a high range and then print the range between them. Add printRang method to BST.java that, given a low key value, and high key value, print all records in a sorted order whose values fall between the two given keys from the inventory.txt file. (Both low key and high key do not have to be a key on the list). ****Please seperate the information in text file by product id,...
This laboratory assignment involves implementing a data structure called a map. A map associates objects called...
This laboratory assignment involves implementing a data structure called a map. A map associates objects called keys with other objects called values. It is implemented as a Java class that uses arrays internally. 1. Theory. A map is a set of key-value pairs. Each key is said to be associated with its corresponding value, so there is at most one pair in the set with a given key. You can perform the following operations on maps. You can test if...
SERVICE MARKETING Case Study Vick’s Pizza Corporation Speed had always been a key strategic thrust for...
SERVICE MARKETING Case Study Vick’s Pizza Corporation Speed had always been a key strategic thrust for Vick’s Pizza, which was used the slogan, “It’s quick at Vick’s.” The company restaurants not only prepared pizza rapidly but also delivered it quickly. The company’s promise to home deliver a pizza within 30 minutes of a phone order or to cut $3 off the price had boosted it from a single pizzeria 20 years earlier to the status of a national chain with...
SERVICE MARKETING Case Study Vick’s Pizza Corporation Speed had always been a key strategic thrust for...
SERVICE MARKETING Case Study Vick’s Pizza Corporation Speed had always been a key strategic thrust for Vick’s Pizza, which was used the slogan, “It’s quick at Vick’s.” The company restaurants not only prepared pizza rapidly but also delivered it quickly. The company’s promise to home deliver a pizza within 30 minutes of a phone order or to cut $3 off the price had boosted it from a single pizzeria 20 years earlier to the status of a national chain with...
Answer the following questions from the information below a. What are the organization's marketing goals? b....
Answer the following questions from the information below a. What are the organization's marketing goals? b. What are the symptoms of the problem? In other words, which of the organization's marketing goals mentioned in section a., above are not being met? c. What is the organization's problem? Look at the symptoms and make a judgement about what their cause may be. Do not confuse symptoms with problems. Problems cause symptoms. d. Perform a SW/OT analysis: -What are the organization's internal...
Unhealthy Accounting at HealthSouth PROBLEM In 1996, key executives of HealthSouth, one of the nation’s largest...
Unhealthy Accounting at HealthSouth PROBLEM In 1996, key executives of HealthSouth, one of the nation’s largest providers of health care services, began a massive fraud that eventually amounted to $2.7 billion. HealthSouth is a textbook case of unbridled greed combined with a lack of corporate governance, which illustrates the difficult situation that auditors face when clients perpetrate a massive, collusive fraud. HealthSouth was founded in 1984 by Richard Scrushy and coworkers at Lifemark, a Houston-based company that owned and managed...
Answer these questions for the case study: Purple Innovation, Inc.: The Online to Offline Marketing Challenge...
Answer these questions for the case study: Purple Innovation, Inc.: The Online to Offline Marketing Challenge (a) Delineate what marketing data analytics and metrics were used by Purple Innovation, Inc to assess the effectiveness of their marketing actions and marketing campaigns. (There are many.) Within your answer, provide the type of analytics and /or metrics and for each one, and, for each one, an example of specific dollars, numbers, percentages that were provided in the case. (Be sure to include...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old man of Scandinavian descent was rushed to the Emergency Room of your local hospital after a family member discovered him unconscious in his home. The woman who dialed “911” told the dispatcher that the man, her brother, was the local librarian of the past 10 years and had no spouse or children. She reported that they had spoken the day before, and he had...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT