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

Why we use linked list?

892


What are the Advantages and disadvantages of Array?

1128


What do you mean by balance factor of a node in avl tree?

909


What is the difference between 1d and 2d array?

963


Which is the parent class of enumset class?

938


What is max heapify?

863


What is adt in data structure?

973


What is ascii sort order?

891


Is selection sort greedy?

867


What is java priority queue?

956


Tell me how to find middle element of linked list in one pass?

894


What are the major data structures used in the hierarchical data model?

1001


Explain the term tail recursion?

986


How do you find the height of a binary tree?

877


Explain Stack

994