• GenderNeutralBro@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      17
      ·
      7 days ago

      It’s not necessarily the most efficient, but it’s the best guess we have. This is largely done by trial and error. There is no hard proof or surefire way to calculate optimal arrangements; this is just the best that anyone’s come up with so far.

      It’s sort of like chess. Using computers, we can analyze moves and games at a very advanced level, but we still haven’t “solved” chess, and we can’t determine whether a game or move is perfect in general. There’s no formula to solve it without exhaustively searching through every possible move, which would take more time than the universe has existed, even with our most powerful computers.

      Perhaps someday, someone will figure out a way to prove this mathematically.

        • exasperation@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          11
          ·
          7 days ago

          And the solutions we have for 5 or 10 appear elegant: perfect 45° angles, symmetry in the packed arrangement.

          5 and 10 are interesting because they are one larger than a square number (2^2 and 3^2 respectively). So one might naively assume that the same category of solution could fit 4^2 + 1, where you just take the extra square and try to fit it in a vertical gap and a horizontal gap of exactly the right size to fit a square rotated 45°.

          But no, 17 is 4^2 + 1 and this ugly abomination is proven to be more efficient.

    • red_bull_of_juarez@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      11
      ·
      7 days ago

      It crams the most boxes into the given square. If you take the seven angled boxes out and put them back in an orderly fashion, I think you can fit six of them. The last one won’t fit. If you angle them, this is apparently the best solution.

      What I wonder is if this has any practical applications.

    • a_party_german [comrade/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      7 days ago

      It’s a problem about minimizing the side length of the outer rectangle in order to fit rectangles of side length 1 into it.

      It’s somehow the most efficient way for 17 rectangles because math.

      These are the solutions for the numbers next to 17: