• lad
      link
      fedilink
      English
      101 month ago

      Hanoi […] practice problems.

      Like you come to the exam and there’s a 64 piece Tower of Hanoi you need to solve manually to pass the exam

      • JohnEdwa
        link
        fedilink
        21 month ago

        Assuming 1 second per swap, a 64 disk tower of hanoi would take 585 billion years to solve - it has 2^64 -1 swaps.

        • lad
          link
          fedilink
          English
          11 month ago

          And that makes It good enough for an exam

      • @[email protected]
        link
        fedilink
        31 month ago

        Writing kernels for parallel execution with OPENCL gives me flashbacks every time I remember them

      • @xmunk
        link
        21 month ago

        Or even just try to understand pthreads.

      • lad
        link
        fedilink
        English
        11 month ago

        Tis’ not hard, just add some sleeps to make sure other thread reads data before it is destroyed 🌚