Method and apparatus for transparent backtracking
Abstract
A technique is used in embodiments of the invention such that backtracking programs can be written in a general purpose computer language (e.g., C++ or Java) without requiring the control structure of the program to reflect the structure of the decision tree. A data state and a control state are restored during backtracking. For restoring the data state, embodiments of the invention keep track of the changes made to variables and the point in execution at which the changes are made. When backtracking occurs, the data state can be restored by undoing the changes to the desired point in execution. For restoring the control state, the method of the invention provides a "failure" exception state that is invoked upon failure in the program (e.g., a failure to find a solution in a search program).. The failure exception is "caught" by catch points established in the execution stack. The failure exception is passed up the execution stack until a point is reached prior to the failure at which execution should be re-initiated. Since the control structure of the search program need not have the same form as the decision tree, part of the control state for the desired decision
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 28.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computerized method of backtracking in a program executable in a memory medium of a computer system comprising: instantiating a choice point in said executable program in said memory medium, said choice point identifying a point of decision in said program, at least one alternative being associated with said choice point; examining said choice point to find said at least one alternative; generating a failure exception in said program associated with said choice point when said at least one alternative is invalid; specifying a catch point associated with a point of execution in said pro
- Claim 2Depends on #1
The method of claim 1 further comprising: associating one or more modifications with said choice point.
- Claim 3Depends on #2
The method of claim 2 further comprising: undoing said one
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 28 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- A. Mueller, A. Zell, "Connectionist Natural Language Parsing with BrainC," Proceedings of the SPIE--The International Society for Optical Engineering (1991), col. 1469, pt. 1, pp. 188-196.
- A. Mueller, A. Zell, Connectionist Natural Language Parsing with BrainC, Proceedings of the SPIE The International Society for Optical Engineering (1991), col. 1469, pt. 1, pp. 188 196.
- Inspect Online Search Report.
- L. Nigro, "Control Extensions in C++," Journal of Object-Oriented Programming (Feb. 1994), pp. 37-47.
- L. Nigro, Control Extensions in C , Journal of Object Oriented Programming (Feb. 1994), pp. 37 47.