Is Treap a randomized tree.

Category: QuestionsIs Treap a randomized tree.
Editor">Editor Staff asked 1 month ago

Is Treap a randomized tree.
 
(a) True
 
(b) False
 
My question is from Binary Trees in portion Binary Trees of Data Structures & Algorithms I
 
The question was asked during an interview for a job.

1 Answers
Editor">Editor Staff answered 1 month ago

The correct answer is (a) True
 
The explanation is: Treap is a type of data structure which is a combination of binary tree and heap. It is an example of a randomized binary search tree. It stores value in pairs.