Backtracking in recursive computations |
| |
Authors: | Nissim Francez Boris Klebansky Amir Pnueli |
| |
Affiliation: | (1) Department of Applied Mathematics, The Weizmann Institute of Science, Rehovot, Israel;(2) Department of Mathematics (Division of Computer Science), Tel Aviv University, Tel Aviv, Israel |
| |
Abstract: | Summary A mathematical (denotational) semantics is constructed for a formalism of recursive equations with the Alternative operator. This formalism enables the combination of recursion and backtracking. The semantics is defined by applying fixpoint theory to set valued functions. We introduce the notion of strategy to produce subsets of the result. Two implementations are suggested using an auxiliary stack, that trade off recomputation time with space in the auxiliary stack. The concept of a sub-fixpoint is introduced, and the implementations are shown to be incomplete even w.r.t. sub-fixpoint values. One special strategy, the leftmost strategy, which stems from problems such as pattern matching or parsing, is discussed. |
| |
Keywords: | |
本文献已被 SpringerLink 等数据库收录! |
|