When will you sort an array of pointers to list elements,
rather than sorting the elements themselves?

Answer Posted / kumar gaurav

if the data structure is too large,and the pointers refer to
many data then if we sort pointers then,we can easily know
where to start at,it will be very beneficial,and sorting the
elements will take a much longer time,so sorting off
elements is not beneficial

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?

669


Explain heapsort. What is its complexity?

755


Why is hashset not ordered?

675


What is sorting explain?

680


What is dynamic array how it is created?

675


Difference between calloc and malloc in data structures?

673


Define an abstract data type (adt)?

758


How will you check the validity of an expression containing nested parentheses?

711


Which interfaces are implemented by abstractsequentiallist?

666


What is data structure and why it is important?

695


Tell me about the different sorting techniques.

704


Define double hashing?

730


Is quicksort a stable sorting algorithm?

723


which is the simplest file structure? (Sequential, indexed, random)

985


Which algorithm is used in collections sort method?

616