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 std :: endl?

0 Answers  


an operation between an integer and real always yeilds a) integer result b) real result c) float result

0 Answers  


What is a volatile variable in c++?

0 Answers  


What is the maximum combined length of command line arguments including the space between adjacent arguments?

0 Answers  


Can we distribute function templates and class templates in object libraries?

0 Answers  






What is an action class?

1 Answers  


Explain the isa and hasa class relationships.

0 Answers  


What is c++ manipulator?

0 Answers  


How the virtual functions maintain the call up?

0 Answers  


Is string data type in c++?

0 Answers  


How delete [] is different from delete?

0 Answers  


What are formatting flags in ios class?

0 Answers  


Categories