Advertisement

An Exhaustive-Search Method Using Layered Streams Obtained Through a Meta-Interpreter for Chain Programs

  • David A. Rosenblueth
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 1559)

Abstract

Okumura and Matsumoto have published [1] examples of logic programs using a data structure they call “layered stream,” especially suited for completely traversing a search space in a deterministic manner [2,4]. A layered stream is a representation of a list of lists, in which common heads of adjacent sublists have been factored. This factorization allows the pruning of several branches of the search space in constant time and is also a source of parallelism [3, p. 147]. The published examples include the N-queen problem and “instant insanity” (a precursor of Rubik’s cube). Each such deterministic, layered-stream program supposedly performs exhaustive search over the space generated by some nondeterministic, naive program. However, a method converting a non-deterministic program into a corresponding exhaustive-search, layered-stream version has not yet been proposed, as far as we know. Layered streams have thus remained difficult to use [3, p. 408], since the programmer must be concerned both about factorization of heads and exhaustive search. We build upon the work of Okumura and Matsumoto by showing how to translate nondeterministic programs into exhaustive-search, layered-stream form. Our method is restricted to generate-and-test programs fitting a certain schema.

Keywords

Search Space Logic Program Exhaustive Search Empty List Parallel Logic 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    Akira Okumura and Yuji Matsumoto. Parallel programming with layered streams. In Proceedings of the 1987 Symposium on Logic Programming, pages 224–231, San Francisco, California, U.S.A., 1987. Lecture Notes in Computer Science 348.Google Scholar
  2. 2.
    H. Tamaki. Stream-based compilation of ground I/O Prolog into committed-choice languages. In Proceedings of the Fourth International Conference on Logic Programming, pages 376–393, Melbourne, Australia, 1987.Google Scholar
  3. 3.
    Evan Tick. Parallel Logic Programming. MIT Press, 1991.Google Scholar
  4. 4.
    Kazunori Ueda. Making exhaustive search programs deterministic. New Generation Computing, 5:29–44, 1987.zbMATHCrossRefGoogle Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1999

Authors and Affiliations

  • David A. Rosenblueth
    • 1
  1. 1.Instituto de Investigaciones en Matemáticas Aplicadas y en SistemasUniversidad Nacional Autónoma de MéxicoMexico D.F.

Personalised recommendations