Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-r6qrq Total loading time: 0 Render date: 2024-04-26T22:20:56.085Z Has data issue: false hasContentIssue false

Appendix A - Search Algorithms

Published online by Cambridge University Press:  05 August 2016

Malik Ghallab
Affiliation:
Centre National de la Recherche Scientifique (CNRS), Paris
Dana Nau
Affiliation:
University of Maryland, College Park
Paolo Traverso
Affiliation:
FBK ICT – IRST (Center for Scientific and Technological Research), Italy
Get access

Summary

This appendix provides background information about several of the search algorithms used in this book. These are nondeterministic state-space search (Section A.1) and And/Or search (Section A.2).

NONDETERMINISTIC STATE-SPACE SEARCH

Many of the planning algorithms in this book have been presented as nondeterministic search algorithms and can be described as instances of Algorithm A.1, Nondeterministic-Search. In most implementations of these algorithms, line (iii) corresponds to trying several members of R sequentially in a trial-and-error fashion. The “nondeterministically choose” command is an abstraction that lets us ignore the precise order in which those values are tried. This enables us to discuss properties that are shared by a wide variety of algorithms that search the same space of partial solutions, even though those algorithms may visit different nodes of that space in different orders.

There are several theoretical models of nondeterministic choice that are more-orless equivalent mathematically [213, 464, 131]. The one that is most relevant for our purposes is the nondeterministic Turing machine model,which works roughly as follows.

Let ψ(P) be a process produced by calling Nondeterministic-Search on a search problem P. Whenever this process reaches line (iii), it replaces ψ(P) with |R| copies of ψ(P) running in parallel: one copy for each rR. Each process corresponds to a different execution trace of ψ(P), and each execution trace follows one of the paths in ψ(P)'s search tree (see Figure A.1). Each execution trace that terminates will either return failure or return a purported answer to P.

Two desirable properties for a search algorithm ψ are soundness and completeness, which are defined as follows:

  1. ψ is sound over a set of search problems P if for every PP and every execution trace of ψ(P), if the trace terminates and returns a value π ≠ failure, then π is a solution for P. This will happen if the solution test in line (i) is sound.

Algorithm A.1 Equivalent iterative and recursive versions of a generic nondeterministic search algorithm. The arguments include the search problem P and (in the recursive version) a partial solution π, the initial value of which should be the empty plan.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2016

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Search Algorithms
  • Malik Ghallab, Centre National de la Recherche Scientifique (CNRS), Paris, Dana Nau, University of Maryland, College Park, Paolo Traverso
  • Book: Automated Planning and Acting
  • Online publication: 05 August 2016
  • Chapter DOI: https://doi.org/10.1017/CBO9781139583923.011
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Search Algorithms
  • Malik Ghallab, Centre National de la Recherche Scientifique (CNRS), Paris, Dana Nau, University of Maryland, College Park, Paolo Traverso
  • Book: Automated Planning and Acting
  • Online publication: 05 August 2016
  • Chapter DOI: https://doi.org/10.1017/CBO9781139583923.011
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Search Algorithms
  • Malik Ghallab, Centre National de la Recherche Scientifique (CNRS), Paris, Dana Nau, University of Maryland, College Park, Paolo Traverso
  • Book: Automated Planning and Acting
  • Online publication: 05 August 2016
  • Chapter DOI: https://doi.org/10.1017/CBO9781139583923.011
Available formats
×