Problemi tra P e NPC


128

Il factoring e l'isomorfismo grafico sono problemi in NP che non sono noti per essere in P né per NP-Complete. Quali sono alcuni altri problemi naturali (sufficientemente diversi) che condividono questa proprietà? Gli esempi artificiali che provengono direttamente dalla dimostrazione del teorema di Ladner non contano.

Qualcuno di questi esempi è provabile NP-intermedio, assumendo solo alcune ipotesi "ragionevoli"?


C'è una domanda simile qui che può essere utile: cstheory.stackexchange.com/questions/52/…
Daniel Apon,

1
Domanda correlata a MO, con diversi suggerimenti specifici per problemi in NP e co-NP ma non noti in P: mathoverflow.net/questions/31821/…
András Salamon,

1
Esistono diverse classi di complessità tra P e NP-complete che sono attualmente considerate interessanti: PPAD, problemi equivalenti a UGC, NP co-NP, BPP, .... Se stai chiedendo un grande elenco, potresti fai di questo un wiki della comunità per favore?
András Salamon,

Grazie. Sono a conoscenza del teorema di Ladner. Immagino stavo chiedendo "problemi naturali". Immagino che il PPAD abbia Nash Equilibria, quindi conta ...
Lev Reyzin

Risposte:


105

Ecco una raccolta di alcune delle risposte ai problemi tra P e NPC:


5
Yes, this procedure works, as the "official" answer.
Suresh Venkat

12
It would be great to be able to add an answer to one's watchlist. This would definitely be on mine.
András Salamon

9
I'm removing Planar MAX 2-SAT from the list, it was shown to be NP-complete by Guibas et al. in "Approximating polygons and subdivisions with minimum link paths" (springerlink.com/content/y234m35416w043v1)
Bob Fraser

7
Are any of these examples provably NP-intermediate, assuming only some "reasonable" hypothesis (i.e., a hypothesis less trivial than "this problem is NP-intermediate")? If so, it would be interesting to mention that in this list.
Timothy Chow

3
@Timothy Chow: The example above assuming NEXPEXP is provably intermediate, that is, assuming NEXPEXP, the padded version of a NEXP-complete problem is provably neither NP-complete by Mahaney nor in P, as that would contradict NEXPEXP.
Joshua Grochow

45

My favorite problem in this class (I'll phrase it as a functional problem, but it's easy to turn into a decision problem in the standard way): compute the rotation distance between two binary trees (equivalently, the flip distance between two triangulations of a convex polygon).


1
That's a neat problem: I didn't realize it was in limbo.
Suresh Venkat

3
Yeah I didn't know about it either! For all these problems/answers, I wonder if they are in Limbo because we think they really are or if they're more like PRIMES...
Lev Reyzin

This problem and its potentially intermediate status should be more well-known. Can you give a reference to it? Also, is there any result indicating that it is not NP-complete, as there is for Graph Isomorphism and related problems?
Joshua Grochow

8
A very pretty and important but older reference is Thurston, Sleator, and Tarjan, "Rotation distance, triangulations, and hyperbolic geometry", STOC'86 and JAMS'88. For a recent reference that explicitly mentions the complexity of the problem as still being open, see Lucas, "An improved kernel size for rotation distance in binary trees", IPL 2010, dx.doi.org/10.1016/j.ipl.2010.04.022
David Eppstein

1
Interesting. Exploring the rotation space is also an active area of research it seems. "The rotation graph of k-ary trees is Hamiltonian", IPL 2008, dx.doi.org/10.1016/j.ipl.2008.09.013
Chad Brewbaker

38

A problem that is mentioned neither in this list or the MO list is the turnpike problem. Given a multiset of n(n-1)/2 numbers, each number representing the distance between two points on the line, reconstruct the positions of the original points.

Note that what makes this nontrivial is that for a given number d in the multiset, you don't know which pair of points is d units apart.

While it is known that for any given instance there are only a polynomial number of solutions, it is not known how to find one !


Thanks - this is a good one! Reminds me of some other "localization" problems. Is it actually thought to be not in p?
Lev Reyzin

I am not aware that turnpike is directly linked to known problems in complexity. However, there's a "wrong direction" relation to factoring, in that the turnpike problem cam be phrased as a factoring problem on an appropriately chosen polynomial.
Suresh Venkat

1
Are there known unlikely consequences of this problem being NP-complete, as there are for Graph Isomorphism (PH collapsing)?
Joshua Grochow

not that I'm aware of. it hasn't been studied that much, which is a pity, because it's so natural.
Suresh Venkat

