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

How many types of sorting algorithms are there?

935


Define hashing?

1078


what is the difference between dynamic as well as non - dynamic data structures.

1009


What is a static structure?

1000


Which is faster arraylist or linked list?

955


What is a bubble sort and how do you perform it?

1074


What is quick sort?

1109


Tell me what is quick sort?

950


What are three common types of traversals?

1107


Do you know what is linear search?

946


Explain the common uses of tree database.

983


What do you mean by probing?

1042


What is an ordered map?

964


Difference between calloc and malloc ?

996


If you are using c language to implement the heterogeneous linked list, explain what pointer type will you use?

1038