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 / rahul

When the elements are ordered in either Ascending or Descending order, Quick sort behaves Equivalent to Merge sort. Time complexity of O(nlogn) is taken for sorting.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between hashset and arraylist?

1047


What are dynamic data structures?

1453


Which is the parent class of printerstatereasons class?

928


Should I use hashmap or hashtable?

944


Why sorting is used?

987


What is sorting problem?

959


Can a tree be empty?

933


Are linked lists considered linear or non-linear data structures?

1034


Differentiate linear from a nonlinear data structure?

1120


How do you find the number of comparisons in bubble sort?

945


Define hashing?

1078


What does adt stands for?

926


What is bubble sort algorithm in data structure sort and searching?

952


Can tuple be sorted?

992


Define threaded binary tree.

1083