2026-07-072026-07-07http://salesiana.dossiersoluciones.com/handle/123456789/32252This paper presents an algorithm that achieves hyper-arc consistency for the soft alldifferent constraint. To this end, we prove and exploit the equivalence with a minimum-cost flow problem. Consistency of the constraint can be checked in O(nm) time, and hyper-arc consistency is achieved in O(m) time, where n is the number of variables involved and m is the sum of the cardinalities of the domains. It improves a previous method that did not ensure hyper-arc consistency.11 pages, 1 figureProgramming LanguagesD.3.2; D.3.3; G.2.2A Hyper-Arc Consistency Algorithm for the Soft Alldifferent Constrainttext