B+ TREE
S E A RCHING
RULES:
• Maximum keys = order – 1
• Minimum keys = ceiling value (order/2) -1
• Maximum children = order
• Minimum children = ceiling value (order/2)
• All elements should be inserted at leaf node.
• Leaf nodes are also linked to each other.
• Note: All the elements are present at leaf node. All the intermediate nodes
are just the index to the elements present at leaf node.
ALGORITHM
• In B+ Tree, a search is one of the easiest procedures to execute and get fast and
accurate results from it.
• The following search algorithm is applicable:
• To find the required record, you need to execute the binary search on the available
records in the Tree.
• In case of an exact match with the search key, the corresponding record is returned
to the user.
• In case the exact key is not located by the search in the parent, current, or leaf
node, then a "not found message" is displayed to the user.
• The search process can be re-run for better and more accurate results.
B+ TREE OF ORDER 4:
Elements inserted: 1,4,7,10,17,21,31,25,19,20,28,42
SEARCH 25
B+ tree
B+ tree
B+ tree
B+ tree
B+ tree
B+ tree
B+ tree

B+ tree

  • 1.
    B+ TREE S EA RCHING
  • 2.
    RULES: • Maximum keys= order – 1 • Minimum keys = ceiling value (order/2) -1 • Maximum children = order • Minimum children = ceiling value (order/2) • All elements should be inserted at leaf node. • Leaf nodes are also linked to each other. • Note: All the elements are present at leaf node. All the intermediate nodes are just the index to the elements present at leaf node.
  • 3.
    ALGORITHM • In B+Tree, a search is one of the easiest procedures to execute and get fast and accurate results from it. • The following search algorithm is applicable: • To find the required record, you need to execute the binary search on the available records in the Tree. • In case of an exact match with the search key, the corresponding record is returned to the user. • In case the exact key is not located by the search in the parent, current, or leaf node, then a "not found message" is displayed to the user. • The search process can be re-run for better and more accurate results.
  • 4.
    B+ TREE OFORDER 4: Elements inserted: 1,4,7,10,17,21,31,25,19,20,28,42
  • 5.