摘要 |
<p>The present invention is a method and apparatus for managing memory in goal processing. Search states (130) that contain alternative subgoal (120, 125) are created. Problems state modifications associated with the goals contained in a search state are associated with a search state object (120, 125). A search state object (130) contains information about the search process and the goals included in the search state, and a pointer to previous search state objects (120, 125). Processed goals are kept on a goal stack (90), and the search state object points to the first and last goal stack entry included in the search state object (120, 125). When a goal processing failure occurs, an alternative subgoal is directly accessible without visiting each subgoal individually.</p> |