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

Is set c++?

573


Define the process of error-handling in case of constructor failure?

573


What are the main features of c++?

546


Differentiate between structure and class in c++.

604


Why do we use double in c++?

602






What is ios in c++?

648


Is dev c++ free?

616


what are function pointers?

582


What is virtual table?

627


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

3704


Can we specify variable field width in a scanf() format string? If possible how?

666


Should the this pointer can be used in the constructor?

557


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

582


What is the arrow operator in c++?

562


What are the various access specifiers in c++?

603