Skip to main content

Backtracking

  • Chapter
Programming with Sets

Part of the book series: Texts and Monographs in Computer Science ((MCS))

  • 126 Accesses

Abstract

Backtracking or nondeterministic programming is an ingenious technique useful for solving a very common and important type of search problem. Such problems can be regarded as logical or combinatorial “mazes” which a program must explore in order to find a desired solution point. In favorable cases, one will be able to do this by devising an algorithm which proceeds in relatively direct fashion from an initial position to a solution, along a path involving little or no trial and error. However, some problems are too complex for such algorithms to be available, and it is for these problems that the method of backtracking is most useful. Characteristically, programs for solving these problems encounter situations in which a decision must be made as to which of several alternatives is to be explored next, but in which no clear grounds can be found for making one rather than another decision. A correct decision will lead on to a solution of the problem being explored, but an incorrect decision will wind up in a dead end, and the program will have to revert to the point at which it took its first wrong turning and try an alternative originally ignored. Finding paths through mazes and solving geometric and spatial puzzles like “instant insanity” are obvious examples of this kind of problem.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1986 Springer-Verlag New York Inc.

About this chapter

Cite this chapter

Schwartz, J.T., Dewar, R.B.K., Schonberg, E., Dubinsky, E. (1986). Backtracking. In: Programming with Sets. Texts and Monographs in Computer Science. Springer, New York, NY. https://doi.org/10.1007/978-1-4613-9575-1_7

Download citation

  • DOI: https://doi.org/10.1007/978-1-4613-9575-1_7

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4613-9577-5

  • Online ISBN: 978-1-4613-9575-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics