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

Answer Posted / basav (shiv shankar)

It can be used when we store data elements at the bottom.
i.e., while storing data/records at the leaf level. Here we
generally store pointers in nodes in sorted order to make
sure the linear order of records.
Example, B+ trees.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are two types of sorting?

500


Why is hashmap not thread safe?

495


Why do we use a multidimensional array in data structure?

598


When will you use array over arraylist?

529


Which sorting algorithm is worst?

498






Why are b trees used?

511


What are the best data structure courses for gate preparation?

498


How many types of data structures are there?

527


What are some of the best practices relating to the java collection framework?

511


What is tree and its properties?

509


What are basic algorithms?

454


Can we store primitives in collections?

480


What is a subtree?

530


What is stack algorithm?

469


Define hash table?

546