code: def mrv(assignment, csp):
      "Minimum-remaining-values heuristic."
      return argmin_random_tie(
          [v for v in csp.vars if v not in assignment],
          lambda var: num_legal_values(csp, var, assignment)f mrv(assignment, csp):
      "Minimum-remaining-values heuristic."
      return argmin_random_tie(
          [v for v in csp.vars if v not in assignment],
          lambda var: num_legal_values(csp, var, assignment))
docs: Minimum-remaining-values heuristic.