Question

what is the common between binary search tree and B tree? Can all the binary search...

what is the common between binary search tree and B tree? Can all the binary search tree be considered a special case of some vaild B tree why or why not?

Homework Answers

Answer #1

The common difference between binary search tree and B tree is that, in binary tree there is no ordering of the nodes whereas in binary search tree the nodes are ordered in a way such that the left subtree is lesser than the parent nodes and the parent nodes are less than the right sub tree.

Yes, all binary search tree can be considered a special case of same valid B tree because of the following reasons:

1) Every nodes in the tree has a key value which is different from all the values present in tree

2) Left sub trees are smaller than nodes which infact smaller than the right sub tree.

3) In order to allow more than two child nodes the B tree generalises the Binary search tree

If you liked the solution then give a thumbs up ? it will be really appreciated ?

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
Binary Search Tree. If best case is the number being searched for is root, O(1) or...
Binary Search Tree. If best case is the number being searched for is root, O(1) or O(log2^n), average case is O(logn), and worst case is O(n), what are some techniques for keeping the BST balanced so that the search will always be logarithmic?
Is searching an element in a Binary Search Tree (BST) faster than finding an element in...
Is searching an element in a Binary Search Tree (BST) faster than finding an element in a Binary Tree? If yes, explain why? (this is for Java programing)
a) Design a recursive linear-time algorithm that tests whether a binary tree is a binary search...
a) Design a recursive linear-time algorithm that tests whether a binary tree is a binary search tree. Describe your algorithm in English or with a simple pseudocode program. b) (3 bonus pts.) Extend the algorithm in a) to test whether a binary tree is an AVL tree.
How can I prove that any node of a binary search tree of n nodes can...
How can I prove that any node of a binary search tree of n nodes can be made the root in at most n − 1 rotations?
Consider a binary search tree where each tree node v has a field v.sum which stores...
Consider a binary search tree where each tree node v has a field v.sum which stores the sum of all the keys in the subtree rooted at v. We wish to add an operation SumLE(K) to this binary search tree which returns the sum of all the keys in the tree whose values are less than or equal to K. (a) Describe an algorithm, SumLE(K), which returns the sum of all the keys in the tree whose values are less...
Write a C++ program that checks whether a binary search tree is an AVL. The input...
Write a C++ program that checks whether a binary search tree is an AVL. The input is an arbitrary binary search tree, and the output is binary, so either true or false.
‏What is the output of the Euler tour in the normal binary search tree if the...
‏What is the output of the Euler tour in the normal binary search tree if the key insert order is 5 , 2 , 8 , 5 , 9 , 5 , 1 , 3 , 4 , 2 , 8 ? All keys equal to the node should be the right subtree of that node. ____________________________________________________________ ‏Construct the binary max - heap for the keys given below. Once all the keys are inserted, perform the remove maximum operation, and...
Binary Search Tree Code in Java Write a program that prompts user to enter however many...
Binary Search Tree Code in Java Write a program that prompts user to enter however many numbers they want to add to the binary search tree. Then have the user input numbers until the tree contains that many elements. If the user enters a number that already exists in the tree, then a message should be displayed "Number is already in the tree". Once all elements are added to the tree print its contents in sorted order. Assume all user...
Given the list of values below, create a Binary Search Tree for the list, Use the...
Given the list of values below, create a Binary Search Tree for the list, Use the first value in the list as the root of the tree, add the nodes to BST in the order they appear in the list.[50, 44, 82, 39, 35, 98, 87, 100, 74, 23, 34, 14, 94] What is the minimum height of a Binary Tree that contains 24nodes? What is the minimum height of a Binary Tree that contains 64nodes? What is the minimum...
Prove or disprove: each binary search tree with n vertices can be reaped into a chain...
Prove or disprove: each binary search tree with n vertices can be reaped into a chain by O(n) rotations (used for the Insert and Delete operations for red-black trees). A chain is a tree in which every vertex has at most 1 descendant. Please help. thank you!