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

Discussion

How is a tree structured constraint problem solved efficiently?

  • A.Apply arc consistency repeatedly until no domain changes
  • B.Convert the tree into a complete graph and then solve that instead
  • C.Order the variables from a root and make each arc consistent once
  • D.Try every assignment and check each against the constraints

Answer: C

Choosing a root, ordering the variables so that every parent precedes its children, making each arc from parent to child consistent in reverse order and then assigning forward gives a solution with no backtracking. The work is linear in the variables and quadratic in the domain size. Enumeration, repeated propagation and graph completion are unnecessary or harmful. An algorithm exploiting a structural property directly is far better than a general one applied to a structured instance.

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

Post your comment

Please log in or register to post a comment.