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

How to sort an array from smallest to largest java?

941


Give me some null interfaces in java?

1003


Can we have return statement in finally clause? What will happen?

912


What are the types of casting?

1006


What is the difference between static method and instance method in Java?

1125


How to use string tokenizer class.

1121


How do you find the maximum number from an array without comparing and sorting?

1070


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

935


What is a void method java?

907


What a static class can contains?

1104


What is a pattern what is an anti pattern?

889


How to run a JAR file through command prompt?

1206


What is meant by main method?

997


What is a double?

1036


What are the two types of java programming?

996