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 vector class?

491


What is difference between set and map?

514


Describe tree database.

526


Which is faster list or set?

482


Differentiate between set and map.

618






What is ds tree?

525


Define depth and height of a tree?

566


Differentiate between arraylist and linkedlist.

626


Explain extended binary tree.

517


What are AVL trees?

578


In tree construction which is the suitable efficient data structure?

555


What is array in data structure with example?

486


What is the minimization factor and time complexity of b-tree?

707


Is pointer a variable?

506


Why heap sort is not used?

482