answersLogoWhite

0


Best Answer

A degenerate binary tree is one where most or all of the nodes contain only one sub node. It is unbalanced and, in the worst case, performance degrades to that of a linked list. If your add node function does not handle rebalancing, then you can easily construct a degenerate tree by feeding it data that is already sorted.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: What is a degenerate binary search tree?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does binary tree and binary search tree same?

no they are not same


How can you merge two binary search trees into a single binary search tree?

To merge two binary search trees into a single binary search tree, you can perform an in-order traversal on each tree to extract their elements, combine the elements into a single sorted list, and then construct a new binary search tree from the sorted list. This process ensures that the resulting tree maintains the binary search tree property.


What is complexity of binary search tree?

The complexity of binary search tree : Search , Insertion and Deletion is O(h) . and the Height can be of O(n) ( if the tree is a skew tree). For Balanced Binary Trees , the Order is O(log n).


How do you print all data in a Binary Search Tree?

By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.


What is the different between a binary search tree and a binary tree?

self depend friend"s............


Is an AVL tree a binary search tree (BST)?

Yes, an AVL tree is a type of binary search tree (BST) that is balanced to ensure efficient searching and insertion operations.


Is sorting a binary search tree simple?

A binary search tree is already ordered. An in order traversal will give you a sorted list of nodes.


What is the time complexity of searching a binary search tree?

The time complexity of searching a binary search tree is O(log n), where n is the number of nodes in the tree.


What is the use of binary?

Binary trees are commonly used to implement binary search tree and binary heaps.


What is binary search in data structure using c?

a tree which has atmost two nodes is called binary tree binary search tree is a binary tree which satisfies the following 1.every node in tree must be distinct 2.values in right subtree > value at root 3.values in left subtree < value at root 4.left,right subtrees must be binary search trees


What is the height of a binary search tree?

The height of a binary search tree is the maximum number of edges from the root node to a leaf node. It represents the longest path from the root to a leaf in the tree.


What is the time complexity for finding an element in a binary search tree?

The time complexity for finding an element in a binary search tree is O(log n), where n is the number of nodes in the tree.