Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

A list is ordered from smaller to largest when a sort is
called. Which sort would take the longest time to execute?

Answer Posted / ntrphanikumar

I am not sure about the answer.

But I think the answer is "Selection Sort" whose order is
O(n^2) irrespective of the elements order.

I guess all other sorts somehow depend on the order of elements.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between tree and binary tree?

1041


What is bubble sort algorithm?

1011


Is hashtable fail fast?

907


Explain merge sort algorithms.

1049


What does bubble sort do?

867


Is data structures and algorithms important?

986


Which type of memory allocation is referred for linked list?

1238


What are the two types of data?

1062


Why entry interface is used in map?

984


Can we put null value in hashmap?

921


Where is insertion sort used?

963


What do you mean by external sorting?

917


Why hashmap is faster than hashset?

1063


What do you know about the big-o notation and can you give some examples with respect to different data structures?

972


What is the difference between hashmap and arraylist?

1054