![]() |
October 2016
[URL="http://www.research.ibm.com/haifa/ponderthis/challenges/October2016.html"]Ponder This, October 2016[/URL]
|
[QUOTE][B]Message to the solvers:[/B] Due to a technical limitation, solvers for October's challenge will only be published at the end of the month.[/QUOTE]
Yet there are already [B]60[/B] names on the page on October 2nd.:smile: |
What a particularly uninteresting problem - ten lines of Pari code to munge through it in a few hours (and it can be a few minutes if you're willing to accept prior knowledge of the answer). It makes you wonder whether the setter was unaware of how big the libraries have grown now and expected people to write the calculate-pi function too.
(I think you can get by with 1200 digit precision, which is really not that much, and it takes under 40 minutes) |
Boy, I feel even a bit glad that I forgot to look up this one...
For the first time in a few years, I think I could get to "meta-solve" the category "solve 10 last problems" in Project Euler. I have one left, but it's tough! [URL="https://projecteuler.net/problem=566"]PE566[/URL]... ________________________ EDIT: The answers for up to 8-digits strings are [SPOILER]L=2 38s with 35 L=3 301s with 459 L=4 818s with 1384 L=5 sikrit with XXXXX L=6 18032s with 029095 L=7 34090s with 1718077 L=8 324724s with 39668259[/SPOILER] |
[QUOTE=fivemack;444069]It makes you wonder whether the setter was unaware of how big the libraries have grown now [/QUOTE]
I don't think that. There are easier problems, this was one such a problem. |
For L=9, the answer is [SPOILER]941873747 with a bit over 2mega-seconds (557:22:48)[/SPOILER]
For L=10, the answer is [SPOILER]2087746140 using 5645117s[/SPOILER] |
I agree with Tom and Serge, this problem is totally uninteresting. Even without arbitrary precision math, one could get the "strings" from anywhere on the web (wolfram, etc) and do simple string processing.
|
For L=11: [SPOILER]17511073s with 38898554239, computed this in 16min using only PARI-Gp.[/SPOILER]
|
When I was 15, I wrote programs that computed pi, e, and M to a 100,000 digits (iirc), and my father ran them at the RFNC "super-computer" (which was [URL="http://www.mailcom.com/besm6/"]BESM-6[/URL] and Elbrus), so this problem did get me to feel nostalgic for a split minute. The programs computed constants from scratch using school division and multiplication and were in Fortran and Algol-68 if memory serves.
|
If you like to compute these constants then see (for example): [url]http://www.spoj.com/problems/PIVAL/[/url] . On spoj you can find the other two constants challenge problem. Note that these has strict code size limit=4096 bytes. And you can find also a challenge for golden ratio, but with different scoring system.
Returning to the original problem: For L=12:[SPOILER] 173108889 sec;string=027143247568[/SPOILER] For L=13:[SPOILER] 396336569 sec;string=6766970531749 This time not used Pari-Gp.[/SPOILER] For L=14 I've run out of memory. |
[url]https://www.research.ibm.com/haifa/ponderthis/solutions/October2016.html[/url]
|
| All times are UTC. The time now is 02:47. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.