this post was submitted on 01 Jul 2025
808 points (98.8% liked)

Science Memes

15637 readers
2628 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] bitjunkie@lemmy.world 16 points 6 days ago (3 children)

It's important to note that while this seems counterintuitive, it's only the most efficient because the small squares' side length is not a perfect divisor of the large square's.

[–] jeff@programming.dev 10 points 6 days ago (2 children)

What? No. The divisibility of the side lengths have nothing to do with this.

The problem is what's the smallest square that can contain 17 identical squares. If there were 16 squares it would be simply 4x4.

[–] Natanael@infosec.pub 14 points 6 days ago

He's saying the same thing. Because it's not an integer power of 2 you can't have a integer square solution. Thus the densest packing puts some boxes diagonally.

[–] bitjunkie@lemmy.world 2 points 5 days ago

And the next perfect divisor one that would hold all the ones in the OP pic would be 5x5. 25 > 17, last I checked.

[–] sga@lemmings.world 3 points 6 days ago

this is regardless of that. The meme explains it a bit wierdly, but we start with 17 squares, and try to find most efficient packing, and outer square's size is determined by this packing.

[–] Admetus@sopuli.xyz 1 points 4 days ago

Initially I thought 4x4 square but this is a square of 4.675 sides. Reasonable. Clever maths though.

[–] SpongyAneurysm@feddit.org 5 points 6 days ago (2 children)

Now, canwe have fractals built from this?

[–] Lemmisaur@lemmy.zip 18 points 6 days ago (1 children)

Say hello to the creation! .-D

(Don't ask about the glowing thing, just don't let it touch your eyes.)

[–] SpongyAneurysm@feddit.org 7 points 6 days ago (1 children)

Good job. It'skinda what I expected, except for the glow. But I won't ask about that.

[–] BowtiesAreCool@lemmy.world 4 points 6 days ago

The glow is actually just a natural biproduct of the sheer power of the sq1ua7re

[–] mEEGal@lemmy.world 4 points 6 days ago (1 children)

"fractal" just means "broken-looking" (as in "fracture"). see Benoît Mandelbrot's original book on this

I assume you mean "nice looking self-replicating pattern", which you can easily obtain by replacing each square by the whole picture over and over again

[–] psud@aussie.zone 1 points 5 days ago

Fractal might have meant that when Mandelbrot coined the name, but that is not what it means now.

[–] NigelFrobisher@aussie.zone 2 points 6 days ago (1 children)

Why doesn’t he just make the square bigger? That’d be more efficient.

[–] EddoWagt@feddit.nl 2 points 6 days ago (2 children)

That's not more efficient because the big square is bigger

[–] NigelFrobisher@aussie.zone 1 points 5 days ago

See, that’s the problem with people nowadays?They want to minimalise everything.

They should just slow down and breathe.

[–] JackbyDev@programming.dev 1 points 5 days ago

I think people have a hard time wrapping their heads around it because it's very rare to have this sort of problem in the real world. Typically you have a specific size container and need to arrange things in it. You usually don't get to pick an arbitrary size container or area for storage. Even if you for something like shipping, you'd probably want to break this into a 4x4 and a separate single box to better fit with other things being shipped as well. Or if it is storage you'd want to be able to see the sides or tops. Plus you have 3 dimensions to work with on the real world.

[–] Serinus@lemmy.world 186 points 1 week ago (2 children)

With straight diagonal lines.

[–] bleistift2@sopuli.xyz 75 points 1 week ago (1 children)
[–] pyre@lemmy.world 51 points 1 week ago

hey it's no longer June, homophobia is back on the menu

[–] davidgro@lemmy.world 25 points 1 week ago (5 children)

Why are there gaps on either side of the upper-right square? Seems like shoving those closed (like the OP image) would allow a little more twist on the center squares.

[–] superb@lemmy.blahaj.zone 25 points 1 week ago

