Timeline for Insert $+$, $-$, $\times$, $/$, $($, $)$ into $123456789$ to make it equal to $100$
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2013 at 15:11 | comment | added | whuber | @xzczd Thank you! That is a useful insight and looks to be a likely explanation for the failure. | |
Oct 24, 2013 at 6:57 | comment | added | xzczd♦ |
I guess I've found the reason why ParallelMap fails: have you distribute definitions for a parallel computation with DistributeDefinitions first? If not, see this page in the document.
|
|
Dec 1, 2012 at 10:30 | vote | accept | xzczd♦ | ||
Nov 27, 2012 at 15:35 | comment | added | VF1 |
@whuber it's just that you use Length[Cases[...]] , which is equivalent to Count[...] .
|
|
Nov 27, 2012 at 7:57 | comment | added | whuber | @VF1 What specific expression are you suggesting? | |
Nov 27, 2012 at 5:37 | comment | added | VF1 |
@whuber any particular reason you didn't use Count in acceptableQ ?
|
|
Nov 26, 2012 at 22:05 | history | edited | whuber | CC BY-SA 3.0 |
added 1038 characters in body
|
Nov 26, 2012 at 21:20 | comment | added | Lou | @Whuber thanks for your really excellent post. I enjoy studying it and I'm almost there in understanding what you did. I wonder what answers (integers) are impossible to calculate with these rules and why.. I wish I could give more points! | |
Nov 26, 2012 at 18:26 | history | edited | whuber | CC BY-SA 3.0 |
added 231 characters in body
|
Nov 26, 2012 at 16:38 | history | edited | whuber | CC BY-SA 3.0 |
added 3099 characters in body
|
Nov 25, 2012 at 22:56 | history | edited | whuber | CC BY-SA 3.0 |
added 5157 characters in body
|
Nov 25, 2012 at 21:39 | comment | added | Rojo | Great, I'll check for the update. I'm intrigued to see how well your RPN solution works! | |
Nov 25, 2012 at 21:25 | comment | added | whuber |
@Rojo Many thanks for making that observation. It appears something very strange is happening with ParallelMap : it frequently "loses" about 95% of the solutions compared to those found by Map . I will rewrite this answer to avoid that problem and to include better explanations of what exactly is being done.
|
|
Nov 24, 2012 at 15:48 | comment | added | Rojo |
It also doesn't seem to be finding all solutions for some reason. solve[Range@4, ops, 9] doesn't find 12*3/4
|
|
Nov 24, 2012 at 15:42 | comment | added | Rojo | I haven't looked at the code in depth yet but, it seems to ignore the list of digits I pass as argument and always take it as Range@Lenght of that list | |
Nov 23, 2012 at 20:51 | history | answered | whuber | CC BY-SA 3.0 |