skip to main content
10.1145/93597.93622acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article
Free Access

Hard problems for simple logic programs

Published:01 May 1990Publication History

ABSTRACT

A number of optimizations have been proposed for Datalog programs involving a single intensional predicate (“single-IDB programs”). Examples include the detection of commutativity and separability ([Naug88],[RSUV89], [Ioan89a]) in linear logic programs, and the detection of ZYT-linearizability ([ZYT88], [RSUV89], [Sara89], [Sara90]) in nonlinear programs. We show that the natural generalizations of the commutativity and ZYT-linearizability problems (respectively, the sequencability and base-case linearizability problems) are undecidable. Our constructions involve the simulation of context-free grammars using single-IDB programs that have a bounded number of initialisation rules. The constructions may be used to show that containment (or equivalence) is undecidable for such programs, even if the programs are linear, or if each program contains a single recursive rule. These results tighten those of [Shmu87] and [Abit89].

References

  1. Abit89.Ablteboul, S {1989} "Boundedness ls undecldable for Datalog programs with a single recurslve rule," Informa~wn Processes9 Letters 3~, pp 281-287 Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. BMSU86.Bancflhon, F, D E Miner, Y Saglv and 3 D Ullman {1986} "Magic sets and other strange ways to implement logic programs," P~oc F~fth A CM Symposzum on Pmnczples of Database Systems, pp 1-15 Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. BR87.Been, C and R Ramaknshnan {1987} "On the power of magic," Proc S~zth A CM Symposium on Principles of Database Systems, pp 269-283 Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. CM77.Chandra, A K and P M Merhn {1977} "Ophmal xmplementatlon of conjunchve queries in relahonal databases," Proc N~n~h Annual A CM Symposium on $he Theory of Compu$- zng, pp 77-90 Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. HU79.Hopcroft, :I E and J D Ullman {1979} In~roduc$zon ~o automata ~heory, languages and compu~a$zon, Addxson-Wesley Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Ioan89a.Ioanmd,s, Y E {1989} "Commutahv,ty and its role m the processing of hnear recursmn," Tech Report 804, Umverslty of Wisconsin- MadisonGoogle ScholarGoogle Scholar
  7. Ioan89b.Ioanmdls, Y E {1989} "Towards an algebrazc theory of recursmn," Tech Report 801, Umverslty of Wisconsin-MadisonGoogle ScholarGoogle Scholar
  8. Naug88.Saughton, J F {1988} "Compiling separable recursmns," A CM SIGMOD Intl Conf on the Managernen~ of Data, pp 312-319 Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. RSUV89.Ramaknshnan, R, Y Saglv, J D Ullman and M Y Vardl {1989} "Proof-tree transformahon theorems and their apphcatmns," Proc E~ghth A CM Symposium on Pmnczples of Database Systems, pp 172-181 Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. SY81.Sagav, Y and M Yannakahs {1981} "Eqmvalence among relational expressions with the union and difference operators," J A CM $7, pp 633-655 Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Sagi87.Saglv, Y {1987} "Optimizing Datalog programs," P.oc S~zth A CM Symposium on Prznc~ples of Database Systems, pp 349-362 Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Sara89.Sarmya, Y {1989} "Lmeanzmg nonhnear recursmns m polynormal hme," Proc E~gh~h A CM Symposium on Pmnc~ples of Database Systems, pp 182-189 Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Sara90.Sarazya, V {1990} "Polynommlhme program transformatmns m deduchve databases," to appear m Proc N~nth A CM Symposium on Pmnczples of DaSabase Sys- Zeros Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Shmu87.Shmueh, O {1987} "Dec~dabxhty and expressxveness aspects of logxc querms," Proc Szz~h A CM Symposium on Pmnczples of Database SysSems, pp 237-249 Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Ullm89.Unman, ~ D {1989} Prmczples o/Da~.abase and Knowledge.base Systems, Vol II, Computer Scmnce Press, Rockwlle, MdGoogle ScholarGoogle Scholar
  16. ZYT88.Zhang, W, C T Yu and D Troy, "A necessary and sufficmnt cond~tmn to hneax~ze doubly recurs~ve programs m logic databases," unpubhshed manuscript, Dept of EECS, Umvers~ty of Ilhnms at ChicagoGoogle ScholarGoogle Scholar

Index Terms

  1. Hard problems for simple logic programs

                  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
                  • Published in

                    cover image ACM Conferences
                    SIGMOD '90: Proceedings of the 1990 ACM SIGMOD international conference on Management of data
                    May 1990
                    398 pages
                    ISBN:0897913655
                    DOI:10.1145/93597

                    Copyright © 1990 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 May 1990

                    Permissions

                    Request permissions about this article.

                    Request Permissions

                    Check for updates

                    Qualifiers

                    • Article

                    Acceptance Rates

                    Overall Acceptance Rate785of4,003submissions,20%

                  PDF Format

                  View or Download as a PDF file.

                  PDF

                  eReader

                  View online with eReader.

                  eReader