Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested modification to Online-DFS-Agent (aima3e Figure 4.21) #26

Open
ctjoreilly opened this issue Jul 4, 2016 · 0 comments
Open

Comments

@ctjoreilly
Copy link
Collaborator

To avoid cycles in the DFS traversal, modifying the following conditional from:


if s is not null then
  result[s, a] ← s'
  add s to front of unbacktracked[s']

to:

if s is not null and s′result[s, a] then
  result[s, a] ← s'
  add s to front of unbacktracked[s']

without this additional check it is very easy to end up cycling between states, depending on the order of the actions that are tried from each state. Both the current aima-java and aima-python reference implementations contain this additional check.

norvig added a commit that referenced this issue Mar 3, 2017
Modification in alpha-beta search , bfs,online dfs and mini max search #26  #27 #28 #3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant