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.
3,575 questions
0
votes
0
answers
14
views
Reduction from 3-SAT to Sudoku/Triangle Edge Decomposition: Issue with Multiple Edges
My friend and I were trying to reduce the 3-SAT problem to the Sudoku problem for a university project. To do that, we first attempted to reduce 3-SAT to triangle edge decomposition. However, we ran ...
1
vote
0
answers
12
views
Complexity of the Node Kayles game in restriction to planar graphs and trees of max degree 3 (reference request)
I am thinking about a 2-player game that some authors call Node Kayles. It's played on a graph and the players build a maximal independent set together: They alternate choosing vertices to add to an ...
-3
votes
0
answers
76
views
Is it valid to compare solving vs checking NP problems using average time per logical step?
I’ve been exploring a measurement approach for NP and NP-complete problems based on average time per logical step.
I define:
...
0
votes
0
answers
45
views
Is Exact Matching with more than two colours NP-hard?
I'm interested in the following problem: given a (multi-)graph with each edge coloured by one of 3 colours, find a perfect matching with exactly k_i edges of colour i in {1,2,3}. I'm also interested ...
1
vote
1
answer
135
views
Complexity of $Th(\langle \mathbb{Z}; + , 1 \rangle)$ same as $Th(\langle \mathbb{Z}; + \rangle)$?
I want to know a lower bound for the complexity of the decision problem for $\langle \mathbb{Z}; + \rangle$. The below paper notes that Presburger arithmetic, originally $\langle \mathbb{N}; +\rangle$,...
2
votes
0
answers
28
views
Does the Interior Point Method Solve Klee-Minty Cubes adversarial instances in Polynomial Time?
I am a network engineer currently studying optimization problems. Out of curiosity, I was fascinated by the fact that the Simplex Method has an exponential worst-case complexity, a property famously ...
5
votes
2
answers
662
views
Proof that NP is a subset of EXP
I would like to clarify a misunderstanding I have about the proof that all NP problems can be solved in exponential time. The argument as I understand it is that you can simply test all possible ...
1
vote
0
answers
114
views
Where is the relativized uniform complementor on r.e. indices stated explicitly (index-operator form)—existence for $\emptyset'$ and any minimality?
Let $\langle W_e : e\in\mathbb{N}\rangle$ be the standard effective enumeration of recursively enumerable (r.e.) sets, where
$$
n\in W_e \;\Longleftrightarrow\; \exists s\;\big(\varphi_e(n)\ \text{...
0
votes
1
answer
50
views
Prove Big Theta for degree p polynomial
Goal
Prove that $f(n) = a_pn^p + a_{p-1}n^{p-1} + ... + a_1n + a_0$ is $\Theta(n^p)$
Issue
I am having trouble proving $f(n)$ is $\Omega(n^p)$. I know I need a $c_0$ and $k$ such that $f(n) \ge c_0n^p$...
3
votes
2
answers
190
views
Solving a general 1st order ODE with a series expansion
I am interested in solving the general Cauchy problem:
$$\begin{cases}\frac{dx}{dt}=f(x, t) \\ x(t_0)=x_0\end{cases}$$
computationally. Of course, I know there are plenty of well-established methods ...
6
votes
0
answers
298
views
How does this algorithm "rank" amongst other in the literature?
By merging together the contributions from: a) this answer, b) the comments under this answer, we come up to the following:
Claim. For $n\in\mathbb N$, let $Q=(\{1,\dots,n\},*)$ be a quasigroup. Then, ...
4
votes
1
answer
227
views
Subgroup test runtime
In case of a finite subset of a group, the subgroup test boils down to showing that the subset is closed under the group operation. This holds, in particular, for the subsets of a finite group.
Q. ...
1
vote
0
answers
58
views
Prove that the zig-zag product of $G$ and $H$ (where $H$ is the smaller of the two) lifts $H^2$
Prove that the zig-zag product of $G$ and $H$ (where $H$ is the smaller of the two) lifts $H^2$.
I was reading Expander Graphs and their Applications (Lecture notes for a course by Nati Linial and ...
2
votes
0
answers
183
views
Transitivity check runtime
A necessary condition for a subset $\Sigma\subseteq S_n$ to be a transitive permutation group of order $n$, is to be... transitive. Is the best algorithm to check $\Sigma$'s transitivity faster than ...
2
votes
1
answer
107
views
Polynomial-Time Algorithms for Canonical Form of Ternary Matrices under Row/Column Permutations and Column Negations
We study equivalence classes of ternary matrices of size $m\times n$, where equivalence is defined via row permutations, column permutations, and negation of entire columns. Our goal is to define and ...
0
votes
0
answers
57
views
Can Nested tuples error calculation be improved by using complex numbers?
Hi I am trying to improve my error function . I have some data that is in form of nested tuple. These tuple nesting is base on importance of the data (all the lowest depth data is in as real numbers).
...
1
vote
0
answers
46
views
Enumerating all "elementary" cycles on a graph
I am interested in enumerating all possible "elementary" cycles of a given graph $G=(V,E)$. What I mean by elementary here, is a notion that I have but am not sure what its called in ...
1
vote
0
answers
44
views
How to informally understand `hash reducibility`?
I was reading a paper on a certain reducibilities in Polynomial classes. And I stumbled across this definition: For sets $A,B$ computable in polynomial time, we write $A \leq^{\#} B$ via a polynomial $...
0
votes
1
answer
36
views
Cost bounds for computing GCD of multivariate polynomials
Where to find the cost bound formulae for computing GCD of multivariate polynomials?
I see such for $\mathbb{Z}[x]$ in "Modern Computer Algebra" by Gathen & Gerhard.
But I need the case ...
8
votes
3
answers
1k
views
Sum of Big-O notations.
In studying algorithms, I encountered the following exercise:
Show that $\sum_{i = 1}^n O(i)$ is not $O(n)$.
I understand that to solve it one just has to realize that $\sum_{i = 1}^n i = \frac{n(n+...
0
votes
1
answer
121
views
VC-Dimension for finite domain and maximum $k$ hypothesis class
In "Understanding-Machine-Learning" by Shalev-Shwartz and Ben-David Section 6.8 Exercise 2.2 one has to determine $\text{VCdim}(\mathcal{H})$, where the hypothesis class is defined as
$$
...
1
vote
1
answer
119
views
Time complexity of bogo-selection sort
Just out of curiosity, I have created a sorting algorithm that is a mix between bogosort and selection sort. It operates as follows:
Initialise $x$ to 1. This will count the number of sorted elements....
7
votes
0
answers
126
views
Expressing $1$ of a finite field
Assume we have a finite field $F$ with $p^k$ elements. We start with a single non-zero element $x \in F$, and in one operation we can get the sum or product of any two elements we already have. We ...
1
vote
0
answers
56
views
Complexity of the clause fragment of Łukasiewicz logic
People who know the semantics of Łukasiewicz logic may skip to the ‘the question proper’ part of the description.
A reminder on the semantics of Ł
Variables are evaluated over $[0,1]$; there are ...
0
votes
0
answers
86
views
Evaluating $\Pi_i\Pi_j\Pi_k(1 + a_ib_jc_k)$ efficiently
I'd like to efficiently evaluate $\Pi_i^N\Pi_j^N\Pi_k^N(1 + a_ib_jc_k)$ without enumerating the $N^3$ terms by brute force.
I was able to find an approach that achieves $O(Nlog^2(N))$ for the 2-...
32
votes
2
answers
849
views
Finding the 1 of a finite field
I was thinking about the following question:
Alice and Bob play a game. There is a set $X$ of $p^k$ elements known to both of them, $p$ being a prime number. Alice has two binary operations on the set,...
2
votes
0
answers
177
views
Fast algorithm to compute restricted double sum
I stumbled across the following question: Can one compute the double sum
$$
\sum_{i = 1}^n \sum_{j:\ j <i}\ 1\{a_j > a_i\} 1\{b_j > b_i\}
$$
in $O(n \log(n))$, where
$$
(a_i)_{i = 1,..,n}, \...
0
votes
1
answer
86
views
notion of category of computable functions
I was learning about one-way functions in cryptography and it occurred that it might make sense to consider a category of computable functions. Is this a thing?
For example, we could define a category ...
1
vote
0
answers
31
views
Can the CVP → OptCVP reduction be extended to lattices with real (possibly irrational) basis?
I'm studying the reduction from the Closest Vector Problem (CVP) to its optimization variant (OptCVP) as presented in Theorem 8 of these lecture notes by Prof. Micciancio.
The original reduction ...
1
vote
1
answer
54
views
Is my counter-example for proving that CFLs are not closed under Perfect Shuffle correct?
I wanted to verify whether my counter-example for proving that CFLs are not closed under Perfect shuffle is indeed correct. I just want to know if the counter-example is correct, I know the proof can ...
0
votes
1
answer
112
views
approximation algorithm for MAX-CLIQUE
Suppose we have given a 0.12 approximation algorithm for MAX-CLIQUE is an efficient algorithm that on an input graph G with optimal solution of size 𝑘, returns a clique of size at least 0.12⋅𝑘.
My ...
0
votes
1
answer
102
views
Lattice SVP and minimum distance of linear code
Both of the problems in the title have a decision version which is NP-hard. My question is whether if SVP can be computed for a tractable example, can a minimum distance codeword for a related linear ...
1
vote
0
answers
36
views
is there a Polynomial‑time reduction from k‑Dominating Set in arbitrary graphs to k‑Dominating Set in regular graphs?
I’m studying the complexity of the Dominating Set problem under degree constraints. It’s well known that deciding whether a graph
G has a dominating set of size
k is NP‑complete in general.
If such a ...
0
votes
0
answers
17
views
How can I know if a non-universal description language L for finite functions is 'optimal' (term size + complexity)?
I'm looking for a theorem like the invariance theorem but for a non-universal case: finite functions.
Suppose I have a language L describing finite functions $f : M \to N$ for all $M, N \in \mathbb{N}$...
0
votes
0
answers
72
views
What function grows slower than any exponential but faster than "most" sub-exponentials?
I'm looking for a function $f \colon \mathbb{N} \to \mathbb{N}$ (or $\mathbb{R}^+ \to \mathbb{R}^+$) that satisfies:
Sub-exponential growth: For every $a > c1$ for some positive c1, $f(n) = o(a^n)$...
0
votes
0
answers
162
views
Computational Complexity - Rudich/Wigderson vs. Arora/Barak
I am planning to self-study Computational Complexity Theory. After some research, I have narrowed down the following two books:
Rudich/Wigderson—Computational Complexity Theory
Arora/Barak—...
1
vote
0
answers
54
views
Example of a string with many longest palindromic substrings under a specific inequality constraint
Let $s$ be a string of length $n$, and let $L$ be a fixed integer. Suppose the following conditions hold:
The string $s$ contains exactly $k$ palindromic substrings of length $L$ (they may overlap),
...
2
votes
0
answers
60
views
What is the tightest upper bound on comparisons when selecting the lexicographically smallest longest palindromic substring?
Problem:
Given a string $S$ of length $n$, find the longest palindromic substring. If there are multiple such substrings of the same maximum length, return the lexicographically smallest one.
My ...
0
votes
0
answers
42
views
Is there a relationship between the Kolmogorov complexity of an invertible function and its inverse?
Given a function $R$ that can be described with a minimal length binary program, its Kolmogorov complexity is the length of that program.
If the function is invertible, can we make some statements ...
4
votes
1
answer
288
views
Minimum operations to turn triangular grid black using triangle flips
Consider a triangular grid with n rows, where the i-th row contains i points forming a triangular array — the shape is analogous to that of an n -row Pascal triangle.
Each point is initially ...
0
votes
1
answer
164
views
Number of comparisons, in the best-case for the Binary-search based insertion-sort.
This post is further to the post here.
The analysis for the number of comparisons made by binary-search, for the average-case of Insertion-sort, is stated below. Also, C-implementation code is stated ...
0
votes
2
answers
159
views
Average-case analysis of Insertion-sort, & of binary-search based version.
The analysis for the average-case of Insertion-sort, is given here, with C-implementation.
It states the chance for the $i-$th insertion, requiring $0, 1, 2,\cdots, i-1$ comparisons is equal, and is ...
0
votes
0
answers
66
views
Checking if a space of binary matrices has a solution generating an isotropic subspace
In general, checking whether a system of bilinear equations over $\mathbb{F}_2$ has a solution is NP-hard, but I was wondering if the special structure of this problem allowed us to do better: Let $A$ ...
3
votes
0
answers
67
views
Computational complexity of non-convex separable programming versus non-separable non-convex programming?
As a network engineer working on optimization problems, I've observed that the literature suggests convex separable programming problems are not significantly more difficult to solve than linear ...
0
votes
0
answers
38
views
How can we derive the formula for the minimal strict decision nodes in array Minimum-Finding?
I am searching for a formula that determines the lowest number of strict decision nodes for finding one or multiple minimums from a random array of pre-determined size.
The only input of the formula ...
0
votes
1
answer
111
views
how to prove that P=NP implies that there is a language in EXP that requires circuits of size $2^n/n$
This is a problem in Computational Complexity: A Modern Approach exercise 6.7, but I don't have any idea.
Here are some informations may be useful:
I know that P=NP implies that P=NP=PH
the hint in ...
1
vote
0
answers
23
views
Reducing the number of special symbols in mapping reduction of Modded PCP to post's correspondence problem
Background: there exists a proof for a mapping reduction of modified PCP(MPCP) to PCP (in MPCP you always start the answer sequence with the first domino). This proof (can be found online, from ...
3
votes
3
answers
130
views
Algorithm to determine if a possibly-infinite box in $\Bbb Z^n$ is a subset of a union of possibly-infinite boxes
Let $T = \mathbb{Z}^N$, i.e. $T$ is the universe of $N$-dimensional integer vectors, each vector being denoted as $\vec{x} = \begin{bmatrix} x_1 & x_2 & \ldots & x_N \end{bmatrix}$.
Let $...
0
votes
1
answer
179
views
Finding order of time complexity for program finding the $m$-subsets of an $n$-set.
For the code here, the analysis for the order-of-time complexity is as follows:
For the purpose of finding the time-complexity of the above program; the program statements of concern are:
...
1
vote
1
answer
80
views
Find pair with smallest product mod $n$.
Suppose we have an integer $n$ and two lists $L_1,L_2$ of equal length $k$ containing integers.
In my setting $k$ is subexponential in $\log(n)$, so $k$ is quite a bit smaller than $n$, but not too ...