in reply to Proving Veritasiums riddle using Perl

Proving Veritasiums riddle using Perl

It's not Veritasium's. The 100 prisoners problem was first proposed by Anna Gál and Peter Bro Miltersen in 2003.

  • Comment on Re: Proving the 100 Prisoners Problem using Perl

Replies are listed 'Best First'.
Re^2: Demo of the 100 Prisoners Problem using Perl
by LanX (Saint) on May 04, 2025 at 10:32 UTC
    Neither is it "proving", it's a demonstration or simulation.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

      Yes, my phrasing was a bit poor. In my defense, i never went to Uni, so never received formal scientific training. I'm just a simple software developer.

      To be fair, in my usual use cases "works correctly to the forth digit after the comma in all cases" fullfills all my usual project requirements (as set by law). So in these circumstances simulating it to that degree is equivalent to "proof that the solution works".

      But yes, i totally agree that there is a big difference between actual mathematical proof and my 1970s-british-automotive-worker "that will do" attitude ;-)

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
      Also check out my sisters artwork and my weekly webcomics
        The approach is legit, since constructing a counterexample is a way to prove a theory is wrong. ¹

        Computational mathematics - the use of computers for mathematics itself - is a hot and controversial topic.

        I have more problems with calling it Veritasium's riddle, though I like the blog.

        But I hope the nature of the solution is clearer now, because the success of large groups of prisoners is coupled. If they are member of the same cycle they either all succeed or all fail.

        Imagine a hypothetical strategy coupling all prisoners, the success rate would be even 50% not only 30%.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        see Wikisyntax for the Monastery

        Update
        ¹) just the opposite isn't true, there are plenty of conjectures which "work" for a while... Till they don't.

        Update

        coincidentally I just watched a video from the same channel explaining to the end how hard it is to find a counterexample for a wrong conjecture: The Simplest Math Problem No One Can Solve - Collatz Conjecture

        see also the Pólya conjecture

        But yes, i totally agree that there is a big difference between actual mathematical proof and my 1970s-british-automotive-worker "that will do" attitude ;-)

        Another motorhead? Whenever I get frustrated at work I threaten to return to my old job fixing lawnmowers. :)

        90% of every Perl application is already written.
        dragonchild