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.

Determining complexity of an integer factorization algorithm

I'm starting to study computational complexity, BigOh notation and the likes, and I was tasked to do an integer factorization …

algorithm complexity-theory big-o factorization
Uses of Ackermann function?

In our discrete mathematics course in my university, the teacher shows his students the Ackermann function and assign the student …

algorithm math complexity-theory discrete-mathematics
Databases versus plain text

When dealing with small projects, what do you feel is the break even point for storing data in simple text …

database complexity-theory
Anagram algorithm with minimum complexity

I recently was asked to design an algorithm that checks if two strings are anagrams of one another. My goal …

c algorithm complexity-theory puzzle anagram
Understanding Ukkonen's algorithm for suffix trees

I'm doing some work with Ukkonen's algorithm for building suffix trees, but I'm not understanding some parts of the author's …

algorithm complexity-theory suffix-tree
What is the best complexity of N-Queens puzzle?

Can the N-Queens puzzle theoretically be solved in polynomial time? If so, what is the best complexity of it? I …

algorithm complexity-theory n-queens
What's Up with O(1)?

I have been noticing some very strange usage of O(1) in discussion of algorithms involving hashing and types of search, …

search collections complexity-theory data-access
Big theta notation of insertion sort algorithm

I'm studying asymptotic notations from the book and I can't understand what the author means. I know that if f(…

algorithm complexity-theory big-o insertion-sort big-theta
Analyzing Time complexity of union-find Algorithm?

Please give a brief and simple approach to analyzing time complexity of the union-find algo. In the two cases 1. Standard …

algorithm complexity-theory union-find
What is the time complexity of ordered operations in TreeSet?

What is the time complexity of the following operations in java.util.TreeSet? first() last() lower() higher() I would assume …

java algorithm complexity-theory treeset