Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 71238

Questions related to the (computational) complexity of solving problems

0 votes
Accepted

Is a graph at least k-colorable? (Complexity)

Well, all graphs are colorable with $\geq k$ colors: Assign each vertex a different color (and leave the other color classes empty if $k$ is larger than the number of vertices of the given graph). As …
Watercrystal's user avatar
  • 1,536
0 votes
Accepted

Do uncomputable functions exist that are of the order of a computable function?

Yes. Let $L$ be any undecidable language (e.g. the halting problem), w.l.o.g. encoded over the alphabet $\{0, 1\}$ and such that all $x \in L$ start with $1$. Further, let $\leq_\text{lex}$ denote the …
Watercrystal's user avatar
  • 1,536
1 vote

If a function $f(n)=\Theta(g(n))$, does it follow that $f(n/k)=\Theta(g(n))$ for a constant ...

Suppose $f(n) = 2^n$. Then $f(n / 2) = 2^{n / 2} = \sqrt{2^n}$ and setting e.g. $g(n) = 2^n$ as well shows $f(n) \in \Theta(g(n))$ but $f(n / 2) \notin \Theta(g(n))$, so this does not hold in general. …
Watercrystal's user avatar
  • 1,536
2 votes
Accepted

MSAT and IMSAT problems (restricted versions of SAT)

For your first question, I'll give an elementary proof for the $\mathsf{NP}$-hardness of $\mathrm{MSAT}$ by reduction from $\mathrm{SAT}$. Let $\varphi$ be a propositional formula in CNF (i.e., a $\ma …
Watercrystal's user avatar
  • 1,536
6 votes
Accepted

Why does the time hierarchy theorem use a rather intricate diagonal argument?

The output size does not scale with (time) complexity of problems in general. In fact, complexity theorists are largely interested in decision problems for which the output will either be 0 or 1.
Watercrystal's user avatar
  • 1,536
1 vote

NP-complete problem of partitioning into several sets with a Hamiltonian cycle

You can map any $\text{HamiltonianCycle}$ instance $G$ to an $L$-instance $(G, 1)$, yielding a polynomial time reduction from an $\mathsf{NP}$-complete problem to $L$ which implies the $\mathsf{NP}$-h …
Watercrystal's user avatar
  • 1,536
1 vote

Hardness of finding exactly two Hamiltonian cycles in a graph

Your $M_1$ is not a polynomial time NTM unless $\mathsf{NP} = \mathsf{coNP}$, I think. In the last step (checking that $G_{ij}$ contains no HC), you essentially want to decide the complement of HC, wh …
Watercrystal's user avatar
  • 1,536
2 votes
Accepted

Reduction from VC to {a,k | a is a 3DNF (disjunctive normal form) and there exists an assign...

The reason for why you are having problems is because your solution does not work. In particular, the problem is that your formula does not capture the VC problem statement. More precisely, the formul …
Watercrystal's user avatar
  • 1,536
1 vote

Given a list of vertices in a binary tree output minimal sublist with the same lowest common...

Consider your binary tree as a binary search tree on the integers $1$ through $n$ to find that the answer for some given list $L \subseteq [1, n]$ will be $\{\min L, \max L\}$. In case you are not giv …
Watercrystal's user avatar
  • 1,536
4 votes

Complementary for $SAT$

Usually, when we talk about the complement of a set we have some reference set to compare to. In the setting of languages over some alphabet $\Sigma$, this means that the complement of some language $ …
Watercrystal's user avatar
  • 1,536
1 vote
Accepted

How to prove NP-Completeness of longest path between two vertices relying Hamilton NP-Hard p...

Welcome to the site! A Karp reduction from $\mathrm{Hamiltonian Cycle}$ could work as follows: Given a graph $G = (V, E)$, we construct $\mathrm{Long Path}$-instance $(G', v, v', |V|)$ where $G'$ is o …
Watercrystal's user avatar
  • 1,536
1 vote

P vs NP characterization confusion

The statement is correct for exactly the reason you started with: $\mathsf P$ is a subset of $\mathsf{NP}$ which means that every problem in $\mathsf P$ is also in $\mathsf{NP}$. You can also go throu …
Watercrystal's user avatar
  • 1,536
3 votes

Minimum absolute value of subset sums of integer values

We give a Turing reduction from the $\mathrm{SubsetSum}$ problem. Suppose we are given a $\mathrm{SubsetSum}$ instance $(A, k)$ where w.l.o.g. $A$ only contains positive integers, i.e. we want to find …
Watercrystal's user avatar
  • 1,536
0 votes

How to encode a Universal Turing machine to an Integer $\in\mathbb{N}^+$?

There are many ways to encode Turing machines. Essentially, this is possible because a TM $M$ is specified by a finite amount of information just like a computer program is completely specified by its …
Watercrystal's user avatar
  • 1,536
1 vote
Accepted

NP-Completeness of SAT with given hamming weight k

There is a simple reduction from the Clique problem, i.e. given some (undirected, simple) graph $G = (V, E)$ and some number $k$ we are asked whether or not $G$ contains a clique of size at least $k$. …
Watercrystal's user avatar
  • 1,536