if you have N cards (N = 8), you can list all even triples at a given time N * (N - 1) * (N - 2) (with N = 8 you get 336). This is pretty fast. Check which of these tees are “rummy style” type sets and save them in the table as whole triples (an integer denotes the serial numbers of the cards).
. - . - . ('i') . "i- ", + 1 ; , "i- , + 1 . , .
:
: 6D, 7D, 7C, 7H, 8D, 8C, 9C, 10H
:
Cards Index triple
6D 7D 8D <0, 1, 4>
7D 7C 7H <1, 2, 3>
7C 8C 9C <2, 5, 6>
:
Decide on <0, 1, 4>:
<0, 1, 4> INCLUDED:
<1, 2, 3> CLASHES with <0, 1, 4>
Decide on <2, 5, 6>:
<2, 5, 6> INCLUDED:
Solution with 2 sets (* BEST SOLUTION)
<2, 5, 6> EXCLUDED:
Solution with 1 sets
<0, 1, 4> EXCLUDED:
Decide on <1, 2, 3>:
<1, 2, 3> INCLUDED:
<2, 5, 6> CLASHES with <1, 2, 3>
Solution with 1 sets
<1, 2, 3> EXCLUDED:
Decide on <2, 5, 6>:
<2, 5, 6> INCLUDED:
Solution with 1 set
<2, 5, 6> EXCLUDED:
Solution with 0 sets
( ).
. !