skip to main content
article

Existential second-order logic over graphs: Charting the tractability frontier

Published:01 March 2004Publication History
Skip Abstract Section

Abstract

Fagin's theorem, the first important result of descriptive complexity, asserts that a property of graphs is in NP if and only if it is definable by an existential second-order formula. In this article, we study the complexity of evaluating existential second-order formulas that belong to prefix classses of existential second-order logic, where a prefix class is the collection of all existential second-order formulas in prenex normal form such that the second-order and the first-order quantifiers obey a certain quantifier pattern. We completely characterize the computational complexity of prefix classes of existential second-order logic in three different contexts: (1) over directed graphs, (2) over undirected graphs with self-loops and (3) over undirected graphs without self-loops. Our main result is that in each of these three contexts a dichotomy holds, that is to say, each prefix class of existential second-order logic either contains sentences that can express NP-complete problems, or each of its sentences expresses a polynomial-time solvable problem. Although the boundary of the dichotomy coincides for the first two cases, it changes, as one moves to undirected graphs without self-loops. The key difference is that a certain prefix class, based on the well-known Ackermann class of first-order logic, contains sentences that can express NP-complete problems over graphs of the first two types, but becomes tractable over undirected graphs without self-loops. Moreover, establishing the dichotomy over undirected graphs without self-loops turns out to be a technically challenging problem that requires the use of sophisticated machinery from graph theory and combinatorics, including results about graphs of bounded tree-width and Ramsey's theorem.

References

  1. Bodlaender, H. L. 1996. A linear-time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput. 25, 6, 1305--1317. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Börger, E., Grädel, E., and Gurevich, Y. 1997. The Classical Decision Problem. Springer, Berlin, Germany.Google ScholarGoogle Scholar
  3. Büchi, J. R. 1960. Weak second-order arithmetic and finite automata. Z. Math. Logik Grund. Math. 6, 66--92.Google ScholarGoogle ScholarCross RefCross Ref
  4. Courcelle, B. 1990. The monadic second-order logic of graphs I: Recognizable sets of finite graphs. Inf. Comput. 85, 12--75. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Downey, R. G., and Fellows, M. R. 1999. Parametrized Complexity. Springer-Verlag, New York. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Eiter, Th., Gottlob, G., and Gurevich, Y. 2000. Existential second order logic over strings. J. ACM 47, 1, 77--131. (Preliminary version in LICS'98.) Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Eiter, Th., Gottlob, G., and Schwentick, Th. 2002. Second order logic over strings: Regular and nonregular fragments. In Proceedings of the 5th International Conference on Developments in Language Theory (Vienna, Austria, July 16--21, 2001). Lecture Notes in Computer Science, vol. 2295. Springer-Verlag, New York, pp. 21--36. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Fagin, R. 1974. Generalized first-order spectra and polynomial-time recognizable sets. In Complexity of Computation, R. M. Karp, ed. AMS, providence, R.F., pp. 43--74.Google ScholarGoogle Scholar
  9. Garey, M. R., and Johnson, D. S. 1979. Computers and Intractability. A Guide to the Theory of NP-Completeness. Freeman, New York. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Grädel, E. 1991. The Expressive power of second-order Horn Logic. In Proceedings STACS-91. Lecture Notes in Computer Science, vol. 480. Springer-Verlag, New York, pp. 466--477. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Grädel, E. 1992. Capturing complexity classes with fragments of second order logic. Theoret. Comput. Sci. 101, 35--57. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Immerman, N. 1988. Nondeterministic space is closed under complementation. SIAM J. Comput. 17, 935--939. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Immerman, N. 1998. Descriptive Complexity Theory. Springer-Verlag, New York, 1999.Google ScholarGoogle Scholar
  14. Jones, N. D., Lien, Y. E., and Laaser, W. T. 1976. New problems complete for nondeterministic log space. Math. Syst. Theory 10, 1--17.Google ScholarGoogle ScholarCross RefCross Ref
  15. Ladner, R. 1975. On the structure of polynomial time reducibility. J. ACM 22, 155--171. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Papadimitriou, C. H. 1994. Computational Complexity, Addison-Wesley, Reading, Pa.Google ScholarGoogle Scholar
  17. Papadimitriou, C. H., and Yannakakis, M. 1991. Optimization, approximation, and complexity classes. J. Comput. Syst. Sci. 43, 425--440.Google ScholarGoogle ScholarCross RefCross Ref
  18. Robertson, N., and Seymour, P. D. 1986. Graph minors II. Algorithmic aspects of tree-width. J. Algorithms 7, 309--322.Google ScholarGoogle ScholarCross RefCross Ref
  19. Robertson, N., and Seymour, P. D. 1984. Graph minors III. Planar tree-width. J. Combinat. Theory, Ser. B 36, 49--64.Google ScholarGoogle ScholarCross RefCross Ref
  20. Szelepcsènyi, R. 1988. The method of forced enumeration for nondeterministic automata. Acta Inf., 26, 279--284. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Tarjan, R. 1972. Depth-first search and linear graph algorithms. SIAM J. Comput. 1, 146--160.Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Thomassen, C. 1988. On the presence of disjoint subgraphs of a specified type. Algorithmic aspects of tree-width. J. Graph Theory 12, 1, 101--111.Google ScholarGoogle ScholarCross RefCross Ref
  23. Trahtenbrot, B. 1963. The impossibility of an algorithm for the decision problem for finite domains (Russian). Doklady Academii Nauk SSR, 70:569--572, 1950. English translation: American Mathematical Society Translation Series 2, 23, 1--5.Google ScholarGoogle Scholar
  24. Wanke, E. 1994. Bounded tree-width and LOGCFL. J. Algorithms 16, 470--491. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Existential second-order logic over graphs: Charting the tractability frontier

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image Journal of the ACM
          Journal of the ACM  Volume 51, Issue 2
          March 2004
          248 pages
          ISSN:0004-5411
          EISSN:1557-735X
          DOI:10.1145/972639
          Issue’s Table of Contents

          Copyright © 2004 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 March 2004
          Published in jacm Volume 51, Issue 2

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader