![]() |
|
|
#12 |
|
Oct 2007
Manchester, UK
23×59 Posts |
I'd made a couple of mistakes (I'd specifically tuned my code for the previous set of scores and hadn't re-tuned it for these, so it missed some combos), also somehow I missed out the second 24. Also I stopped at 14 darts instead of running to 17.
So yeah, NOW I also get 82339371. Unfortunately I have no idea how FFTs work, so I don't know what specific methods you're refering to. However, I will read around and have a think as to how I could speed up my code (this last run 93 mins ).
|
|
|
|
|
|
#13 |
|
Dec 2007
Cleves, Germany
2×5×53 Posts |
Somewhat optimized results:
![]() Code:
kossy@leela:~/darts2> time ./darts2 Value for N=100 is 82339371. Peak at N=667: 17496397018818748. Peak at N=668: 17496397018818748. real 0m0.002s user 0m0.001s sys 0m0.001s kossy@leela:~/darts2> ![]() Where did the 1072 come from, again?
|
|
|
|
|
|
#14 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2·11·283 Posts |
Quote:
|
|
|
|
|
|
|
#15 | |
|
Dec 2007
Cleves, Germany
2·5·53 Posts |
Quote:
|
|
|
|
|
|
|
#16 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2×11×283 Posts |
|
|
|
|
|
|
#17 | |
|
May 2004
New York City
5×7×112 Posts |
Quote:
Shouldn't it be the coefficient of x^100 in (1+x)(1+x^2)(1+x^3)(1+x^4).....(1+x^57)(1+x^60) [43 terms]? And then if we want to allow for one dart per area, just raise the appropriate term to the power = #areas with that value, e.g. (1+x^6)^3 because 6 is the value of three areas. (Which yields 62 terms.) Last fiddled with by davar55 on 2008-02-13 at 03:13 Reason: add second paragraph |
|
|
|
|
|
|
#18 |
|
Jan 2005
Transdniestr
7678 Posts |
I think Davar is right.
If you wanted up to three terms, I believe the term would be (1 + x^6 + x^12 + x^18) rather than (1+x^6)^3 |
|
|
|
|
|
#19 |
|
Dec 2005
22×72 Posts |
|
|
|
|
|
|
#20 |
|
"Lucan"
Dec 2006
England
2·3·13·83 Posts |
I'm still intrigued by Davar's choice of 43 numbers.
|
|
|
|
|
|
#21 |
|
"Ben"
Feb 2007
7·503 Posts |
|
|
|
|
|
|
#22 |
|
"Lucan"
Dec 2006
England
2·3·13·83 Posts |
|
|
|
|