Choose the correct properties of weak-heap.

Category: QuestionsChoose the correct properties of weak-heap.
Editor">Editor Staff asked 5 months ago

Choose the correct properties of weak-heap.
 
(a) Every node has value greater than the value of child node
 
(b) Every right child of node has greater value than parent node
 
(c) Every left child of node has greater value than parent node
 
(d) Every left and right child of node has same value as parent node
 
The question is from Weak Heap in division Heap of Data Structures & Algorithms I
 
I had been asked this question during an interview for a job.

1 Answers
Editor">Editor Staff answered 5 months ago

Right option is (b) Every right child of node has greater value than parent node
 
The best explanation: This is the property of a weak heap.


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