2014 · 34 citations · 24 references
ComputingComputer ScienceKnowledge RepresentationNatural Language ProcessingProgramming LanguagesContext-free LanguagesPredicate LogicQuery ProcessingRegular LanguagesContext-free GrammarsPolynomial Time ComplexityPolynomial-time AlgorithmsQuery EvaluationRegular Expressions
In graph query languages, regular expressions are commonly used to specify the labeling of paths. A natural step in increasing the expressive power of these query languages is replacing regular expressions by context-free grammars. With the Conjunctive Context-Free Path Queries (CCFPQ) we introduce such a language based on the well-known Conjunctive Regular Path Queries (CRPQ). \n \nFirst, we show that query evaluation of CCFPQ has polynomial time data complexity. Secondly, we look at the generalization of regular expressions, as used in CRPQ, to regular relations and show how similar generalizations can be applied to context-free grammars, as used in CCFPQ. Thirdly, we investigate the relations between the expressive power of CRPQ, CCFPQ, and their generalizations. In several cases we show that replacing regular expressions by context-free grammars does increase expressive power. Finally, we look at including context-free grammars in more powerful logics than conjunctive queries. We do so by adding negation and provide expressivity relations between the obtained languages.
24
Transductions and Context-Free Languages
Jean Berstel · 1979 · 1.3K citations
The complexity of relational query languages (Extended Abstract)
Moshe Y. Vardi · 1982 · 1.2K citations
Computing, Computer Science, Algebra +16
Multiplying matrices faster than coppersmith-winograd
Virginia Vassilevska Williams · 2012 · 887 citations
Rohit Parikh · Journal of the ACM · 1966 · 782 citations · Full text