Skip to main content

Questions tagged [computational-complexity]

Use for questions about the efficiency of a specific algorithm (the amount of resources, such as running time or memory, that it requires) or for questions about the efficiency of any algorithm solving a given problem.

Filter by
Sorted by
Tagged with
1 vote
2 answers
125 views

How can I construct a context-free grammar for the following language? The language is: $L = \{{(0 + 1)^* | \text{#}0 = 3p, \text{#}1 = 5q, p, q \geq 0} \}$. I can construct a CFG for L if the zeroes ...
ab55's user avatar
  • 177
1 vote
0 answers
52 views

I am aware that counting perfect matchings in graphs is #P-complete. I want to know what the complexity is in 3-uniform hypergraphs, i.e., X3C (and more generally in hypergraphs). You could also ...
discrete_things's user avatar
1 vote
0 answers
99 views

Let $f(x,y) = \sum_{i = 0}^d f_i x^i y^{d-i}$ be a homogenous binary polynomial of degree $d \in \mathbb{N}$ over a field $k$. I want to evaluate $f$ at a point $P_0 = (x_0, y_0) \in k^2$. What is the ...
Dimitri Koshelev's user avatar
1 vote
1 answer
121 views

I'm doing exercise 7.4 in Computational Complexity: A Modern Approach. (Error Reduction for $\textbf{RP}$) Let $L\subseteq \{0, 1\}^∗$ be such that there exists a polynomial-time PTM $M$ satisfying ...
minh quý lê's user avatar
1 vote
0 answers
106 views

I've seen that "Monotone" is given a few different definitions w.r.t. SAT, but I'm interested in the more common definition: The SAT problem, where each clause contains only unnegated ...
EarthenSky's user avatar
0 votes
1 answer
135 views

Followed from this question. Let's define the $\texttt{MinHalfSimpCycle}$ search problem: Given $G=(V, E)$ a complete, undirected graph with weights on the edges. We want a simple cycle in $G$ (each ...
user avatar
0 votes
1 answer
40 views

I want to know the computational complexity of the multiplication $yx^\top$ where $x,y \in \mathbb R^n$ are non-sparse vectors, i.e., this is an outer product. What is also the computational ...
Fathi's user avatar
  • 27
0 votes
1 answer
80 views

I have a set of points $(x,y)$ in a coordinate plane. I understand that quadratic regression is the problem of fitting a parabola of the form: $$ax^2 + bx + c$$ to those points. Assuming this link is ...
sgware's user avatar
  • 11
1 vote
0 answers
73 views

Let $v_1,\dots v_k$ be an orthonormal basis of $\mathbb R^k$ and $d\ll k$. We want to find vectors $u_1,\dots u_d\subset \{v_1,\dots v_k\}$ in order to minimize $$\left\|\sum_{i=1}^d u_i u_i^\top\...
Davide Maran's user avatar
  • 1,269
0 votes
1 answer
142 views

We will define $$\texttt{Hamiltonian}_{\texttt{st}}=\left\{\langle G, s, t\rangle: \text{There is a simple path from $s$ to $t$ passing through all vertices in $G$}\right\}.$$ Here $G$ is an ...
user avatar
2 votes
1 answer
52 views

The question concerns equation (5) from the paper Designing Strassen’s Algorithm. The tensor associated with matrix multiplication (say in $(\mathbb{C}^{n\times n})^{\otimes3}$) is given in the paper ...
yoyo's user avatar
  • 10.7k
0 votes
1 answer
102 views

I'm working on a problem set where I need to apply the Master Theorem to several recurrences. One of them is: $$T(n) = 3T(⌊n/5⌋) + 3T(⌈n/5⌉) + 200n \lg n$$ The question asks to use the Master Theorem ...
Gator's user avatar
  • 5
2 votes
1 answer
127 views

This is an advancement of a proof concerning prime numbers, as discussed in the short introduction to Kolmogorov complexity. Unfortunately it has an error somewhere I cannnot see, as it contradicts ...
John Kall's user avatar
  • 319
0 votes
1 answer
192 views

A function $f$ is said to be thinking in an encapsulated linear memory if: $f(x)$ is a polynomial block (that is, there exists a polynomial $q$ so that $|f(x)|\leq q(|x|)$) for each input $x$. ...
user avatar
5 votes
0 answers
324 views

Suppose that there exists a function $𝑓:\{0,1\}^𝑛 → \{0,1\}^𝑛$ such that, 𝑓 is computable in polynomial time; and the following task cannot be computed in polynomial time (that is, there are $𝑥 ∈ ...
user avatar
3 votes
1 answer
105 views

We consider Boolean circuits as we do, Specifically, inner nodes are either AND, OR (both – fan-in 2), or NOT (fan-in 1) gates. The fan-out of each gate is 2. The size of a circuit is the number of ...
user avatar
1 vote
1 answer
253 views

we consider Boolean circuits as we do, Specifically, inner nodes are either AND, OR (both – fan-in 2), or NOT (fan-in 1) gates. The fan-out of each gate is 2. The size of a circuit is the number of ...
user avatar
-2 votes
1 answer
109 views

Given that time behaves differently under relativistic conditions (such as near black holes or in high-speed motion), could the relative nature of time influence the complexity classes P and NP? For ...
Andri Nic's user avatar
2 votes
2 answers
158 views

So Turing proved that computable numbers are countably infinite. I think his reasoning is essentially because you can make a list of Turing machines where each machine appears only once and each ...
Ben Alan's user avatar
  • 215
0 votes
1 answer
177 views

(I know nothing about this topic beyond the popular level, so apologies if this question is not well-posed.) Every time I've seen this problem discussed, it's always implicit that P must either equal ...
Allure's user avatar
  • 850
2 votes
0 answers
47 views

In a nationwide entrance exam conducted in India, the following problem was asked in the year 2007: Which of the following languages are regular? (A) $L_1 = \left\{ ww^R \mid w \in \{0, 1\}^+ \right\}$...
Harsh Pathak's user avatar
0 votes
1 answer
110 views

When learning pseudopolynomial time and strong NP-completeness, this timestamp at this video says: Which basically 1.SubsetSum can be solved in pseudopolynomial time. 2.SAT, even using unary encoding,...
poker resources's user avatar
0 votes
0 answers
68 views

I have a following systems of equations with $A \in \mathbb{R}^{n\times n}, B \in \mathbb{R}^{n\times m}, c\in \mathbb{R}^{m}, a \in \mathbb{R}^{n}$, and $b \in \mathbb{R}^{m}$. $$ \begin{bmatrix} A &...
user1168149's user avatar
2 votes
0 answers
31 views

This is the final part of Problem 7-2 of CLRS' Introduction to Algorithms. The exercise asks to modify the argument given in the text so that the $\mathcal{O}(n \lg n)$ bound also applies to arrays $A$...
user1337's user avatar
  • 25k
0 votes
2 answers
112 views

in here, when the answer tries to answer about the property of polynomial time reduction, in the last paragraph it writes: However, Polynomial-time reductions are not symmetric. That is, it is not ...
poker resources's user avatar

1 2
3
4 5
72