<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://sudopedia.sudocue.net/index.php?action=history&amp;feed=atom&amp;title=Subset_Counting</id>
	<title>Subset Counting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://sudopedia.sudocue.net/index.php?action=history&amp;feed=atom&amp;title=Subset_Counting"/>
	<link rel="alternate" type="text/html" href="http://sudopedia.sudocue.net/index.php?title=Subset_Counting&amp;action=history"/>
	<updated>2026-04-18T19:59:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>http://sudopedia.sudocue.net/index.php?title=Subset_Counting&amp;diff=382&amp;oldid=prev</id>
		<title>127.0.0.1: Created page with &quot;&#039;&#039;&#039;Subset Counting&#039;&#039;&#039; is a highly advanced solving technique that requires a lot of searching, counting, testing and calculating. Thus, it is not a technique suitable for...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sudopedia.sudocue.net/index.php?title=Subset_Counting&amp;diff=382&amp;oldid=prev"/>
		<updated>2021-10-25T17:19:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Subset Counting&amp;#039;&amp;#039;&amp;#039; is a highly advanced &lt;a href=&quot;/index.php?title=Solving_technique&quot; title=&quot;Solving technique&quot;&gt;solving technique&lt;/a&gt; that requires a lot of searching, counting, testing and calculating. Thus, it is not a technique suitable for...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Subset Counting&amp;#039;&amp;#039;&amp;#039; is a highly advanced [[solving technique]] that requires a lot of searching, counting, testing and calculating. Thus, it is not a technique suitable for your everyday [[Sudoku]], but one that should be reserved for the extremely difficult puzzles.&lt;br /&gt;
&lt;br /&gt;
Subset Counting can replicate [[XY-Wing]], [[XYZ-Wing]], [[WXYZ-Wing]], [[Aligned Pair Exclusion]], [[Aligned Triple Exclusion]] and [[ALS-XZ]] moves, but there may be broader applications which have not been investigated yet.&lt;br /&gt;
&lt;br /&gt;
The theorem behind Subset Counting is sometimes called &amp;#039;&amp;#039;&amp;#039;Extended Subset Principle&amp;#039;&amp;#039;&amp;#039;. Hence, the terms &amp;quot;Subset Counting&amp;quot; and &amp;quot;Extended Subset Principle&amp;quot; may be used interchangeably.&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
&lt;br /&gt;
Select a group of [[cell]]s which you would like to investigate. The best choice - for now - is a group of cells which forms an [[Almost Locked Set]]. These offer the best chance to produce results.&lt;br /&gt;
&lt;br /&gt;
For each [[digit]], count the number of ways it can be placed in the selected cells. There is no need to look at interaction between digits. Just test each digit on its own. Now calculate the sum of these counts. When it is less than the number of selected cells, you&amp;#039;ve done something wrong, because that cannot happen in a [[valid]] puzzle. When it is equal to the number of selected cells, you&amp;#039;ve overlooked something. There is only one way to complete these cells. &lt;br /&gt;
&lt;br /&gt;
Continue with this technique when the total count is 1 or 2 more than the number of selected cells, and there is 1 digit that has a count greater than this surplus.&lt;br /&gt;
&lt;br /&gt;
Now check the grid to see if there is a candidate that can reduce the total count below the number of selected cells. Focus your attention on [[peer]]s of the cells for which removing the candidates for the same digit will reduce the total count below the set size. You can eliminate each candidate that would cause this to happen.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;8&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
[[Image:WXYZWing.png]]&lt;br /&gt;
|&lt;br /&gt;
This example illustrates how Subset Counting works. It works on any selected set of cells so long you can make eliminations.&lt;br /&gt;
&lt;br /&gt;
We start off by selecting the 4 cells marked yellow. For now, let us ignore how these cells were selected. Note that the selected cells have the digits 4, 5, 7 and 8 as their [[candidate]]s. We now determine the maximum number of times each of these digits can be placed in the selected cells:&lt;br /&gt;
* The digit 4 can be placed in a maximum of 2 cells, in &amp;#039;&amp;#039;&amp;#039;r3c2&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;r9c1&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* The digit 5 can be placed in a maximum of 1 cell, in &amp;#039;&amp;#039;&amp;#039;r9c1&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;r9c2&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* The digit 7 can be placed in a maximum of 1 cell, in &amp;#039;&amp;#039;&amp;#039;r3c2&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;r6c2&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* The digit 8 can be placed in a maximum of 1 cell, in &amp;#039;&amp;#039;&amp;#039;r6c2&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;r9c2&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Summing up the maximum number of placements, we obtain 2 + 1 + 1 + 1 = 5.&lt;br /&gt;
&lt;br /&gt;
Now suppose the blue cell contains the digit 4. This [[eliminate]]s the digit 4 from &amp;#039;&amp;#039;&amp;#039;r3c2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;r9c1&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;r9c2&amp;#039;&amp;#039;&amp;#039;, so the maximum number of cells the digit 4 can be placed drops to 0, i.e. a decrease of 2. Thus the the sum is changed to 5 - 2 = 3. This means that you can only place a maximum of 3 digits into these 4 cells, which is impossible. This [[contradiction]] means that the blue cell cannot contain the digit 4, so we can eliminate it.&lt;br /&gt;
&lt;br /&gt;
On the other hand, we cannot eliminate the digit 4 from &amp;#039;&amp;#039;&amp;#039;r5c2&amp;#039;&amp;#039;&amp;#039; yet, because the decrease of sum is only 1, which equates to the number of selected cells and does not cause a contradiction.&lt;br /&gt;
&lt;br /&gt;
Actually, the selected cells form a [[WXYZ-Wing]]. The WXYZ-Wing gives the same elimination.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
&lt;br /&gt;
The above example illustrates both the power and difficulty in applying the Subset Counting technique. The difficulty lies in how to select cells for the counting. However, the power of this technique makes it quite possible to devise other easier to use techniques, with the correctness of these easier techniques &amp;quot;proven immediately from the Extended Subset Principle&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== External link ==&lt;br /&gt;
&lt;br /&gt;
* [http://homepages.cwi.nl/~aeb/games/sudoku/solving12.html Subsets] (from the &amp;#039;&amp;#039;Extended Subset Principle&amp;#039;&amp;#039; section onwards)&lt;br /&gt;
&lt;br /&gt;
[[Category:Solving Techniques]]&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>
	</entry>
</feed>