naveenkumar j
naveenkumar j's Blog

naveenkumar j's Blog

Artificial Intelligence Question Bank with Answers : part 1

Artificial Intelligence Question Bank with Answers : part 1

Vellore Institute of Technology, Vellore campus

naveenkumar j's photo
naveenkumar j
·Feb 12, 2022·

5 min read

Subscribe to my newsletter and never miss my upcoming articles

Q2.Develop all the production rules for the following water jug problem: You are given two jugs, 4-litre one and 3-litre one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 litres of water into 4-litre jug?

Q2 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3 or 4 and y=0,1,2 or 3. Here x represents the number of litres of water in the 4-litre jug and y represents the number of litres of water in the 3-litre jug. The start state or initial state = (0,0) The goal state = (2,y)

Production rules :

image.png Q3.Develop all the production rules for the following water jug problem: You are given two jugs, 4-litre one and a 3-litre one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 litres of water into 3-litre jug?

Q3 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3 or 4 and y=0,1,2 or 3. Here x represents the number of litres of water in the 4-litre jug and y represents the number of litres of water in the 3-litre jug. The start state or initial state = (0,0) The goal state = (x,2)

Production rules :

image.png Q4.Develop all the production rules for the following water jug problem: You are given two jugs, 4-gallon one and 3-gallon one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 gallons of water into 4-gallon jug?

Q4 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3 or 4 and y=0,1,2 or 3. Here x represents the number of gallons of water in the 4-gallon jug and y represents the number of gallons of water in the 3-gallon jug. The start state or initial state = (0,0) The goal state = (2,y)

Production rules :

image.png

Q5.Develop all the production rules for the following water jug problem: You are given two jugs, 4-gallon one and 3-gallon one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 gallons of water into 3-gallon jug?

Q5 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3 or 4 and y=0,1,2 or 3. Here x represents the number of gallons of water in the 4-gallon jug and y represents the number of gallons of water in the 3-gallon jug. The start state or initial state = (0,0) The goal state = (x,2)

Production rules :

image.png

Q6.Develop all the production rules for the following water jug problem: You are given two jugs, 6-litre one and a 5-litre one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 litres of water into 6-litre jug?

Q6 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3,4,5 or 6 and y=0,1,2,3,4 or 5. Here x represents the number of litres of water in the 6-litre jug. and y represents the number of litres of water in the 5-litre jug. The start state or initial state = (0,0) The goal state = (2,y)

Production rules :

image.png

Q7.Develop all the production rules for the following water jug problem: You are given two jugs, 6-litre one and a 5-litre one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 litres of water into 5-litre jug?

Q7 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3,4,5 or 6 and y=0,1,2,3,4 or 5. Here x represents the number of litres of water in the 6-litre jug. and y represents the number of litres of water in the 5-litre jug. The start state or initial state = (0,0) The goal state = (x,2)

Production rules:

image.png

Q8.Develop all the production rules for the following water jug problem: You are given two jugs, 6-gallon one and 5-gallon one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 gallons of water into 6-gallon jug?

Q8 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3,4,5 or 6 and y=0,1,2,3,4 or 5. Here x represents the number of gallons of water in the 6-gallon jug. and y represents the number of gallons of water in the 5-gallon jug. The start state or initial state = (0,0) The goal state = (2,y)

Production rules :

image.png

Q9.Develop all the production rules for the following water jug problem: You are given two jugs, 6-gallon one and 5-gallon one. Neither has any measuring marks on it. There is a pump that can be used to fill the jugs with water. How can we get exactly 2 gallons of water into 5-gallon jug?

Q9 answer:

The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x=0,1,2,3,4,5 or 6 and y=0,1,2,3,4 or 5. Here x represents the number of gallons of water in the 6-gallon jug and y represents the number of gallons of water in the 5-gallon jug. The start state or initial state = (0,0) The goal state = (x,2)

Production rules :

image.png

Artificial Intelligence Question Bank with Answers : part 2 click here

Did you find this article valuable?

Support naveenkumar j by becoming a sponsor. Any amount is appreciated!

See recent sponsors Learn more about Hashnode Sponsors
 
Share this