Machine-translated by Google. Questions are authored in English.
Top

Discussion

Why is the order of assignment irrelevant to the set of solutions?

  • A.The problem is defined without reference to any variables
  • B.A solution is a set of assignments rather than a sequence
  • C.Constraints are checked only once the assignment is complete
  • D.Every variable ordering leads to the same search tree

Answer: B

Since a solution is an assignment of values to all variables, the order in which they were assigned does not appear in it, so the search tree can be pruned to consider only one ordering at each level. That reduces the tree from n factorial times d to the n down to d to the n. Constraint checking happens throughout, orderings give different trees, and variables are central. Recognising a symmetry and refusing to search its equivalent branches is one of the largest available savings.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.