Top "Complexity-theory" questions

Computational complexity theory is a branch of the theory of computation in theoretical computer science and mathematics that focuses on classifying computational problems according to their inherent difficulty.

What is the best way to get the minimum or maximum value from an Array of numbers?

Let's say I have an Array of numbers: [2,3,3,4,2,2,5,6,7,2] What is the best way to find the minimum or maximum value …

algorithm actionscript-3 apache-flex actionscript complexity-theory
What is the time complexity of indexing, inserting and removing from common data structures?

There is no summary available of the big O notation for operations on the most common data structures including arrays, …

data-structures complexity-theory big-o
Big-oh vs big-theta

Possible Duplicate: What is the difference between Θ(n) and O(n)? It seems to me like when people talk about …

algorithm complexity-theory
.NET Console Application Exit Event

In .NET, is there a method, such as an event, for detecting when a Console Application is exiting? I need …

.net console-application complexity-theory
What's "P=NP?", and why is it such a famous question?

The question of whether P=NP is perhaps the most famous in all of Computer Science. What does it mean? …

computer-science theory complexity-theory np-complete p-np
Time complexity of nested for-loop

I need to calculate the time complexity of the following code: for (i = 1; i <= n; i++) { for(j = 1; j &…

big-o complexity-theory time-complexity
Time complexity of accessing a Python dict

I am writing a simple Python program. My program seems to suffer from linear access to dictionaries, its run-time grows …

python hash dictionary complexity-theory
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
O(N log N) Complexity - Similar to linear?

So I think I'm going to get buried for asking such a trivial question but I'm a little confused about …

language-agnostic complexity-theory quicksort