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

Can we add elements to final list?

864


What do you mean by selection sort?

840


What is height balanced tree?

875


What is a B tree?

938


Why hashtable is faster than arraylist?

892


What is a dequeue?

909


What is meant by arraylist?

866


What is complexity algorithm?

817


What will be the output of below code?

974


Why we use linked list?

850


Write an algorithm through which the inserting and deleting of elements can take place in circular queue?

1039


Define linked lists?

857


What is difference between list and set?

786


What do you mean by an Array?

892


What does each entry in the link list called?

852