A treap is a combination of a tree and a heap.

Category: QuestionsA treap is a combination of a tree and a heap.
Editor">Editor Staff asked 5 months ago

A treap is a combination of a tree and a heap.
 
(a) false
 
(b) true
 
My doubt is from Binary Trees in section Binary Trees of Data Structures & Algorithms I
 
The question was asked during an online exam.

1 Answers
Editor">Editor Staff answered 5 months ago

Right option is (b) true
 
Easy explanation – A treap is a combination of a tree and a heap. The structure of a treap is determined by the fact that it is heap-ordered.


Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40701