Efficiency of sorting bubble, merge & memory efficiency for both best &worst case?

Showing Answers 1 - 2 of 2 Answers

mmh

  • Aug 6th, 2007
 

Efficiency of bubble sort = O(N^2)
Merge is a divide-and-conquer = O(N * log N)

Worst case: List is bigger than main memory. Bubble sort doesn't work.
Best case: List is very small, bubble sort may be faster, due to less overhead.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions