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...

If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?

Answer Posted / muni sankar

Heapsort is one of the best general-purpose sorting
algorithms, a comparison sort and part of the selection sort
family. Although somewhat slower in practice on most
machines than a good implementation of quicksort, it has the
advantages of worst-case O(n log n) runtime and being an
in-place algorithm

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of functions?

921


What happens to the Exception object after handling an exception?

2372


What is append in java?

1171


What is a variable in java?

1138


What are the advantages and disadvantages of reference counting in garbage collection?

1030


What is the difference between access specifiers and access modifiers in java? 16

1001


Why for each loop is used?

1013


What are recursive functions?

1059


What is a double vs float?

1018


Write a program to find the greatest of three numbers in java?

1008


What is nested interface?

1012


Can we create a class inside a class in java?

1085


explain autoboxing in java?

1013


what do you mean by stream pipelining in java 8? Explain

1028


Can we write class inside a class in java?

986