Questions: Backtracking Search for CSPs

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In a CSP with 10 variables, variable A has only 1 legal value remaining while variable B has 8 legal values remaining. The MRV heuristic assigns which variable next, and why?

AVariable B, because more legal values means more flexibility to find a solution
BVariable A, because a variable with fewer legal values is most likely to cause failure soon, and it is better to detect failure early
CEither variable — MRV only matters when breaking ties between equally constrained variables
DVariable B, because exploring more options first reduces backtracking later
Question 2 Multiple Choice

A backtracking search without heuristics explores 1,000,000 nodes on a CSP. After adding the MRV heuristic, the same problem is solved in 500 nodes. What has the heuristic actually changed?

AThe heuristic changed the set of valid solutions found — it finds a better solution in fewer steps
BThe heuristic changed the order in which variables are assigned, causing failures to be detected earlier and pruning large subtrees
CThe heuristic changed the constraint definitions, making the problem easier to solve
DThe heuristic reduced domain sizes by eliminating illegal values before search begins
Question 3 True / False

Backtracking search with MRV is not expected to find a solution if one exists — the heuristic ordering may cause it to give up and report failure incorrectly.

TTrue
FFalse
Question 4 True / False

The least constraining value (LCV) heuristic for value ordering selects the value that rules out the fewest choices for neighboring unassigned variables.

TTrue
FFalse
Question 5 Short Answer

Explain why 'fail early' is the core principle behind the MRV heuristic, and how it reduces the total number of nodes explored.

Think about your answer, then reveal below.