2
You encounter a similar problem in bioinformatics: Given a set of potentially/hopefully overlapping, randomly created substrings of a string much longer than the individual pieces; compute the original string. (gene sequencing)
Raphael

38

The sums of square roots problem: Given two sequences a1,a2,,an and b1,b2,,bn of positive integers, is A:=iai less than, equal to, or greater than B:=ibi?

  • The problem has a trivial O(n)-time algorithm on the real RAM—Just compute the sums and compare them!—but this does not imply membership in P.

  • There is an obvious finite-precision algorithm, but it is not known whether a polynomial number of bits of precision is sufficient for correctness. (See http://maven.smith.edu/~orourke/TOPP/P33.html for details.)

  • The Pythogorean theorem implies that the length of any polygonal curve whose vertices and integer endpoints is a sum of square roots of integers. Thus, the sum-of-roots problem is inherent in several planar computational geometry problems, including Euclidean minimum spanning trees, Euclidean shortest paths, minimum-weight triangulations, and the Euclidean traveling salesman problem. (The Euclidean MST problem can be solved in polynomial time without resolving the sum-of-roots problem, thanks to the underlying matroid structure and the fact that the EMST is a subgraph of the Delaunay triangulation.)

  • There is a polynomial-time randomized algorithm, due to Johannes Blömer, to decide whether the two sums are equal. However, if the answer is no, Blömer's algorithm does not determine which sum is larger.

  • The decision version of this problem (Is A>B?) is not even known to be in NP. However, Blömer's algorithm implies that if the decision problem is in NP, then it is also in co-NP. Thus, the problem is unlikely to be NP-complete.


3
A nice one, I like it!!
Hsien-Chih Chang 張顯之

Well, if we take just 1000 random integers, not too large, then there are about 2999 ways to divide them into two sets, so I would expect that two of these sums are within 900 or more bits within each other (and within half of the total sum). On the other hand, finding the "worst" two sequences to compare out of these 2999 possibilities is also very, very hard.
gnasher729

30

Here is a list of problems that may or may not qualify as "sufficiently" different. By the same proof as for Graph Isomorphism, if any of them is NP-complete, then the Polynomial Hierarchy collapses to the second level. I do not think there is any broad consensus as to which of these "ought" to be in P.

  • Graph Automorphism (determine if a graph has a nontrivial automorphism). Reduces to Graph Isomorphism, but not known (not thought?) to be GI-hard.
  • Group Isomorphism and Automorphism (where the groups are given by their multiplication tables). Again, reduces to Graph Isomorphism, but not thought to be GI-hard.
  • Ring Isomorphism and Automorphism. In a sense, this is the grand-daddy of all the above problems, since integer factoring is equivalent to finding a nontrivial automorphism of a ring, and Graph Isomorphism reduces to Ring Isomorphism. See Neeraj Kayal, Nitin Saxena. Complexity of Ring Morphism Problems. Computational Complexity 15(4): 342-390 (2006). (Interestingly, determining if a ring has a nontrivial automorphism is in P.)
  • This post by Bill Gasarch contains some other problems with the taste of Ramsey theory that look like they might be intermediate.
  • By Mahaney's Theorem, no sparse set can be NP-complete. But we also know that there are sparse sets in NP - P iff NEXP is not equal to EXP. So assuming NEXPEXP, the padded version of any NEXP-complete problem is of intermediate complexity. (Such a set cannot be in P unless NEXP=EXP, contradicting our assumption.) There are plenty of natural NEXP-complete problems.

I like the last example. Do you have any references about it?
Marcos Villagra

1
S. R. Mahaney. Sparse complete sets for NP: Solution of a conjecture by Berman and Hartmanis. Journal of Computer and System Sciences 25:130-143. 1982. dx.doi.org/10.1016/0022-0000(82)90002-2 Sparse sets in NP - P iff NEXP neq EXP: J. Hartmanis, N. Immerman, V. Sewelson, Sparse sets in NP-P: EXPTIME versus NEXPTIME, Information and Control, Volume 65, Issues 2-3, May-June 1985, Pages 158-181. dx.doi.org/10.1016/S0019-9958(85)80004-8
Joshua Grochow

This is a nice list, though the first three are quite similar :) I like the last example as well.
Lev Reyzin

28

The Minimum Circuit Size Problem (MCSP) is my favorite "natural" problem in NP that's not known to be NP-complete: Given the truth-table (of size n=2^m) of an m-variate Boolean function f, and given a number s, does f have a circuit of size s? If MCSP is easy, then there is no cryptographically-secure one-way function. This problem and its variants provided much of the motivation for the study of "brute-force" algorithms in Russia, leading to Levin's work on NP-completeness. This problem can also be viewed in terms of resource-bounded Kolmogorov complexity: asking if a string can be recovered quickly from a short description. This version of the problem was studied by Ko; the name MCSP was used first by Cai and Kabanets, as far as I know. More references can be found in some papers of mine: http://ftp.cs.rutgers.edu/pub/allender/KT.pdf http://ftp.cs.rutgers.edu/pub/allender/pervasive.reach.pdf


24

Monotone self-duality

For any boolean function f=f(x1,x2,...,xn), it's dual is fd=f¯(x1¯,x2¯,...,xn¯). Given f(x1,x2,...,xn) represented by a CNF formula, we have to decide whether f=fd.

This problem is in co-NP[log2n], i.e., it is decidable with O(log2n/loglogn) nondeterministic steps. Thus, it has a quasi-polynomial time algorithm (O(nlogn/loglogn) time), and hence is unlikely to be co-NP-hard.

It is still open whether this problem is in P or not. More details can be found in the 2008 paper "Computational aspects of monotone dualization: A brief survey" by Thomas Eiter, Kazuhisa Makino, and Georg Gottlob.


23

Knot triviality: Given a closed polygonal chain in 3-space, is it unknotted (ie, ambient-isotopic to a flat circle)?

This is known to be in NP by deepish results in normal surface theory, but no poly-time algorithm or NP-hardness proof is known.


1
It might be worth mentioning that, as with many potentially NP-intermediate problems, a slight variant is known to be NP-complete. Namely, 3-manifold knot genus is NP-complete: given a closed polygonal chain in a triangulated 3-manifold and an integer g, is the knot the boundary of a surface of genus at most g? (Being the unknot is equivalent to genus 0.) doi.acm.org.proxy.uchicago.edu/10.1145/509907.510016
Joshua Grochow

It's also contained in co-AM (Hara, Tani, Yamamoto), so not NPC unless the polynomial hierarchy collapses.
Peter Shor

3
Actually, that's still open. Tasos Sidiropoulos found a bug in the Hara-Tani-Yamamoto proof.
Jeffε

Since the time this answer was first posted, Kuperberg placed it in coNP conditional on the Generalized Riemann Hypothesis, and Lackenby placed it unconditonally in coNP.
Mark S

19

It is not known if it is possible to decide in polynomial time if player 1 has a winning strategy in a parity game (from a given starting position). The problem is, however, contained in NP and co-NP and even in UP and co-UP.


Can you give a reference? Sounds interesting.
Joshua Grochow

1
M. Jurdzinski. Deciding the Winner in Parity Games is in UP \cap co-Up. Information Processing Letters 68(3):119-124. 1998. Should at least be a good starting point.
Matthias

The recent paper "A Pumping Algorithm for Ergodic Stochastic Mean Payoff Games with Perfect Information" also shows that even a generalization of the parity game can be solved in pseudo-polynomial time. In particular, they show that a game called BWR game has a pseudo-polynomial time algorithm when there is a constant number of "random nodes". The parity game is the case where there is no random nodes.
Danu

It was shown recently that parity games can be solved in quasipolynomial time, see here for example.
Thomas Klimpel

18

You get a very long list of problems if willing to accept approximation problems, such as approximating Max-Cut to within a factor 0.878. We don't know if it's NP-hard or in P (only know NP-hardness assuming the Uniuqe Games Conjecture).


Yes, that was a silly comment that I started to delete as soon as it was posted. Thank you. :)
Daniel Apon

Thanks! But I guess I wasn't thinking as much about approximation problems, but more of natural problems.
Lev Reyzin

Arguably, these are natural problems since they correspond to what is achievable by a natural set of techniques, in this case, semidefinite programming.
Moritz

I guess "natural" is a vague criterion...
Lev Reyzin

18

In a monotone CNF formula every clause contains only positive literals or only negative literals. In an intersecting monotone CNF formula every positive clause has some variable in common with every negative clause.

The decision problem

INTERSECTING MONOTONE SAT
Input: intersecting monotone CNF formula f
Question: is f satisfiable?

has an no(log n) algorithm dating back to 1996, but is not known to be in P. (Of course, it might turn out to be in P, but that would be a major result.)

  • Thomas Eiter and Georg Gottlob, Hypergraph Transversal Computation and Related Problems in Logic and AI, JELIA 2002. doi: 10.1007/3-540-45757-7_53


17

The Pigeonhole Version of Subset Sum (or Subset Sum Equality).

Given:

akZ>0
k=0n1ak<2n1

By the pigeonhole principle, there must exist two disjoint subsets, S1,S2{1,,n} such that:

jS1aj=kS2ak

The pigeonhole subset sum problem asks for such a solution. Originally stated in "Efficient approximation algorithms for the SUBSET-SUMS EQUALITY problem" by Bazgan, Santha and Tuza.


16

There are a lot of problems related to finding hidden subgroups. You mentioned factoring, but there is also the discrete log problem as well as others related to elliptic curves, etc.


15

Here's a problem in computational social choice which is not known to be in P, and may or may not be NP-complete.

Agenda control for balanced single-elimination tournaments:

Given: tournament graph T on n=2k nodes, node a

Question: does there exist a permutation of the nodes (a bracket) so that a is the winner of the induced single-elimination tournament?

Given a permutation Pk on 2k nodes of V and a tournament graph T on V, one can obtain a permutation Pk1 on 2k1 nodes as follows. For every i>0, consider Pk[2i1] and Pk[2i] and the arc e between them in T; let Pk1[i]=Pk[2i1] if e=(Pk[2i1],Pk[2i]) and Pk1[i]=Pk[2i] otherwise. That is, we match up pairs of nodes according to Pk and use T to decide which nodes (winners) move on to the next round Pk1. Hence given a permutation on 2k one can actually define k rounds Pk1,,P0 inductively as above, until the last permutation contains only one node. This defines a (balanced) single-elimination tournament on 2k nodes. The node which remains after all the rounds is the winner of the tournament.

Agenda control for balanced single-elimination tournaments (graph formulation):

Given: tournament graph T on n=2k nodes, node a

Question: does T contain a (spanning) binomial arborescence on 2k nodes rooted at a?

A binomial arborescence on 2k nodes rooted at a node x is defined recursively as a binomial arborescence on 2k1 nodes rooted at x and a binomial arborescence on 2k1 nodes rooted at a different node y and an arc from x to y. (If k=0, a binomial arborescence is just the root.) The spanning binomial arborescences in a tournament graph capture exactly the single-elimination tournaments which can be played, given the match outcome information in the tournament graph.

Some references:

  1. Jérôme Lang, Maria Silvia Pini, Francesca Rossi, Kristen Brent Venable, Toby Walsh: Winner Determination in Sequential Majority Voting. IJCAI 2007: 1372-1377.
  2. N. Hazon, P. E. Dunne, S. Kraus, and , M. Wooldridge. How to Rig Elections and Competitions. COMSOC 2008.
  3. Thuc Vu, Alon Altman, Yoav Shoham. On the complexity of schedule control problems for knockout tournaments. AAMAS (1) 2009: 225-232.
  4. V. Vassilevska Williams. Fixing a tournament. AAAI 2010.

13

Take a look at the class TFNP. It has a lot of search problems with an intermediate status.


I should point out that it is the class of related function problems in NPcoNP.
Marcos Villagra

12

The induced subgraph isomorphism problem has NP-incomplete "left-hand side restrictions" assuming that P is not equal to NP. See Y. Chen, M. Thurley, M. Weyer: Understanding the Complexity of Induced Subgraph Isomorphisms, ICALP 2008.


2
Although this is an interesting result, if you check the paper it even says that the proof of intermediate complexity is essentially the same as Ladner's Theorem, except you do the diagonalization in the choice of the LHS restriction. So I don't know if this counts as a "natural" problem, rather than just a different encoding of Ladner's Theorem.
Joshua Grochow

Note also that these are source-and-target restrictions. The target (right hand side) has to be of special form, to enforce injectivity.
András Salamon

11

The complexity of planar Minimum Bisection problem is an intriguing open problem which is not known to be NP-hard. In contrast, the planar Maximum Bisection problem is NP-hard.

Minimum Bisection problem: Find a partition of the set of nodes into two equal size parts such that the number of crossing edges is minimized.

Karpinski, Approximability of the Minimum Bisection Problem: An Algorithmic Challenge


do you have a reference to the problem definition?
Lev Reyzin

Reference is added.
Mohammad Al-Turkistany


10

The gap version of the closest vector in lattice problem is the following: Given a basis for an n-dimensional lattice and a vector v, distinguish between the two cases where there is a lattice vector at distance at most one 1 from v or when every lattice vector is β-far from v, for some fixed gap parameter β>1.

When β=n, the problem is in NPcoNP and thus unlikely to be NP-complete (and is conjectured to be outside P). This case is of central attention for lattice-based cryptography and the related dihedral hidden subgroup problem in quentum computing. When β is much smaller, say β=no(1/loglogn), the problem becomes NP-hard.


9

A graph G=(V,E) is said to be labeled by f if each vertex vV is assigned a non-negative integer value f(v) and each edge e=uvE is assigned the value |f(u)f(v)|. The labeling is graceful if f:V{0,1,2,,|E|} is an injection and if all edges of G have distinct labels from {1,2,...,|E|}. A graph is said to be graceful if it admits a graceful labeling. The computational complexity of deciding whether a graph is graceful is not known.

  1. J.A. Gallian. A dynamic survey of graph labeling. The Electronic Journal of Combinatorics, 2009.
  2. D.S. Johnson. The NP-completeness column: An ongoing guide. J. Algorithms, 4(1):87–100, 1983.
  3. D.S. Johnson. The NP-completeness column. ACM Transactions on Algorithms, 1(1):160–176, 2005.

9

The problem of finding Vapnik–Chervonenkis dimension is not known to be in P neither known to be NP-complete. The problem can be solved by quasi-polynomial time algorithm (O(nlogn)). The problem can not be NP-complete unless NP is contained in Quasi-polynomial time.


I think it's worth mentioning the classes LOGNP and NP[log2n] defined in the paper linked in the answer as well as the other natural problems in that paper that are shown to be in these classes, since any problem complete for these classes is likely to be of intermediate complexity.
Joshua Grochow

8

In the linear divisibility problem, the input is two integers a and b and the task is to determine whether there exists an integer of the form ax+1 that divides b.

The linear divisibility problem is known to be γ-complete for NP but not known (AFAIK) to be NP-complete.

Garey and Johnson in their seminal "Computers and Intractability" say that (pp. 158-159):

A γ-reduction, in contrast to our other notions of reducibility, is nondeterministic in nature. Let us first introduce the notion of the relation RM computed by an NDTM program M:

RM={x,y:there is a string z such that on input x and guess z M has output y}
(where the definition of "output" is as in the computation of functions by DTMs).

We say that a language L1 over alphabet Σ1 is γ-reducible to a language L2 over Σ2 (written L1γL2) if there is a polynomial time NDTM program M such that for all xΣ1 there is some yΣ2 for which x,yRM and such that for all x,yRM, xL1 if and only if yL2. In other words, there is at least one halting computation for M on every input x and, given an input x, all halting computations on x yield outputs that are in L2 if and only if xL1.


Can you define γ-completeness in your answer?
Lev Reyzin

6

The problem of finding a minimum dominating set in tournament is not known to be in P neither known to be NP-complete. The problem has quasi-polynomial time algorithm (O(nlogn)). If the problem has polynomial time algorithm then satisfiability can be solved in sub-exponential time.


5

The following problem is believed to be NP-Intermediate, i.e. it is in NP but neither in P nor NP-complete.

Exponentiating Polynomial Root Problem (EPRP)

Let p(x) be a polynomial with deg(p)0 with coefficients drawn from a finite field GF(q) with q a prime number, and r a primitive root for that field. Determine the solutions of:

p(x)=rx
(or equivalently, the zeros of p(x)rx) where rx means exponentiating r.

Note that, when deg(p)=0 (the polynomial is a constant), this problem reverts to the Discrete Logarithm Problem, which is believed to be NP-Intermediate as well.

For additional details see my question and related discussion.


4

I don't know whether the weighted hypergraph isomorphism problem proposed in the answer by Thinh D. Nguyen cannot be simply shown to be GI complete. However, there is a GI-hard problem closely related to GI, which has not been reduced to GI yet, namely the string isomorphism problem (also called color isomorphism problem). This is the problem actually shown to be in quasi-polynomial time by László Babai. It is of independent interest, since it is equivalent to a number of decision problems in (permutation) group theory:


3

A problem that is not known to be either in FP or to be NP-hard is the problem of finding a minimal Steiner tree when the Steiner vertices are promised to fall on two straight line segments intersecting at an angle of 120°. If the angle between the line segments is less than 120°, then the problem is NP-hard. It is conjectured that when the angle is greater than 120°, then the problem is in FP.

Hence the following decision problem currently appears to be of intermediate complexity:

Minimal 120°-Steiner tree
Input: a finite set of points in the plane, lying on two line segments intersecting at an angle of 120°, and a positive rational number q.
Question: is there a Steiner tree of total length at most q?

Of course, this may actually be in P or be NP-complete, but then it seems we would have an interesting dichotomy at 120° instead of an intermediate problem. (The conjecture may also be false.)

  • J. H. Rubinstein, D. A. Thomas, N. C. Wormald, Steiner Trees for Terminals Constrained to Curves, SIAM J. Discrete Math. 10(1) 1–17, 1997. doi:10.1137/S0895480192241190

Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.