Describe a search algorithm for a B + tree in which the search key is not a candidate key. Assume that over?ow pages are not used to handle duplicates.

What will be an ideal response?


Descend through the tree using the target key value, k0. At each level (including leaf) multiple entries in the page can contain the same key value — that is ki = ki+1 = . . . = k1+r.

• case 1: If ki +r< k0< ki +r +1 then follow pi +r.
• case 2: If ki ?1? k0< ki then follow pi ?1
• case 3: If k0= ki then follow pi ?1

![14808|581x557](upload://zVVGe1f1bjwKtgCIgRgbKXfWYdP.png)

When the leaf level is reached, scan forward using sibling pointers until a key, k ,is reached such that k > k0.

Computer Science & Information Technology

You might also like to view...

The ____ is used to add, delete, rename, and link Spry menu items to pages in your website.

A. Property inspector B. Navigation Bar C. Commands Page D. Options Menu Bar

Computer Science & Information Technology

If you click the button for Header row in the Sort dialog box, what happens?

A) The Header row names appear in the Sort by list. B) The Header row will automatically be changed to numbers. C) The Header row numbers appear in the Sort by list. D) The Header row will be included in the sort.

Computer Science & Information Technology

The Session layer initiates sessions, accepts incoming sessions, and _______________ existing sessions.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What particular type of group should you create in Server Manager if you have dozens or even hundreds of servers to manage?

What will be an ideal response?

Computer Science & Information Technology