https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Talk%3AAC-3_algorithm Talk:AC-3 algorithm - Revision history 2025-06-29T01:37:31Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.7 https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=1269519411&oldid=prev Masterhatch: Removed from Category:Talk pages with comments before the first section 2025-01-15T02:55:12Z <p>Removed from <a href="/wiki/Category:Talk_pages_with_comments_before_the_first_section" title="Category:Talk pages with comments before the first section">Category:Talk pages with comments before the first section</a></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:55, 15 January 2025</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 2:</td> <td colspan="2" class="diff-lineno">Line 2:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science |importance=Low}}</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science |importance=Low}}</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}}</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}}</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== Untitled ==</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> </table> Masterhatch https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=1236580184&oldid=prev Supyovalk: Assessment (Low): banner shell, Computer science (Rater) 2024-07-25T13:19:29Z <p>Assessment (Low): banner shell, Computer science (<a href="/wiki/Wikipedia:RATER#2.7.1" class="mw-redirect" title="Wikipedia:RATER">Rater</a>)</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:19, 25 July 2024</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject banner shell|class=|</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject banner shell|class=<ins style="font-weight: bold; text-decoration: none;">Start</ins>|<ins style="font-weight: bold; text-decoration: none;">1=</ins></div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science}}</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science<ins style="font-weight: bold; text-decoration: none;"> |importance=Low</ins>}}</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}}</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>}}</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> </tr> </table> Supyovalk https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=1197138804&oldid=prev Qwerfjkl (bot): Implementing WP:PIQA (Task 26) 2024-01-19T11:08:31Z <p>Implementing <a href="/wiki/Wikipedia:PIQA" class="mw-redirect" title="Wikipedia:PIQA">WP:PIQA</a> (<a href="/wiki/Wikipedia:Bots/Requests_for_approval/Qwerfjkl_(bot)_26" title="Wikipedia:Bots/Requests for approval/Qwerfjkl (bot) 26">Task 26</a>)</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:08, 19 January 2024</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject banner shell|class=|</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science}}</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science}}</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>}}</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> </table> Qwerfjkl (bot) https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=708112333&oldid=prev 91.2.85.9: /* Early version too inefficient, later versions difficult to implement => often taught algorithm!? */ new section 2016-03-03T18:22:36Z <p><span class="autocomment">Early version too inefficient, later versions difficult to implement =&gt; often taught algorithm!?: </span> new section</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:22, 3 March 2016</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 35:</td> <td colspan="2" class="diff-lineno">Line 35:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:::::You're right, arcs starting at the pruned variable ''x'' and pointing to a different variable ''z'' are not added when pruning according to the algorithm; all arcs are included just once at the initialization, or later when a variable may lose support because a neighbor variable is pruned. I recommend that you read the original paper [http://cse.unl.edu/~choueiry/Documents/Mackworth-AIJ77.pdf here] (algorithms AC2 and AC3 are on page 106).</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:::::You're right, arcs starting at the pruned variable ''x'' and pointing to a different variable ''z'' are not added when pruning according to the algorithm; all arcs are included just once at the initialization, or later when a variable may lose support because a neighbor variable is pruned. I recommend that you read the original paper [http://cse.unl.edu/~choueiry/Documents/Mackworth-AIJ77.pdf here] (algorithms AC2 and AC3 are on page 106).</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:::::Talk pages are for improving the article. If there's an error in the article, this conversation can uncover it, so there's no reason to delete it. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 07:13, 7 March 2013 (UTC)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:::::Talk pages are for improving the article. If there's an error in the article, this conversation can uncover it, so there's no reason to delete it. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 07:13, 7 March 2013 (UTC)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== Early version too inefficient, later versions difficult to implement =&gt; often taught algorithm!? ==</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The text says that because of inefficiencies of early implementations and difficulties of modern implementations: "... and so AC-3 is the one most often taught ...". I don't understand this conclusion. I suspect this needs to be reworded? [[Special:Contributions/91.2.85.9|91.2.85.9]] ([[User talk:91.2.85.9|talk]]) 18:22, 3 March 2016 (UTC)</div></td> </tr> </table> 91.2.85.9 https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=662459766&oldid=prev Christian75: Assessment: +Computer science (assisted) 2015-05-15T15:37:28Z <p>Assessment: +Computer science (<a href="/wiki/User:Kephir/gadgets/rater" title="User:Kephir/gadgets/rater">assisted</a>)</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:37, 15 May 2015</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{WikiProject Computer science}}</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I'm not sure the pseudocode is right: the arc-reduce(x,y) function only reduces the domain of x, therefore you also need to call arc-reduce(y,x) to reduce the domain of y and add (z,y) arcs to the worklist if it was indeed reduced. This is done once in the current implementation, as the code for initiating the worklist</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> </table> Christian75 https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=542535067&oldid=prev Diego Moya at 07:16, 7 March 2013 2013-03-07T07:16:10Z <p></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 07:16, 7 March 2013</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 32:</td> <td colspan="2" class="diff-lineno">Line 32:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok, that part wasn't clear in my mind. Thanks again. One last detail : "all the arcs of constraints including that pruned variable (except the current arc) are added to the collection" should become "all the arcs of constraints pointing to that pruned variable (except the arc of the current constraint) are added to the collection" if I'm not mistaken again. And shall we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok, that part wasn't clear in my mind. Thanks again. One last detail : "all the arcs of constraints including that pruned variable (except the current arc) are added to the collection" should become "all the arcs of constraints pointing to that pruned variable (except the arc of the current constraint) are added to the collection" if I'm not mistaken again. And shall we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:::::You're right, arcs starting at the pruned variable ''x'' and pointing to a different variable ''z'' are not added according to the algorithm. I recommend that you read the original paper [http://cse.unl.edu/~choueiry/Documents/Mackworth-AIJ77.pdf here] (algorithms AC2 and AC3 are on page 106).</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:::::You're right, arcs starting at the pruned variable ''x'' and pointing to a different variable ''z'' are not added<ins style="font-weight: bold; text-decoration: none;"> when pruning</ins> according to the algorithm<ins style="font-weight: bold; text-decoration: none;">; all arcs are included just once at the initialization, or later when a variable may lose support because a neighbor variable is pruned</ins>. I recommend that you read the original paper [http://cse.unl.edu/~choueiry/Documents/Mackworth-AIJ77.pdf here] (algorithms AC2 and AC3 are on page 106).</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:::::Talk pages are for improving the article. If there's an error in the article, this conversation can uncover it, so there's no reason to delete it. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 07:13, 7 March 2013 (UTC)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:::::Talk pages are for improving the article. If there's an error in the article, this conversation can uncover it, so there's no reason to delete it. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 07:13, 7 March 2013 (UTC)</div></td> </tr> </table> Diego Moya https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=542534732&oldid=prev Diego Moya at 07:13, 7 March 2013 2013-03-07T07:13:46Z <p></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 07:13, 7 March 2013</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 32:</td> <td colspan="2" class="diff-lineno">Line 32:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok, that part wasn't clear in my mind. Thanks again. One last detail : "all the arcs of constraints including that pruned variable (except the current arc) are added to the collection" should become "all the arcs of constraints pointing to that pruned variable (except the arc of the current constraint) are added to the collection" if I'm not mistaken again. And shall we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok, that part wasn't clear in my mind. Thanks again. One last detail : "all the arcs of constraints including that pruned variable (except the current arc) are added to the collection" should become "all the arcs of constraints pointing to that pruned variable (except the arc of the current constraint) are added to the collection" if I'm not mistaken again. And shall we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:::::You're right, arcs starting at the pruned variable ''x'' and pointing to a different variable ''z'' are not added according to the algorithm. I recommend that you read the original paper [http://cse.unl.edu/~choueiry/Documents/Mackworth-AIJ77.pdf here] (algorithms AC2 and AC3 are on page 106).</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:::::Talk pages are for improving the article. If there's an error in the article, this conversation can uncover it, so there's no reason to delete it. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 07:13, 7 March 2013 (UTC)</div></td> </tr> </table> Diego Moya https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=542499732&oldid=prev Baha2490 at 02:51, 7 March 2013 2013-03-07T02:51:17Z <p></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:51, 7 March 2013</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 31:</td> <td colspan="2" class="diff-lineno">Line 31:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::I'd say that the paragraph which describes the CSP as [[directed graph]]s is misleading - the consistency between arcs is directed (when x-&gt;y is arc-consistent, y-&gt;x may not be; this depends on the current state of the variable domains), but at a different level the definition of the constraints must be symmetric ( R(x,y)=R(y,x), and this depends only on the mathematical definition of the constraints, not on the algorithm current state ). [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:15, 6 March 2013 (UTC)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::I'd say that the paragraph which describes the CSP as [[directed graph]]s is misleading - the consistency between arcs is directed (when x-&gt;y is arc-consistent, y-&gt;x may not be; this depends on the current state of the variable domains), but at a different level the definition of the constraints must be symmetric ( R(x,y)=R(y,x), and this depends only on the mathematical definition of the constraints, not on the algorithm current state ). [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:15, 6 March 2013 (UTC)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok,<del style="font-weight: bold; text-decoration: none;"> it's</del> that part<del style="font-weight: bold; text-decoration: none;"> that</del> wasn't clear in my mind. Thanks again. <del style="font-weight: bold; text-decoration: none;">Shall</del> we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok, that part wasn't clear in my mind. Thanks again. <ins style="font-weight: bold; text-decoration: none;">One last detail : "all the arcs of constraints including that pruned variable (except the current arc) are added to the collection" should become "all the arcs of constraints pointing to that pruned variable (except the arc of the current constraint) are added to the collection" if I'm not mistaken again. And shall</ins> we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> </tr> </table> Baha2490 https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=542494458&oldid=prev Baha2490 at 02:18, 7 March 2013 2013-03-07T02:18:28Z <p></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:18, 7 March 2013</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 30:</td> <td colspan="2" class="diff-lineno">Line 30:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::This works because constraints are 'not' directed - if there's a value Y in D(y) that ''supports'' a value X in D(x), then the the inverse is also true - the X value also supports the Y value. </div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::This works because constraints are 'not' directed - if there's a value Y in D(y) that ''supports'' a value X in D(x), then the the inverse is also true - the X value also supports the Y value. </div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::I'd say that the paragraph which describes the CSP as [[directed graph]]s is misleading - the consistency between arcs is directed (when x-&gt;y is arc-consistent, y-&gt;x may not be; this depends on the current state of the variable domains), but at a different level the definition of the constraints must be symmetric ( R(x,y)=R(y,x), and this depends only on the mathematical definition of the constraints, not on the algorithm current state ). [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:15, 6 March 2013 (UTC)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::I'd say that the paragraph which describes the CSP as [[directed graph]]s is misleading - the consistency between arcs is directed (when x-&gt;y is arc-consistent, y-&gt;x may not be; this depends on the current state of the variable domains), but at a different level the definition of the constraints must be symmetric ( R(x,y)=R(y,x), and this depends only on the mathematical definition of the constraints, not on the algorithm current state ). [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:15, 6 March 2013 (UTC)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>::::"Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it. This works because constraints are 'not' directed" Ok, it's that part that wasn't clear in my mind. Thanks again. Shall we leave this discussion on the talk page or erase it ? [[User:Baha2490|Baha2490]] ([[User talk:Baha2490|talk]]) 02:18, 7 March 2013 (UTC)</div></td> </tr> </table> Baha2490 https://en.wikipedia.org/w/index.php?title=Talk:AC-3_algorithm&diff=542353808&oldid=prev Diego Moya at 10:32, 6 March 2013 2013-03-06T10:32:53Z <p></p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="en"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:32, 6 March 2013</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 28:</td> <td colspan="2" class="diff-lineno">Line 28:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::The pseudo code is right. The main benefit of AC3 over other weaker propagation algorithms is that, once you finish arc-reduce(x,y), you don't need to check anything of y nor add (y, x) to the worklist - everything that could be pruned in x because of y will have been checked and taken care of. Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it.</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::The pseudo code is right. The main benefit of AC3 over other weaker propagation algorithms is that, once you finish arc-reduce(x,y), you don't need to check anything of y nor add (y, x) to the worklist - everything that could be pruned in x because of y will have been checked and taken care of. Also pruning a value in x won't affect y, because a value is pruned from x only when no values in y are connected to it.</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>::This works because constraints are 'not' directed - if there's a value Y in D(y) that ''supports'' a value X in D(x), then the the inverse is also true - the X value also supports the Y value. I'd say that the paragraph which describes the CSP as [[directed graph]]s is misleading - the consistency between arcs is directed (when x-&gt;y is arc-consistent, y-&gt;x may not be; this depends on the current state of the variable domains), but at a different level the definition of the constraints must be symmetric ( R(x,y)=R(y,x), and this depends only on the mathematical definition of the constraints, not on the algorithm current state ). [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:15, 6 March 2013 (UTC)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>::This works because constraints are 'not' directed - if there's a value Y in D(y) that ''supports'' a value X in D(x), then the the inverse is also true - the X value also supports the Y value. </div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">::</ins>I'd say that the paragraph which describes the CSP as [[directed graph]]s is misleading - the consistency between arcs is directed (when x-&gt;y is arc-consistent, y-&gt;x may not be; this depends on the current state of the variable domains), but at a different level the definition of the constraints must be symmetric ( R(x,y)=R(y,x), and this depends only on the mathematical definition of the constraints, not on the algorithm current state ). [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 10:15, 6 March 2013 (UTC)</div></td> </tr> </table> Diego Moya