Skip to main content

Questions tagged [time-complexity]

The amount of time resources (number of atomic operations or machine steps) required to solve a problem expressed in terms of input size. If your question concerns algorithm analysis, use the [runtime-analysis] tag instead. If your question concerns whether or not a computation will *ever* finish, use the [computability] tag instead. Time-complexity is perhaps the most important sub-topic of complexity theory.

0 votes
0 answers
9 views

Let $W\neq\varnothing$ be a finite set of states and $\partial:W\rightarrow[0,1]$ a (rational) probability distribution on it. The size of $\partial$ is the number of non-zero terms in it. E.g., for $...
Daniil Kozhemiachenko's user avatar
2 votes
0 answers
53 views

I have a long array of size $n>10^6$, call it $X$. I would like to find all ranges $[a, b)$ satisfying the following conditions $\sum_{i=a}^{b-1}X[i] \leq 0$, $b-a \geq K$, $\sum_{i=a-1}^{b-1} X[i]...
cebir latis's user avatar
4 votes
1 answer
66 views

Given a finite field of order $2^{\lambda}$ (where $\lambda$ isn't integral), what's the time complexity of finding any solution of the equation $ax^2+bx+c=0$ in the said finite field? The best ...
DannyNiu's user avatar
  • 448
2 votes
1 answer
85 views

Let $f : S \times \mathbb{N} → \mathbb{Z}$ be a stochastic function seeded by $\mathrm{seed} \in S$, constrained such that $$ |f(\mathrm{seed}, t + 1) - f(\mathrm{seed}, t)| \le 1 $$ Such a function ...
William Ryman's user avatar
0 votes
1 answer
57 views

I am trying to understand the complexity of a problem that involves solving some $\mathsf{PSPACE}$-complete problem exponentially many times. Namely, one can imagine $\Xi=\{\phi_1,\ldots,\phi_n\}$ to ...
Daniil Kozhemiachenko's user avatar
0 votes
0 answers
30 views

What is the difference in the number of bit operations in the given expressions using big O notation: $\sum_{i=1}^n i^2$ $\frac{n(n+1)(2n+1)}{6}$ For 1. there are $n$ additing bit operation and $n^2$...
Antony's user avatar
  • 1
1 vote
0 answers
66 views

I want to find if there's a fast algorithm for the following: Given a set of lowest common ancestor constraints, find the smallest (fewest number of nodes) strict binary tree that satisfies all of ...
Colman Koivisto's user avatar
0 votes
3 answers
128 views

I mean, we could in principle use $\Theta$, $\omega,o$ and so on but it seems so that $O$ is a favourite in presenting computational complexities. Why?
Clemens Bartholdy's user avatar
1 vote
0 answers
64 views

Consider a finite Abelian group $G$ where each element is its own inverse. As an explicit example, let $G$ be the integers 0 to 31 under the bitwise XOR $\oplus$ operation. We have a collection of $n$ ...
cpoole's user avatar
  • 11
0 votes
1 answer
114 views

A very basic question has bugged me for a while. We know that random-access machines (RAM) are polynomially equivalent to Turing machines. I assume the RAM model to have unit cost addition, ...
advocateofnone's user avatar
1 vote
2 answers
463 views

I started thinking about this problem while trying to find the best way to divide a book reading into $4$ roughly equal sections. I ended up brute-forcing every possible combination, but now I'm ...
Jacob Hungerford's user avatar
1 vote
1 answer
205 views

Parity games are simple games played on a graph: https://en.m.wikipedia.org/wiki/Parity_game Let $A$ be an algorithm that solves the following problem in polynomial time. Given: A graph $G=(V,E)$ ...
user77036's user avatar
1 vote
2 answers
127 views

I'm trying to determine the time complexity of adding $n$ numbers that each have a bit length of $n\log n$. I'm confused because sometimes I've seen the addition of two $n$ bit numbers as requiring $O(...
Ari's user avatar
  • 1,703
1 vote
0 answers
92 views

I am trying to understand the proof of the following theorem, as given by Sipser for example. If a function $t$ is time-constructible, then there is a language that is decidable in time $t$ but not ...
Mike Laurence's user avatar
2 votes
1 answer
94 views

Just want to check when you parallize Strassen's algorithm you get a time complexity of $O(\log n )$ because you divide and conquer $\log n$ times in parallel and a space complexity of $ O( n^{\...
user3133512's user avatar

15 30 50 per page
1
2 3 4 5
183