Skip to search.
fc-solve-discuss · Freecell Solver Discussion

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Solving Statistics for the First 1 Million PySolFC Black Hole Solita   Message List  
Reply Message #1071 of 1114 |
Re: Solving Statistics for the First 1 Million PySolFC Black Hole Solitaire Deals

On Saturday 11 September 2010 18:50:57 Shlomi Fish wrote:
> Hi all,
>
> I'm sorry for posting from my GMail.com account, but at the moment
> reading my @iglu.org.il email is unsuable due to a KMail misbehaviour.
>
> In any case, with the help of "Amadiro", who provided me with access
> to one of his university's High Performance Computing (HPC) Machines
> with 64 GB of RAM, I have successfully ran my Black Hole solitaire
> solver over the first 1 million PySolFC Black Hole Solitaire deals
> (numbered 1 to 1000000) and either solved them all or proved them to
> be unsolvable. This was partially enabled by translating the solver
> from its original code in Perl to the C programming language which
> made it faster and much less memory hungry.
>
> Here are the results as reported for the solver's depth-first-search
> (DFS) scan (which prioritises moves to those for columns with the
> highest column numbers):
>
> {{{{
> Unsolved
> ---------------------------
> Count: 130587
> Min: 1
> Max: 133195861
> Average: 292400.883977731
> StdDev: 2491612.46642446
> Median: 9
>

As a followup to this here are the numbers of deals out of the first 1 million
whose span is below a certain number:

{{{
sqlite> SELECT COUNT(*) FROM bhs_runs WHERE status = 'U' AND num_checked <=
10;
71238
sqlite> SELECT COUNT(*) FROM bhs_runs WHERE status = 'U' AND num_checked <=
20;
86600
sqlite> SELECT COUNT(*) FROM bhs_runs WHERE status = 'U' AND num_checked <=
30;
94261
sqlite> SELECT COUNT(*) FROM bhs_runs WHERE status = 'U' AND num_checked <=
40;
99127
sqlite> SELECT COUNT(*) FROM bhs_runs WHERE status = 'U' AND num_checked <=
100;
110661
}}}

Regards,

Shlomi Fish


> Solved (Checked)
> ---------------------------
> Count: 869413
> Min: 52
> Max: 215818993
> Average: 553884.397341655
> StdDev: 1625212.95852275
> Median: 79042
>
> Solved (Generated)
> ---------------------------
> Count: 869413
> Min: 96
> Max: 215819025
> Average: 553927.976527841
> StdDev: 1625212.55666315
> Median: 79085
> }}}}
>
> Some analysis:
>
> 1. The checked and generated states for the solved states are closely
> related and generate similar statistics. This is expected.
>
> They are the identical for the unsolvable games because all possible
> positions in the spanned positions' space have been traversed.
>
> 2. It appears that 86% of the deals are solvable.
>
> 3. The unsolved deals states number median is 9 which indicates that
> in at least half of the deals, you'll reach a dead end fairly quickly.
> Nevertheless, many unsolved states have spun millions of positions.
>
> 4. Both the medians and means of the solved states are high, which
> means there are many way to try and solve them. By converting the
> solver to use BrFS (Breadth-first search), I might be able to
> calculate the size of the spun positions' space, but it wasn't done
> yet. However, one should note that BrFS won't make the solution
> shorter as in Black Hole solitaire all solutions are the same length.
>
> ----------------
>
> I should note that it took a lot of work to do this with many script
> written and deployed on many machines. At one point I coded a small
> Dancer-based web app ( http://perldancer.org/ - a micro
> web-development framework for Perl) to distribute IDs to clients which
> solved sequences of boards at home and thus formed a small cluster. It
> was a lot of fun though.
>
> Regards,
>
> -- Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan

<rindolf> She's a hot chick. But she smokes.
<go|dfish> She can smoke as long as she's smokin'.

Please reply to list if it's a mailing list post - http://shlom.in/reply .



Thu Sep 16, 2010 4:35 pm

shlomif2
Offline Offline
Send Email Send Email

Message #1071 of 1114 |
Expand Messages Author Sort by Date

Hi all, I'm sorry for posting from my GMail.com account, but at the moment reading my @iglu.org.il email is unsuable due to a KMail misbehaviour. In any case,...
Shlomi Fish
shlomif@... Send Email
Sep 11, 2010
4:25 pm

... As a followup to this here are the numbers of deals out of the first 1 million whose span is below a certain number: {{{ sqlite> SELECT COUNT(*) FROM...
Shlomi Fish
shlomif2 Offline Send Email
Sep 16, 2010
4:35 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help