Jump to content

Min-conflicts algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ogai (talk | contribs) at 11:23, 6 June 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The Min Conflicts Algorithm is a search algorithm to solve constraint satisfaction problems (CSP problems).

It assigns random values to all the variables of a CSP. Then it selects randomly a variable, whose value conflicts with any constraint of the CSP. Then it assigns to this variable the value with the minimum conflicts. If there are more than one minimum, it chooses one among them randomly. After that, a new iteration starts again until a solution is found or a preselected maximum number of iterations is reached.

Because a CSP can be interpreted as a local search problem when all the variables have assigned a value (complete states), the Min Conflicts Algorithm can be seeing as a heuristic that chooses the state with the minimum number of conflicts.