I think this diagram is less accurate. The original picture doesn’t have that gap

load more comments (3 replies)
[–] 9point6@lemmy.world 152 points 1 week ago

Oh so you're telling me that my storage unit is actually incredibly well optimised for space efficiency?

Nice!

[–] janus2@lemmy.zip 69 points 1 week ago (1 children)

if I ever have to pack boxes like this I'm going to throw up

load more comments (1 replies)

If there was a god, I'd imagine them designing the universe and giggling like an idiot when they made math.

[–] Psaldorn@lemmy.world 52 points 1 week ago

You may not like it but this is what peak performance looks like.

[–] fargeol@lemmy.world 45 points 1 week ago (4 children)

Bees seeing this: "OK, screw it, we're making hexagons!"

[–] raltoid@lemmy.world 31 points 1 week ago (2 children)

Fun fact: Bees actually make round holes, the hexagon shape forms as the wax dries.

[–] starman2112@sh.itjust.works 3 points 6 days ago (1 children)
[–] raltoid@lemmy.world 2 points 3 days ago* (last edited 3 days ago)
[–] FiskFisk33@startrek.website 1 points 6 days ago* (last edited 6 days ago)

come on now, let them cook, trust the process

load more comments (3 replies)
[–] Squalia@sh.itjust.works 41 points 1 week ago

Here's a much more elegant solution for 17

[–] LoreleiSankTheShip@lemmy.ml 35 points 1 week ago (12 children)

Can someone explain to me in layman's terms why this is the most efficient way?

[–] tiramichu@sh.itjust.works 145 points 1 week ago* (last edited 1 week ago) (7 children)

These categories of geometric problem are ridiculously difficult to find the definitive perfect solution for, which is exactly why people have been grinding on them for decades, and mathematicians can't say any more than "it's the best one found so far"

For this particular problem the diagram isn't answering "the most efficient way to pack some particular square" but "what is the smallest square that can fit 17 unit-sized (1x1) squares inside it" - with the answer here being 4.675 unit length per side.

Trivially for 16 squares they would fit inside a grid of 4x4 perfectly, with four squares on each row, nice and tidy. To fit just one more square we could size the container up to 5x5, and it would remain nice and tidy, but there is then obviously a lot of empty space, which suggests the solution must be in-between. But if the solution is in between, then some squares must start going slanted to enable the outer square to reduce in size, as it is only by doing this we can utilise unfilled gaps to save space by poking the corners of other squares into them.

So, we can't answer what the optimal solution exactly is, or prove none is better than this, but we can certainly demonstrate that the solution is going to be very ugly and messy.

Another similar (but less ugly) geometric problem is the moving sofa problem which has again seen small iterations over a long period of time.

[–] DominatorX1@thelemmy.club 1 points 6 days ago

For A problem like this. If I was going to do it with an algorithm I would just place shapes at random locations and orientations a trillion times.

It would be much easier with a discreet tile type system of course

[–] DozensOfDonner@mander.xyz 24 points 1 week ago (4 children)

Lol, the ambidextrous sofa. It's a butt plug.

load more comments (4 replies)
load more comments (5 replies)
load more comments (11 replies)
[–] wise_pancake@lemmy.ca 21 points 1 week ago (2 children)

Is this a hard limit we’ve proven or can we still keep trying?

[–] chuckleslord@lemmy.world 37 points 1 week ago (2 children)

We actually haven't found a universal packing algorithm, so it's on a case-by-case basis. This is the best we've found so far for this case (17 squares in a square).

[–] Natanael@infosec.pub 1 points 6 days ago

It's kinda hilarious when the best formula only handles large numbers, not small. You'd think it would be the reverse, but sometimes it just isn't (something about the law of large numbers making it easier to approximate good solution, in many cases)

load more comments (1 replies)
[–] rockerface@lemmy.cafe 32 points 1 week ago

It's the best we've found so far

load more comments
view more: next ›