Top "Big-o" questions

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

Using big-O to prove N^2 is O(2^N)

I can clearly see than N^2 is bounded by c2^N, but how do i prove it by using formal …

big-o proof
Split a string to a string of valid words using Dynamic Programming

I need to find a dynamic programming algorithm to solve this problem. I tried but couldn't figure it out. Here …

algorithm dynamic big-o text-segmentation
Big-O of list slicing

Say I have some Python list, my_list which contains N elements. Single elements may be indexed by using my_…

python list big-o
Reccurrence T(n) = T(n^(1/2)) + 1

I've been looking at this reccurrence and wanted to check if I was taking the right approach. T(n) = T(…

algorithm math big-o analysis recurrence
Implement a queue in which push_rear(), pop_front() and get_min() are all constant time operations

I came across this question: Implement a queue in which push_rear(), pop_front() and get_min() are all constant …

algorithm data-structures queue big-o
Are 2^n and n*2^n in the same time complexity?

Resources I've found on time complexity are unclear about when it is okay to ignore terms in a time complexity …

algorithm big-o complexity-theory time-complexity
What is Big O notation? Do you use it?

What is Big O notation? Do you use it? I missed this university class I guess :D Does anyone use …

optimization complexity-theory big-o
Best way to get intersection of keys of two objects?

I have two object literals like so: var firstObject = { x: 0, y: 1, z: 2, a: 10, b: 20, e: 30 } var secondObject = { x: 0, y: 1, z: 2, …

javascript object functional-programming big-o intersection
Levenshtein Distance Algorithm better than O(n*m)?

I have been looking for an advanced levenshtein distance algorithm, and the best I have found so far is O(…

ios algorithm big-o levenshtein-distance
Why is the runtime of the Selection Algorithm O(n)?

According to Wikipedia, partition-based selection algorithms such as quickselect have runtime of O(n), but I am not convinced by …

algorithm selection big-o