Factoring Augmented Regular Chain Programs

نویسنده

  • Peter T. Wood
چکیده

In previous papers we have proposed a graphical query language for expressing traversal recursions in labelled, directed graphs. A fundamental feature of the language is the use of regular expressions to specify constraints on paths in these graphs. When only constants are allowed in regular expressions, it has been shown that these queries can be evaluated efficiently. In this paper, we study the inclusion of variables in regular expressions. We show that efficient evaluation algorithms still exist, and in so doing provide a translation to a class of Datalog programs, the augmented regular chain programs, which can always be factored. This class of programs is incomparable to previously identified classes of factorable programs.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

First - Order Incremental

We consider the problem of repeatedly evaluating the same (computationally expensive) query to a database that is being updated between successive query requests. In this situation, it should be possible to use the di erence between successive database states and the answer to the query in one state to reduce the cost of evaluating the query in the next state. We use rst-order queries to comput...

متن کامل

Factoring Pure Logic Programs

This paper describes a factoring algorithm that removes deep backtracking from logic programs that is in general applicable to a large subclass of well-moded logic programs. Originally developed for the pure logic programming language Elf [10], our results can also be applied to other logic programming languages, such as Prolog and -Prolog [9], as well. Further applications of factoring include...

متن کامل

Green Supply Chain Network Design under Multi-mode Production and Uncertainty

A multi-periodic, multi-echelon green supply chain network consisting of manufacturing plants, potential distribution centers, and customers is developed. The manufacturing plants can provide the products in three modes including production in regular time, production in over time, or by subcontracting. The problem has three objectives including minimization of the total costs of the green supp...

متن کامل

Linearisability on datalog programs

LinearDatalog programs are programs whose clauses have at most one intensional atom in their bodies We explore syntactic classes of Datalog programs syntactically non linear which turn out to express no more than the queries expressed by linear Datalog programs In particular we investigate linearisability of database queries corresponding to piecewise linear Datalog programs and chain queries a...

متن کامل

Factoring Proofs

Logic programs, when total, realize proofs via a realizability interpretation similar to the Curry Howard isomorphism. The challenge in statically deciding totality lies in checking for termination and for coverage. For Elf logic programs, sophisticated algorithms exist for both problems. However, those solutions only apply to a much smaller subset of logic programs than a programmer is typical...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1990