Pointer manipulation is generally more time-consuming than multiplication and division.

Category: QuestionsPointer manipulation is generally more time-consuming than multiplication and division.
Editor">Editor Staff asked 4 weeks ago

Pointer manipulation is generally more time-consuming than multiplication and division.
 
(a) true
 
(b) false
 
My doubt is from Heap topic in section Heap of Data Structures & Algorithms I
 
I have been asked this question in class test.

1 Answers
Editor">Editor Staff answered 4 weeks ago

The correct answer is (a) true
 
Easiest explanation – Use of pointers for merging reduces the speed of other operations. This is the main drawback of all advanced data structures.