Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #33 for Tree-CSP-Solver. #38

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions md/Tree-CSP-Solver.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ __function__ TREE-CSP-SOLVER(_csp_) __returns__ a solution, or failure
 _n_ ← number of variables in _X_
 _assignment_ ← an empty assignment
 _root_ ← any variable in _X_
 _X_ ← TOPOLOGICALSORT(_X_, _root_)
 _X_ ← TOPOLOGICALSORT(_csp_, _root_)
 __for__ _j_ = _n_ __down to__ 2 __do__
&emsp;&emsp;MAKE\-ARC\-CONSISTENT(PARENT(_X<sub>j</sub>_), _X<sub>j</sub>_)
&emsp;&emsp;MAKE\-ARC\-CONSISTENT(_csp_, PARENT(_X<sub>j</sub>_), _X<sub>j</sub>_)
&emsp;&emsp;__if__ it cannot be made consistent __then return__ _failure_
&emsp;__for__ _i_ 1 __to__ _n_ __do__
&emsp;&emsp;_assignment_[_X<sub>i</sub>_] &larr; any consistent value from _D<sub>i</sub>_
Expand Down