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

Inconsistency in Online DFS AGENT(aima3e Fig.4.21) pseudocode and python implementation #98

Open
masterchef2209 opened this issue Nov 13, 2019 · 0 comments

Comments

@masterchef2209
Copy link

masterchef2209 commented Nov 13, 2019

The pseudocode for Online DFS Agent contains line else a ← an action b such that result[s', b] = POP(unbacktracked[s']). I see that it is not consistent with python implementation here.

else:
                    # else a <- an action b such that result[s', b] = POP(unbacktracked[s'])
                    unbacktracked_pop = self.unbacktracked.pop(s1)
                    for (s, b) in self.result.keys():
                        if self.result[(s, b)] == unbacktracked_pop:
                            self.a = b
                            break

which implies we are getting an action where result[s,b](result of s instead of s') =POP(unbacktracked[s'])

@masterchef2209 masterchef2209 changed the title Inconsistency in Online DFS AGENT pseudocode and python implementation Inconsistency in Online DFS AGENT(aima3e Fig.4.21) pseudocode and python implementation Nov 13, 2019
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