aimacode / aima-python

Python implementation of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
MIT License
8.05k stars 3.81k forks source link

verifying if am not misusing search module #283

Closed cppchedy closed 7 years ago

cppchedy commented 7 years ago

Hi, first, I want to thank you for this awesome library/work and to encourage you to continue developing and maintaining AIMA-Python.


I am using AIMA-python in my homework/project of AI and it's my first time with your library. I was reviewing one of the examples in the notebooks after that I completed implementing my solution and it made me suspicious. that's why I am here to verify a few points/assumptions.

I inherited from Problem class and reimplemented the is_goal() method, the result() method and the actions() method. In the actions() method:

thx.

Note :sorry to post here I didn't find any other way to contact you.

Chipe1 commented 7 years ago

By empty action if you mean no action i.e. empty list, then it is valid. If no action is possible and goal cannot be reached the function returns None. It is sufficient to implement h(), define the 'problem' and pass problem,h to astar_search.

cppchedy commented 7 years ago

thanks. good, so I guess My implementation is correct. I will share it(I.A.) when I am done in a notebook.