AI Assignment I
AI Assignment I
M S C K S
HERE
+ SHE
------------
COMES
N O
+ G U N
N O
-------------
H U N T
-------------
6. A fisher man wants to cross a lakeshore and take with him a wild dog, a fish, and a
carrot and rabbit. He has small sail which can carry fisher man plus either the wild
dog, fish, or the carrot. If the wild dog and a fish are alone on one shore, the wild dog
will eat a fish. If a rabbit and the carrot are alone on the shore, the rabbit will eat the
carrot.
How can the fisher man bring the wild dog, a fish, and a carrot and rabbit across the
river?
7. A man has to get a dog, a pigeon, and a beatroot across a river. He has a rowboat, and
it can only carry him and one other thing.
If the dog and the pigeon are left together, the dog will eat the pigeon.
If the pigeon and the beatroot are left together, the pigeon will eat the beatroot.
How does the man do it? Give the start and goal states along with the constraints.
8. A man has two same quantity glasses. One contains 1 Litre of lemon juice and the
other contains 1 Litre of coke.
he take a spoonful of lemon juice and stir it into the coke glass, and then take a
spoonful of that mixture and stir it back into the lemon juice glass.
Which glass now contains least of the contents of the other one?
9. Solve the below graph using DFS and BFS
10. Solve the below graph using DFS and BFS
11. Solve the below tree using depth limit search. Start state is A and Goal state Y.