what's difference between linear, binary and hash access?
Answers and Comments
Yup, I think it is.
Here is a great blog post on execution times and big-O notations:
http://leepoint.net/notes-java/algorithms/big-oh/bigoh.html
Here is a great blog post on execution times and big-O notations:
http://leepoint.net/notes-java/algorithms/big-oh/bigoh.html
Saved Stories
- What are the advantages of the demat account?
- Tell us about the last time you lost your temper? Did you take personal accountability for this situation?
- What is GAAP? Name at least three of the principles
- Can a Silverlight application create or change Office Documents via Open XML?
- How would you sort a linked list?
Sponsored Categories
linear O(n), example of linear access can be traversing an array
binary O(log(n)), example of binary access can be binary search
hash O(1), example of hash access is hashmap(hashtable) with constant access time.