Question

In: Computer Science

Database Management Systems IT344 -Fundamentals Of Database Systems book Please Use your own words . sorry...

Database Management Systems
IT344 -Fundamentals Of Database Systems book
Please Use your own words .
sorry No handwriting
no copy paste

Construct a B+ tree for the following set of key values under the assumption that the number of key values that fit in a node is 3.

Key values (3,10,12,14,29,38,45,55,60,68,11,30)

Show the step involved in inserting each key value.


thank you for your time and effort

Solutions

Expert Solution

B+ trees order:-

For non-leaf:Maximum no.of children it can contain i.e.,Max no.of pointers.

For leaf:- Maximum no.of key value pairs present in a leaf.

B+ Tree insertion:-

overflow:- when no.of search key values exceeds p-1 where p is the order given.(for both leaf and non-leaf).

when overflow occurs:-

For leaf node:-

1.split the node in to 2 nodes such that first node contains floor{(p-1)/2} values and second node contains remaining values.

2.copy the smallest search key value of the second node to the parent node.

For non leaf node:-

1.Split the node in to two nodes such that first node contains floor(p/2)-1 keys.

2.Move the smallest key of the remaining keys to the parent and the second node contains the remaining keys.

solution:-

In the given question,given that the order can be 3.There is no specific order for leaf and non-leaf is given.So I am taking p(leaf)=3 and p(non-leaf)=3.

Overflow occurs when node at leaf or non-leaf exceeds p-1=3-1=2 keys and when overflow occurs

For leaf node:- one node will contain 1 key (since floor[(3-1)/2]=1) and the remaining keys will be placed in the second node and smallest key of second node is pushed to parent node.

For non-leaf node:-one node will contain 1 key(since floor(3/2)-1=1) and the smallest key among the remaining will be pushed to parent and the remaining keys will be placed in the second node.

The correct position of node is finding same as in binary search tree(less than root value-left subtree and greater than root value-Right subtree).


Related Solutions

IT344- Database Management Systems book Fundamentals Of Database Systems please no copy and paste Use your...
IT344- Database Management Systems book Fundamentals Of Database Systems please no copy and paste Use your own words , No handwriting. Users prefer to stream high quality videos (e.g., watch YouTube) without lagging (i.e., slow loading). In this context, explain how UDP is better than TCP when streaming videos?
Computer Networks IT 210 Please Use your own words . sorry No handwriting no copy paste...
Computer Networks IT 210 Please Use your own words . sorry No handwriting no copy paste Noise is one of the causes of transmission impairment. There are several types of noise, mention three and explain them briefly in your own words. thank you for time and effort
Computer Networks IT 210 Please Use your own words . sorry No handwriting no copy paste...
Computer Networks IT 210 Please Use your own words . sorry No handwriting no copy paste Explain the difference between hub and switch in term of traffic management. thank you for time and effort
Web Technologies IT230 Please Use your own words . sorry No handwriting. Users prefer to stream...
Web Technologies IT230 Please Use your own words . sorry No handwriting. Users prefer to stream high quality videos (e.g., watch YouTube) without lagging (i.e., slow loading). In this context, explain how UDP is better than TCP when streaming videos? thank you
Please, Use your own words . sorry No handwriting. COURSE: Human Computer Interaction Usability testing is...
Please, Use your own words . sorry No handwriting. COURSE: Human Computer Interaction Usability testing is a significant aspect for effective interface development. List and briefly describe any four methods of usability testing. N.B. The question asks about methods of usability testing not tools used in usability testing (surveys are an example of tools).
IT-244: Introduction to Database *Please, i need Unique answer, use your own words (do not copy...
IT-244: Introduction to Database *Please, i need Unique answer, use your own words (do not copy and paste). *Please, do not use handwriting. (no need for picture) Type your ideas/definitions/examples into the message field to the following discussion prompt: Discussion Topics: Assume that you have a Saudi football league player database. In this database, you have a table containing players’ attributes such as (Name, age, position, etc.) and you decided to add information about players’ agents. Would you represent the...
Describe and discuss in your own words adolescent sexuality. Use own words please
Describe and discuss in your own words adolescent sexuality. Use own words please
2) (please use your own words) Total Quality Management (TQM) is a competitive approach to long-term...
2) (please use your own words) Total Quality Management (TQM) is a competitive approach to long-term success of any organization. Explain the Core Quality Management Principles that can be used as a basis for quality management?
2) (please use your own words) Total Quality Management (TQM) is a competitive approach to long-term...
2) (please use your own words) Total Quality Management (TQM) is a competitive approach to long-term success of any organization. Explain the Core Quality Management Principles that can be used as a basis for quality management?
( please in your own words) explain how risk management is related with overall project management?
( please in your own words) explain how risk management is related with overall project management?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT