Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/28659.28683acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article
Free access

Bounds on the propagation of selection into logic programs

Published: 01 June 1987 Publication History

Abstract

We consider the problem of propagating selections (i.e., bindings of variables) into logic programs. In particular, we study the class of binary chain programs and define selection propagation as the task of finding an equivalent program containing only unary derived predicates. We associate a context free grammar L(H) with every binary chain program H. We show that, given H propagating a selection involving some constant is possible iff L(H) is regular, and therefore undecidable. We also show that propagating a selection of the form p(X,X) is possible iff L(H) is finite, and therefore decidable. We demonstrate the connection of these two cases, respectively, with the weak monadic second order theory of one successor and with monadic generalized spectra. We further clarify the analogy between chain programs and languages from the point of view of program equivalence and selection propagation heuristics.

References

[1]
Afratl, F, Papadlmltrlou, C The Parallel Complexity of Simple Chain Querms Proceedings of the 6th PODS, ACM, 1987
[2]
Aho t~, v" aria Ullman, J D Umversallty of Data Retrmva. ~angu, age.~ Proceeamgs of the 6th POPL, ACM, 1979
[3]
Apt, K R, van Emden, M H '~Contributions to the Theory of Logm Programming" JACM P9, 4 (1982), 841-862
[4]
Bancllhon, F, Miler, D, Saglv, Y, Ullman, J D Magic Sets and Other Strange Ways to Implement Logic Programs Proceedings of the 5th PODS, ACM, 1986
[5]
Banellhon, F, Ramaknshnan, R An Amateur's Introduction to Recurslve Query Processing Strategies Proceedings of the 86 $IGMOD, ACM, 1986
[6]
Beerl, C, Rumaknshnan, R On the Power of Magic Proceedings of the 6th PODS, ACM, 1987
[7]
Blattner, M "The Unsolvabfllty of the Equahty Problem for Sententlal Forms of Context Free Grammars" JCSS 7, 5 (1973), 463-468
[8]
Buehl, J R "Weak Second Order Anthmet,e and Finite Automata" Ze, tschr f math log, k 6, (1960), 66-92
[9]
Chandra, A K, Harel, D "Horn Clause Programs and Generahzatlons" J Logzc Programm,ng P(1985), 1-15
[10]
Chandra, A K, Harel, D "Structure and Complexity of Relational Queries" JCSS PL, 1 (1982), 99-128
[11]
Cosmadakls, S, Kanellakls, P Parallel Evaluat,on of Reeurslve Rule Querms Proceedings of the 5th PODS, ACM, 1986
[12]
Demo, B, Lolh, G, Tdh, M On the Reduelbdlty of a Class of Horn Clauses to Transitive Closure Unpubhshed manuscript, Unlv of Tonno, March 1986
[13]
deRougemont, M Uniform Definability of Finite Structures w~th Successor Proceedings of the 16th STOC, ACM, 1984
[14]
Devanbu, P, Agrawal, R Moving Selections into Flxpolnt Quenes Unpubhshed manuscript, Bell Labs, Murray Hill, 1986
[15]
Elgot, C "Declsmn Problems of Finite Automaton Design and Related Arithmetics" Trans Amer Math Soc 98, (1961), 21-5i
[16]
Fagm, R "Moqadm Generalized Spectra" Ze~tschr f math Iog~k ~1, (~975), 89-96
[17]
Cues~anan I Flxpolnt Techniques m Database Recurslve Logic Programs Unpubhshed manuscript, Unlv of Salerno, 1986
[18]
Hensehen, L J, Naqvl, S A "On Compiling Queries m Recurslve First-Order Databases" JACM 81, 1 (1984), 47-85
[19]
Hopcroft, J E and Ullman, J D b~troduct~on to 4utomata Theory, Languages, and Computation Addison- Wesley, 1979
[20]
Kffer, M, Lozmskn, E Query Optlmizatmn in Logm Databases Teeh Rep, SUNY at Stonybrook, June 1985
[21]
Moschovakis, Y N Elementary Inductwn on Abstract ~truclures North llolland, 197t
[22]
Sacca, D, Zunlolo, C On the Implementation of a Stmplc Cla~s of Logic Queries for Databases Proceedings of the 5th PODS, ACM, 1986
[23]
Sagiv, Y Optimizing Datalog Programs Proceedings of the 6th PODS, ACM, 1987
[24]
Shmueh, O Decldabdlty and Expressiveness Aspects of Logic Quenes Proceedings of the 6th PODS, ACM, 1987
[25]
Thatcher, J,W, Wright, J B "Generalized Finite Automata Theory with an Apphcatmn to a Dec~smn Problem of Second Order Logic" Mathematwal Systems Theory P, 1 (1968), 57-81
[26]
Ullman, J D Pmnc~ples of Database Systems Computer Science Press, 1983
[27]
Ullman, J D "Implementatmn of Logmal query Languages for Databases" ACM Trans on Database Systems 10 (1985), 289-321
[28]
Ullman, J D, Van Gelder, A Parallel Complexity of Loglcal Query Programs Proceedings of the 27th FOCS, 1986

Cited By

View all

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
PODS '87: Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems
June 1987
363 pages
ISBN:0897912233
DOI:10.1145/28659
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]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 June 1987

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Conference

PODS '87
Sponsor:
PODS '87: Principles of database systems
March 23 - 25, 1987
California, San Diego, USA

Acceptance Rates

Overall Acceptance Rate 642 of 2,707 submissions, 24%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)41
  • Downloads (Last 6 weeks)3
Reflects downloads up to 21 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2014)Reachability is harder for directed than for undirected finite graphsJournal of Symbolic Logic10.2307/227495855:1(113-150)Online publication date: 12-Mar-2014
  • (2007)SPARQLeRProceedings of the 4th European conference on The Semantic Web: Research and Applications10.1007/978-3-540-72667-8_12(145-159)Online publication date: 3-Jun-2007
  • (2005)Some positive results for boundedness of multiple recursive rulesDatabase Theory — ICDT '9510.1007/3-540-58907-4_29(383-396)Online publication date: 2-Jun-2005
  • (2005)About boundedness for some datalog and DATALOGneg programsMathematical Foundations of Computer Science 199210.1007/3-540-55808-X_27(284-297)Online publication date: 30-Jul-2005
  • (2005)On the power of query-independent compilationAdvances in Computing and Information — ICCI '9110.1007/3-540-54029-6_168(185-196)Online publication date: 1-Jun-2005
  • (2005)Deciding boundedness for uniformly connected Datalog programsICDT '9010.1007/3-540-53507-1_91(395-405)Online publication date: 7-Jun-2005
  • (2005)Rule rewriting methods for efficient implementations of horn logicFoundations of Logic and Functional Programming10.1007/3-540-19129-1_5(114-139)Online publication date: 31-May-2005
  • (2003)Linearisability on datalog programsTheoretical Computer Science10.1016/S0304-3975(02)00730-2308:1-3(199-226)Online publication date: 3-Nov-2003
  • (1999)Regular Path Queries with ConstraintsJournal of Computer and System Sciences10.1006/jcss.1999.162758:3(428-452)Online publication date: 1-Jun-1999
  • (1997)Regular path queries with constraintsProceedings of the sixteenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems10.1145/263661.263676(122-133)Online publication date: 1-May-1997
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media