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 binary search tree and explain its time complexity?

512


What is mean by sorting?

506


List the data structures which are used in rdbms, network data modal, and hierarchical data model.

514


What is the space complexity of selection sort?

549


Define 2-3 tree?

560






How do you sort an array in descending order?

501


Which is faster hashmap or treemap?

487


What is the difference between static and dynamic data?

484


What is m way tree in data structure?

627


What is internal and external sorting?

501


Is binary tree a binary search tree?

481


How do you use the sort function?

473


Why do we use dynamic arrays?

466


What are AVL trees?

573


What type of algorithm is binary search?

467