Top "Big-o" questions

The Big-O notation is used to represent asymptotic upper bounds.

Differences between time complexity and space complexity?

I have seen that in most cases the time complexity is related to the space complexity and vice versa. For …

algorithm complexity-theory big-o
Time complexity of Euclid's Algorithm

I am having difficulty deciding what the time complexity of Euclid's greatest common denominator algorithm is. This algorithm in pseudo-code …

algorithm big-o time-complexity iteration
Constant Amortized Time

What is meant by "Constant Amortized Time" when talking about time complexity of an algorithm?

algorithm complexity-theory big-o
O(n log n) vs O(n) -- practical differences in time complexity

n log n > n -- but this is like a pseudo-linear relationship. If n=1 billion, log n ~ 30; So n …

algorithm big-o time-complexity
Understanding Time complexity calculation for Dijkstra Algorithm

As per my understanding, I have calculated time complexity of Dijkstra Algorithm as big-O notation using adjacency list given below. …

algorithm graph big-o time-complexity dijkstra
what does O(N) mean

Possible Duplicate: What is Big O notation? Do you use it? Hi all, fairly basic scalability notation question. I recently …

performance scalability big-o set
What would cause an algorithm to have O(log log n) complexity?

This earlier question addresses some of the factors that might cause an algorithm to have O(log n) complexity. What …

algorithm big-o time-complexity complexity-theory logarithm
Which is better: O(n log n) or O(n^2)

Okay so I have this project I have to do, but I just don't understand it. The thing is, I …

algorithm big-o
Time complexity of python set operations?

What is the the time complexity of each of python's set operations in Big O notation? I am using Python's …

python data-structures set complexity-theory big-o
Quick sort Worst case

I'm working on the program just needed in the following to understand it better. What is the worst case running …

algorithm big-o quicksort