Heapsort is an in-place sorting algorithm.
Insertion sort is also an in-place sorting algorithm.
But merge sort is not considered in-place because it requires extra memory for merging.
So, heapsort sorts in place like insertion sort, but unlike merge sort.
Therefore,
$(P,Q)=(Insertion\ sort,\ Merge\ sort)$
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.