Skip to content
Browse files

Huge performance improvement.

  • Loading branch information...
1 parent ddabd82 commit 519db667bc617280b0d42724496e4de7aba03dce Andrew Danks committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sudoku_csp.py
View
2 sudoku_csp.py
@@ -92,7 +92,7 @@ def enforce_gac(constraint_list):
# Push all constraints C' such that V is in scope of C' and C'
# is not in GACQueue
for C2 in constraint_list:
- if C2 not in GACQueue and V in C2.scope:
+ if V in C2.scope and C2 not in GACQueue:
GACQueue.append(C2)
return True

0 comments on commit 519db66

Please sign in to comment.
Something went wrong with that request. Please try again.