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 / uma sankar pradhan

selection sort,quick sort,bubble sort
(all will take the same time and its time complexity is of
the order of n^2)
the time complexity for insertion sort when the list is
ordered from smaller to larger is O(n)
the time complexity for merge sort irrespective of the
order of the elements is O(nlogn)

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between arraylist and linkedlist?

985


Why is tuple immutable?

821


Explain linear linked implementation of Stack and Queue?

1062


How can I search for data in a linked list?

945


Write an algorithm to show the postfix expression with the input given as : a b + c d +*f ? .

916


What do you mean by Syntax Error

1070


Does mentioning the array name gives the base address in all the contexts?

1383


Differentiate between iterable and iterator.

1099


What is a property class?

1017


What is default array size?

1005


If you are using c language to implement the heterogeneous linked list, what pointer type should be used?

1062


What are data structures in programming?

969


Is it possible to store null key and null values in a hashmap?

846


Does treemap allow null key?

860


What do you mean by 2-3 tree?

920