Questions: Backtracking and Constraint Satisfaction

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A backtracking algorithm is solving an 8-Queens problem. After placing queens in rows 1–5, it finds that every column in row 6 conflicts with an existing queen. What does backtracking do next?

AIt tries all column assignments for rows 7 and 8 before giving up on the current partial solution
BIt immediately backtracks to row 5 and tries the next unused column there
CIt restarts the search from row 1 with a different initial column
DIt marks the problem unsolvable and terminates
Question 2 Multiple Choice

In a CSP with 9 variables, variable A has 4 remaining legal values, variable B has 1, and variable C has 7. Which should the MRV (most constrained variable) heuristic assign next?

AVariable C, because more options provide greater flexibility to satisfy constraints later
BVariable A, as a balanced middle choice
CVariable B, because it has the fewest remaining legal values
DWhichever variable appears first in the problem's variable list
Question 3 True / False

Backtracking is more efficient than brute-force enumeration because it checks constraints after each partial assignment rather than only after all variables have been assigned.

TTrue
FFalse
Question 4 True / False

Constraint propagation in backtracking mainly updates the domain of the variable currently being assigned; it leaves most other variables' domains unchanged.

TTrue
FFalse
Question 5 Short Answer

Explain why checking constraints on partial assignments — before a complete solution is formed — makes backtracking more efficient than generating all complete assignments and checking each one.

Think about your answer, then reveal below.