Spyke

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

52
davidgroreply
lemmy.world

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.

24

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

24

You have a point. That's obnoxious. I just wanted straight lines. I'll see if I can find another.

13
1rrereply
discuss.tchncs.de

there's a gap on both, just in different places and you can get from one to the other just by sliding. The constraints are elsewhere so wouldn't allow you to twist.

13

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

Nice!

150

I've definitely packed a box like this, but I've never packed boxes like this 😳

12
lemmy.world

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

45
Raltoidreply
lemmy.world

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

31
tiramichureply
sh.itjust.works

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.

145
Rustyreply
lemmy.ca

Now I want to rewatch Requiem for a dream.

5
blackbrookreply
mander.xyz

All this should tell us is that we have a strong irrational preference for right angles being aligned with each other.

8
thelemmy.club

We have an interpreter in our head. It maps and makes sense of the mysterious whatever. Some of it cultural, some biological. It is vast. There might not even be things and space.

1
blackbrookreply
mander.xyz

Well yes, and what it means for "there to be things" is a whole discussion in itself. But the concepts of space and time are rather deep and fundamental (to our mental models regardless of how or if that maps to objective reality). The preference for right angles is much less fundamental and we can see past and get over it.

2

My point is, when we study our preference for right angles, what we're studying is the interpreter. It has quirks.

1

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

1
Devadanderreply
lemmy.world

Any other configurations results in a larger enclosed square. This is the most optimal way to pack 17 squares that we’ve found

21
FelixCressreply
lemmy.world

Thank you, that's very helpful - unlike cretins downvoting me for asking a question.

Upvoted.

-6
lemmy.blahaj.zone

That's because when you just type "source?" and nothing else people perceive it as you challenging/denying the claim in a slightly hostile manner

8

Thankfully the perceived hostility was then dispelled with a followup comment calling people cretins.

...wait.

11

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.

12

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.

7
lemmy.ca

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

21
lemmy.world

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).

37

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)

1
lemmy.world

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.

16
programming.dev

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.

10

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.

14

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

2

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.

3
curiousaurreply
reddthat.com

Did you comment this because you think the people here are stupid?

-7

Bro, the people here, like the people everywhere, ARE stupid.

It's always better to be explicit. I'm one of the stupid people who learned some things reading the comments here and I've got a doctoral degree in aero astro engineering.

6

Do you know how inspiring documentaries describe maths are everywhere, telling us about the golden ratio in art and animal shells, and pi, and perfect circles and Euler's number and natural growth, etc? Well, this, I can see it really happening in the world.

15

Is this confirmed? Like yea the picture looks legit, but anybody do this with physical blocks or at least something other than ms paint?

9

It is confirmed. I don't understand it very well, but I think this video is pretty decent at explaining it.

https://youtu.be/RQH5HBkVtgM

The proof is done with raw numbers and geometry so doing it with physical objects would be worse, even the MS paint is a bad way to present it but it's easier on the eyes than just numbers.

Mathematicians would be very excited if you could find a better way to pack them such that they can be bigger.

So it's not like there is no way to improve it. It's just that we haven't found it yet.

9
sh.itjust.works

I feel like the pixalation on the rotated squares is enough to say this picture is not proof.

Again I am not saying they are wrong, just that it would be extremely easy make a picture where it looks like all the squares are all the same size.

1

I was joking about the proof but there's a non-pixelated version in the comments here

2
Lemmisaurreply
lemmy.zip

Say hello to the creation! .-D

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

17
feddit.org

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

6
mEEGalreply
lemmy.world

"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

4

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

1
lemmy.world

To be fair, the large square can not be cleanly divided by the smaller square(s). Seems obvious to most people, but I didn't get it at first.

In other words: The size relation of the squares makes this weird solution the most efficient (yet discovered).

Edit: nvm, I am just an idiot.

3

The outer square is not given or fixed, it is the result of the arrangement inside. You pack the squares as tightly as you can and that then results in an enclosing square of some size. If someone finds a better arrangement the outer square will become smaller

7
endlesstalk.org

Unless I’m wrong, it’s not the most efficient use of space but if you impose the square shape restriction, it is.

3
Lionelreply
endlesstalk.org

My point was that it doesn’t break my brain at all when considering there’s an artificial constraint that affects efficiency and there’s just not going to be a perfect solution for every number of squares when you consider the problem for more than just 17 squares

-1

I love when I have to do research just to understand the question being asked.

Just kidding, I don't really love that.

2
EddoWagtreply
feddit.nl

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

2

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

They should just slow down and breathe.

1

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.

1

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

1