• Projecteuler, the CAKE problem.

    From albert@albert@spenarnc.xs4all.nl to comp.lang.forth on Mon Sep 29 11:23:48 2025
    From Newsgroup: comp.lang.forth

    There is a hard (level 100) problem in projecteuler 566,
    it is an intriguing problem about cutting a cake and flipping
    parts of it. Then it magically returns to the original
    situation where all the frosting is up. The cuts are irrational.
    It is a bit theoretical, because million even billions cuts
    are needed.
    After years I came back to it, and I'm proud to announce that
    it has been solved by a Forth program.

    It has been posed june 2016 and I was the 266th solver.

    Groetjes Albert
    --
    The Chinese government is satisfied with its military superiority over USA.
    The next 5 year plan has as primary goal to advance life expectancy
    over 80 years, like Western Europe.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From minforth@minforth@gmx.net to comp.lang.forth on Tue Sep 30 18:17:01 2025
    From Newsgroup: comp.lang.forth

    Am 29.09.2025 um 11:23 schrieb albert@spenarnc.xs4all.nl:
    There is a hard (level 100) problem in projecteuler 566,
    it is an intriguing problem about cutting a cake and flipping
    parts of it. Then it magically returns to the original
    situation where all the frosting is up. The cuts are irrational.
    It is a bit theoretical, because million even billions cuts
    are needed.
    After years I came back to it, and I'm proud to announce that
    it has been solved by a Forth program.

    It has been posed june 2016 and I was the 266th solver.

    Congratulations!

    I had a brief look at the task, and it seems to me that the challenge
    lies more in the mathematical modelling than in the programming.
    I did not look up solutions in other languages, e.g. Haskell, but the
    fact that Forth can be forged into tools for so many application
    or problem classes speaks for its flexibility.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From albert@albert@spenarnc.xs4all.nl to comp.lang.forth on Wed Oct 1 11:28:23 2025
    From Newsgroup: comp.lang.forth

    In article <mk2e3sFfae5U1@mid.individual.net>,
    minforth <minforth@gmx.net> wrote:
    Am 29.09.2025 um 11:23 schrieb albert@spenarnc.xs4all.nl:
    There is a hard (level 100) problem in projecteuler 566,
    it is an intriguing problem about cutting a cake and flipping
    parts of it. Then it magically returns to the original
    situation where all the frosting is up. The cuts are irrational.
    It is a bit theoretical, because million even billions cuts
    are needed.
    After years I came back to it, and I'm proud to announce that
    it has been solved by a Forth program.

    It has been posed june 2016 and I was the 266th solver.

    Congratulations!

    I had a brief look at the task, and it seems to me that the challenge
    lies more in the mathematical modelling than in the programming.
    I did not look up solutions in other languages, e.g. Haskell, but the
    fact that Forth can be forged into tools for so many application
    or problem classes speaks for its flexibility.

    It is demanding as computation resources are concerned.
    8 of the fastest 10 solvers use C++ or Java.
    Only one of the 100 fastest solvers used Haskell, from China.
    Groetjes Albert
    --
    The Chinese government is satisfied with its military superiority over USA.
    The next 5 year plan has as primary goal to advance life expectancy
    over 80 years, like Western Europe.
    --- Synchronet 3.21a-Linux NewsLink 1.2