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

Explain Big-O notation with an example

Answer Posted / hrindows@gmail.com

The Big-O notation depicts the performance of an algorithm as the number of elements in ArrayList. A developer can use Big-O notation to choose the collection implementation. It is based on performance, time, and memory.
For example, ArrayList get(index i) is a method to perform a constant-time operation. It does not depend on the total number of elements available in the list. Therefore, the performance in Big-O notation is O(1).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you print array in java?

1047


What are the advantages of exception handling?

1118


Which java collection does not allow null?

1212


What are the differences between getting and load method?

1292


Can we override compareto method?

989


How will you reverse a singly-link list?

1051


What does next mean in java?

1021


How can I debug the Java security exceptions and AccessControlExceptions?

1199


What are predefined functions?

1203


How to instantiate member inner class?

1145


What is wrapper class html?

993


What are aggregate functions explain with examples?

1110


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1218


What is the file type?

1068


What modifiers may be used with a top-level class?

1110