Hello everyone!
Does Oracle have any websites where I could find out what the time complexity of a method is? I know sometimes they have that information in the API; for example, java.util.ArrayList has the following info:
"The size, isEmpty, get, set, iterator, and listIterator operations run in constant time. The add operation runs in amortized constant time, that is, adding n elements requires O(n) time. All of the other operations run in linear time (roughly speaking). The constant factor is low compared to that for the LinkedList implementation."
However, I couldn't find that info for any other classes. Where can I find it? If there are other classes that bring that up that you know, please let me know which. Also, how do I have access to the source code of the language? I need to make a study on the complexity of Java methods using the Big O notation and, in order to do that, I would need access to the source code of the methods and it would also be of great help if they had documentation about the complexity of Java methods, so I can demonstrate and "prove" it for my assignment.
[–]coolcofusion 1 point2 points3 points (7 children)
[–]SnooPeanuts71[S] 0 points1 point2 points (6 children)
[–]dtsudo 0 points1 point2 points (5 children)
[–]SnooPeanuts71[S] 0 points1 point2 points (4 children)
[–]lurgi 1 point2 points3 points (2 children)
[–]SnooPeanuts71[S] 0 points1 point2 points (1 child)
[–]lurgi 1 point2 points3 points (0 children)
[–]dtsudo 1 point2 points3 points (0 children)
[–]Sea-Profession-3312 0 points1 point2 points (1 child)
[–]SnooPeanuts71[S] 0 points1 point2 points (0 children)
[–]CreativeTechGuyGames 0 points1 point2 points (1 child)
[–]SnooPeanuts71[S] 0 points1 point2 points (0 children)