Quiz Space

AI: Search Methods for Problem Solving · Quiz 1 · 13 Jul 2025 · May 2025 term

Question 6: STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi,…

Question 6

+1 markOne correct option

STATE SPACE SEARCH
Background:
Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and Malaysia. There are three cups A, B, C, where each cup holds zero or more shells (or seeds).
A state is represented by a three digit number "abc" where the digits a, b and c indicate the number of shells in cups A, B and C, respectively.
A single move (for a player) has three steps: select a non-empty cup, remove all shells from that cup and distribute those shells in a round-robin manner. Complete all three steps to complete a single move.
For example, select cup A, remove all shells from cup A (say N shells) then add one shell to each cup in the round-robin sequence B, C, A, B, C, A, …, until all N shells are placed.
If you select cup B, follow the round-robin sequence C, A, B, C, A, B, ...
If you select cup C, follow the round-robin sequence A, B, C, A, B, C, ...
Valid move: a move ("abc" ---> "xyz") is valid if the first digit 'x' (in output state) is greater than or equal to the first digit 'a' in input state.
MoveGen example: the state 360 allows only two moves: select cup A to generate 171, or select cup B to generate 522. Of the two moves, only 522 is valid, therefore, MoveGen(360) = [522].

Problem statement:
Begin with the state “123” and construct the state space by generating valid moves.
For each state "abc", the heuristic h(abc) = a + b, returns the number of shells in the first two cups as the heuristic value. Use this heuristic when required.

Complete the table shown above and complete the state space graph (call it Graph-123) and then answer the subquestions.
IMPORTANT: your MoveGen function must consider only valid moves and it must return the neighbours in ascending order.

Select the statements that are true in the state space Graph-123.

  1. A

    Every state is connected to every other state.

  2. B

    Every move is reversible.

  3. C

    The number of shells in each state is the same (constant).

  4. D

    None of these.

Show answer

Correct answer

  • C

    The number of shells in each state is the same (constant).

Question 6 of 22 in the IIT Madras BS AI: Search Methods for Problem Solving (AI Search Methods) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term (IIT M DEGREE AN EXAM QDB2 13 July 2025). It carries 1 mark.

More questions from this paper

  1. Q1STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  2. Q2STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  3. Q3STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  4. Q4STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  5. Q5STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  6. Q7STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  7. Q8STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  8. Q9STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  9. Q10STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  10. Q11STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  11. Q12STATE SPACE SEARCH\ Background:\ Inspired by Pallanguzhi, a two-person game played in Tamil Nadu, Kerala, Sri Lanka and…
  12. Q13Genetic Algorithm\ Which of the following are constructive methods?
  13. Q14Genetic Algorithm\ Tour representations are basically raw lists (list of city names or list of city positions) which ar…
  14. Q15Genetic Algorithm\ Compute the ordinal representation of tour P1 (given in path representation). Use A,B,C,D,E,F as the…
  15. Q16Genetic Algorithm\ Path representation of two parent tours are given below. Express the parent tours in ordinal represe…
  16. Q17TSP\ The distance matrix for 5 cities and the corresponding edge costs (in sorted order) are provided below. Use this i…
  17. Q18TSP\ The distance matrix for 5 cities and the corresponding edge costs (in sorted order) are provided below. Use this i…
  18. Q19TSP\ The distance matrix for 5 cities and the corresponding edge costs (in sorted order) are provided below. Use this i…
  19. Q20TSP\ The distance matrix for 5 cities and the corresponding edge costs (in sorted order) are provided below. Use this i…
  20. Q21TSP\ The distance matrix for 5 cities and the corresponding edge costs (in sorted order) are provided below. Use this i…
  21. Q22TSP\ The distance matrix for 5 cities and the corresponding edge costs (in sorted order) are provided below. Use this i…