Parallel backtracking with answer memoing for independent and-parallelism
نویسندگان
چکیده
Goal-level Independent and-parallelism (IAP) is exploited by scheduling for simultaneous execution two or more goals which will not interfere with each other at run time. This can be done safely even if such goals can produce multiple answers. The most successful IAP implementations to date have used recomputation of answers and sequentially ordered backtracking. While in principle simplifying the implementation, recomputation can be very inefficient if the granularity of the parallel goals is large enough and they produce several answers, while sequentially ordered backtracking limits parallelism. And, despite the expected simplification, the implementation of the classic schemes has proved to involve complex engineering, with the consequent difficulty for system maintenance and extension, while still frequently running into the well-known trapped goal and garbage slot problems. This work presents an alternative parallel backtracking model for IAP and its implementation. The model features parallel out-of-order (i.e., non-chronological) backtracking and relies on answer memoization to reuse and combine answers. We show that this approach can bring significant performance advantages. Also, it can bring some simplification to the important engineering task involved in implementing the backtracking mechanism of previous approaches.
منابع مشابه
Technical Communications of the 27th International Conference on Logic Programming (ICLP'11)
Diagnosis of Timed Concurrent Constraint programs Marco Comini, Laura Titolo and Alicia Villanueva Parallel Backtracking with Answer Memoing for Independent And-Parallelism Pablo Chico De Guzmán, Amadeo Casas, Manuel Carro and Manuel Hermenegildo SAT-Based Termination Analysis Using Monotonicity Constraints over the Integers Amir M. Ben-Amram, Michael Codish, Carsten Fuhs, Jürgen Giesl and Igor...
متن کاملAchieving Scalability in Parallel Tabled Logic Programs
Tabling or memoing is a technique where one stores intermediate answers to a problem so that they can be reused in further calls. Tabling is of interest to logic programming because it addresses some of most significant weaknesses of Prolog. Namely, it can guarantee termination for programs with the bounded term-size property. Tabled programs exhibit a more complex execution mechanism than trad...
متن کاملIndependent AND-Parallel Narrowing
We present a parallel graph narrowing machine, which is used to implement a functional logic language on a shared memory multiprocessor. It is an extension of an abstract machine for a purely functional language. The result is a programmed graph reduction machine which integrates the mechanisms of uniication, backtracking, and independent and-parallelism. In the machine, the subexpressions of a...
متن کاملIndependent AND-Parallel Implementation of Narrowing
Abs t r ac t . We present a parallel graph narrowing machine, which is used to implement a functional logic language on a shared memory multiprocessor. It is an extensión of an abstract machine for a purely functional language. The result is a programmed graph reduction machine which integrates the mechanisms of unification, backtracking, and independent and-parallelism. In the machine, the sub...
متن کاملExploiting Data Parallelism for Efficient Execution of Logic Programs on Associative Super Computers
We describe a model to exploit data parallelism present in associative computers for efficient execution of logic programs on associative supercomputers. We present an alternate scheme for logical structure representation which naturally interfaces lists and vectors on associative computers for efficient integration of symbolic and numerical computation on existing associative supercomputers. W...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- TPLP
دوره 11 شماره
صفحات -
تاریخ انتشار 2011