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



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

Answer / 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

More C++ General Interview Questions

What is difference between class and function?

0 Answers  


Explain the scope resolution operator?

2 Answers  


What is c++ hiding?

0 Answers  


What is a wchar_t in c++?

0 Answers  


What are the conditions that have to be met for a condition to be an invariant of the class?

1 Answers  


What are the advantages of using typedef in a program?

0 Answers  


Explain what data encapsulation is in c++?

0 Answers  


What are c++ data types?

0 Answers  


How many storage classes are available in C++?

1 Answers  


What is the difference between global int and static int declaration?

0 Answers  


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

0 Answers  


How can I learn c++ easily?

0 Answers  


Categories