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 shell sort in data structure?

485


What is the difference between hashset and treeset?

512


Does hashmap maintain insertion order?

507


Why is merge sort faster?

500


Define a relation?

558






Describe tree database. Explain its common uses.

563


Differentiate among cycle, path, and circuit?

539


What are threaded binary trees?

563


What is java priority queue?

557


State the demerits of linked representation of binary trees?

546


What is a weighted graph?

573


Why arraylist is not efficient for manipulation?

454


Is quicksort recursive?

554


What is a queue in data structure?

540


Where is data structure used?

550