GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Aptitude
Go To First  |  Previous Question  |  Next Question 
 Aptitude  |  Question 84 of 124    Print  

Which sorting has the same average and worst time complexity?
A, Quick
B. Bubble
C. Merge


  
Total Answers and Comments: 4 Last Update: November 08, 2008   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: supraja
 
MERGE SORT

Above answer was rated as good by the following members:
kallam86
March 09, 2006 01:19:44   #1  
supraja        

RE: Which sorting has the same average and worst ...
MERGE SORT
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 03, 2006 03:17:40   #2  
anithakoutharapu Member Since: June 2006   Contribution: 2    

RE: Which sorting has the same average and worst ...
Bubble sort
 
Is this answer useful? Yes | No
December 05, 2006 03:47:02   #3  
poorvi        

RE: Which sorting has the same average and worst ...
Its Merge sort having a worst and an average complexity of nlog(n)
 
Is this answer useful? Yes | No
November 08, 2008 09:12:13   #4  
Nadal Member Since: November 2008   Contribution: 2    

RE: Which sorting has the same average and worst time complexity?A, QuickB. BubbleC. Merge
Average time complexity using quick sort is n lgn

Worst case time complexity using quick sort is n^2

Average time complexity using merge sort is n lgn

Worst case time complexity using merge sort is n lgn

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape