46

The Robertson-Seymour theorem on graph minors leads to some interesting conundrums.

The theorem states that any minor-closed class of graphs can be described by a finite number of excluded minors. As testing for the presence of any given minor can be done in cubic time (albeit with astronomical constants) this implies that there exists a polynomial time algorithm for testing membership in any minor-closed class of graphs. Hence it seems reasonable that problem should be deemed to be in P.

However the RS theory does not give us even the faintest clue as to how to determine the guaranteed-finite set of excluded minors, and until we have these at hand, we may not have any algorithm of any sort. Worse still, there is no known algorithm to actually find the excluded minors and even if you have a big list of them, there is no way that I know to verify that the list is actually complete. In fact, could it perhaps actually be undecidable to find the list of excluded minors?

So, does it make sense to view a problem as being simultaneously polynomial-time and undecidable? It seems a bit odd to me (who is not a particular expert in complexity) but maybe it's quite routine?

Tony Huynh
  • 31,500
Gordon Royle
  • 12,288
  • 12
    Just a tip on asking your question: you really have three questions in your post, and it would have helped the quality of the answers if you had been more intentional about it, in particular by numbering them. Because some posters are answering 1 only, some 2 only, and no-one yet has addressed 3, and it makes it a mess to read when they don't announce at the outset which they're doing. – Thierry Zell Dec 02 '10 at 13:48

8 Answers8

71

Consider the following simplified example of the same phenomenon, which many students find clarifying.

Let $f(n)=1$, if there are $n$ consecutive $7$s in the decimal expansion of $\pi$, and otherwise $f(n)=0$. Is this function computable?

A naive attempt to compute $f(n)$ would simply proceed to search $\pi$ for $n$ consecutive $7$s. If found, the algorithm outputs $1$, but otherwise....and then the naive algorithm doesn't seem to know when to output $0$, and so students sometimes expect that $f$ is not computable.

But actually, $f$ is a computable function. If it happens that there are arbitrarily long sequences of $7$s in the decimal expansion of $\pi$, an open question, then $f$ is the constant $1$ function, which is certainly computable. Otherwise, there is some longest sequence of $7$s in $\pi$, having length $N$, and so $f$ is the function that is $1$ up to $N$ and then $0$ above $N$. And this function also is computable, for any particular $N$.

So the situation is that we have proved that $f$ is computable by exhibiting several algorithms, and proving that $f$ is definitely computed by one of them, but we don't know which one. (In fact, $f$ is linear time computable.) So we have proved that $f$ is a computable function, but by a pure existence proof that merely shows there is an algorithm computing $f$, without explicitly exhibiting it.

It seems to be the same phenomenon in your case, where you have a computable function, but you don't know which algorithm computes it.


Addition. Let me try to address Thierry Zell's concern about the third question. To my way of thinking, the phenomenon of the question is an instance of the problem of uniformity of algorithms, a pervasively considered issue in computability theory.

To illustrate, consider the question of whether a given program $p$ halts on input $0$ before another program $q$. Let $f_p(q)=1$ if it does and otherwise $f_p(q)=0$. Every such function $f_p$ is computable, for similar reasons to my $\pi$ function $f$ above, since either $p$ doesn't halt at all on input $0$, in which case $f_p$ is identically $0$, or $p$ does halt in $N$ steps, in which case we need only run $q$ for $N$ steps to see if it halts, and give our output for $f_p(q)$ by that time. So each $f_p$ is a computable function. But the joint function $f(p,q)=f_p(q)$, a binary function, is not computable (if it were, then we could solve the halting problem: to decide if $p$ halts on input $0$, design a program $q$ that would take one step extra after a halt, and ask if $p$ halts before $q$).

In other words, the function $f(p,q)$ is computable for any fixed $p$, but not uniformly in $p$. And such uniformity issues are ubiquitous in computability theory.

In the example of the question, each class of graphs is decidable, but not uniformly so, since by Tony's answer there is no uniform algorithm, given a description of the class, to find the collection of excluded minors. But for any such fixed class, the membership question is decidable.

The issue of whether a given algorithm is uniform in a given parameter is a very common concern in computability theory, and occurs throughout the subject.

  • 6
    This is like the ${\sqrt 2}^{\sqrt 2}$ example. – Mariano Suárez-Álvarez Dec 02 '10 at 13:58
  • @Frank: doesn't that mean the same thing? – Qiaochu Yuan Dec 02 '10 at 16:04
  • 2
    Frank, I had the interpretation that if you have fifteen consecutive $7$s, then the first eleven of them would count as eleven consecutive $7$s. So the function really would be as I describe it. Otherwise, I suppose, one should speak of maximal consecutive sequences of $7$s, and I believe that it is an open question whether the corresponding function is computable. (Although if $\pi$ is normal, then this function also would be identically $1$.) – Joel David Hamkins Dec 02 '10 at 17:03
  • 1
    This reminds me of a very similar problem on a problem set I once did regarding the definition of decidability of a language. The problem was this: Let L = {0} if there is life in the universe outside our solar system, and L = {1} if the only life in the universe is inside our solar system. Then the question is: is L decidable? – Taylor Sutton Dec 03 '10 at 04:10
  • 1
    @Joel, a link to this fine answer has been added to the TCS StackExchange question "Do the undecidable attributes of P pose an obstruction to deciding P versus NP?" ... I wish to thank Alex ten Brink for drawing attention to this answer. – John Sidles Jun 28 '11 at 13:13
28

As others have mentioned, the answer to your title question is strictly speaking no. With regards to your other questions, it has been proven that it is undecidable to compute the excluded minors for a minor-closed class $\mathcal{C}$, unless $\mathcal{C}$ is presented to you in a silly way. Of course, there is no paradox, because this does not imply that the related problem of determining if an input graph $G$ is in $\mathcal{C}$ is undecidable. Indeed, as you mention by the Robertson-Seymour theory, this second problem is not only decidable, but is in P.

I guess I should quantify what I mean by non-silly representations of minor-closed families. Fellows and Langston proved that if your minor-closed class $\mathcal{C}$ is given by a Turing machine $M$, then it is undecidable to compute an excluded minor characterization of $\mathcal{C}$. Courcelle, Downey, and Fellows proved that if $\mathcal{C}$ is instead given by a monadic second-order logic formula $\phi$, then it is also undecidable to compute an excluded minor characterization of $\mathcal{C}$.

There are positive results for certain minor-closed families. For example, this paper by Adler, Grohe, and Kreutzer shows that for any fixed $k$, they can compute the excluded minors for the class of graphs of tree-width at most $k$. For the undecidability results that I mentioned above, the references are:

M.R. Fellows and M.A. Langston. On search, decision and the efficiency of polynomial-time algorithms (extended abstract). In Proceedings of the 21st ACM Symposium on Theory of Computing, pages 501–512, 1989.

B. Courcelle, R.G. Downey, and M.R. Fellows. A note on the computability of graph minor obstruction sets for monadic second order ideals. Journal of Universal Computer Science, 3:1194–1198, 1997.

Tony Huynh
  • 31,500