What is the best sorting algorithm, when there is a large
amount of data, that cannot be fit in the main memory. ?

Answer Posted / pritam

Merge sort is a best way to sort a large amount of data that cannot fit is memory. It is an external sorting algorithm i.e
sorting algorithm to be used when elements to be sorted do not fit in memory.

ANALYSIS :
best case,worse case and average case performance of
" O(n logn) "
and space complexity of O(n) (auxiliary)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we implement inheritance in c++?

584


Write a c program for binary addition of two 8 bit numbers.

3666


Write a program to show polymorphism in C++?

628


Explain the static member function.

709


What is pointer to array in c++?

618






what Is DCS ? what i will get benefit when i did?

1834


What will the line of code below print out and why?

328


Differences between private, protected and public and give examples.

577


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2068


Write a program which uses Command Line Arguments

635


How do you clear a map in c++?

571


Do the names of parameters have to agree in the prototype, definition, and call to the function?

599


Why pointer is used in c++?

615


Briefly describe a B+ tree. What is bulk loading in it?

801


What is & in c++ function?

591