.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 to clean u...

What is the complexity of this nested triple for loop??

I have searched a bit on StackOverflow and have understood the complexity up to the point of the j-loop, which is O(...

Time complexity for merging two sorted arrays of size n and m?

I was just wondering what is the time complexty of merging two sorted arrays of size n and m, given that n is always...

Is O(log n) always faster than O(n)?

If there are 2 algorthims that calculate the same result with different complexities, will O(log n) always be faster...

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

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

Computational complexity of Fibonacci Sequence?

I understand Big-O notation, but I don't know how to calculate it for many functions. In particular, I've been tryin...

How to calculate time complexity of backtracking algorithm??

How to calculate time complexity for these backtracking algorithms and do they have same time complexity? If differe...

Example of a factorial time algorithm O( n! )?

I'm studying time complexity in school and our main focus seems to be on polynomial time O(n^c) algorithms and quasi...

What are the differences between NP, NP-Complete and NP-Hard??

What are the differences between NP, NP-Complete and NP-Hard? I am aware of many resources all over the web. I'd li...

Complexity of recursive factorial program?

What's the complexity of a recursive program to find factorial of a number n? My hunch is that it might be O(n). ...

Determining complexity for recursive functions (Big O notation)?

I have a Computer Science Midterm tomorrow and I need help determining the complexity of these recursive functions. ...