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

What is the full form nasa?

785


How can virtual functions in c++ be implemented?

851


What is an arraylist c++?

932


Is c++ built on c?

787


What is pointer to member?

794


What is auto type c++?

873


What is the difference between a type-specific template friend class and a general template friend class?

784


Write about the local class and mention its use?

842


Can a constructor return a value?

919


Difference between pass by value and pass by reference?

866


What are the various access specifiers in c++?

811


what is data encapsulation in C++?

831


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

964


What is the prototype of printf function?

898


What is difference between rand () and srand ()?

844