A solution to The Onion problem of J. Kenji Lopez-Alt (2021)
medium.com
medium.com
I have slides that detail the problem setup and the mathematics, as well as a consideration of three-dimensional onions, here: https://drspoulsen.github.io/Onion_Marp/index.html
I have submitted a formal write-up of the details of the problem and the solution to a recreational mathematics journal.
I'm also happy to answer any questions about this!
Your solution seems to assume that all cuts need to be directed towards a single point, but doesn't it seem likely that an even more optimal solution increases h (depth of cut target) as the cuts move outward? Or did I miss a reason that's not the case?
"So, the best depth for an onion with ten layers would be somewhere between 0 and 0.5573066. I have not investigated this in depth, but this seems like a fun next step."
You are suggesting something even more advanced. :)
If you're still checking, I have a semi-related question:
You're solving the problem for a circle in a plane (actually, a semicircle in a plane), and the reduction in dimensions is related to something that has bothered me.
I can easily segment a circle into a bunch of identical arcs (say, by making each arc 3 degrees long and getting 120 identical copies). Polar coordinates are great for this.
But spherical coordinates are terrible for accomplishing the same thing on a sphere, and my understanding is that the analogous effect - tiling the surface of a sphere with a single shape - can't be achieved?
What motivated me to thinking about this was the idea of a coordinate system that would allow every "square" on a map to be the same as the other squares, regardless of how much distortion there might be between the shape of the region on the spherical surface and the shape of the same region as a square on this fancy map. But it also seems relevant to the question of how well your two-dimensional analogue to the onion problem answers the original three-dimensional question. (I'm writing this comment in the middle of reading your article, so I don't know if the 3D solution is ultimately addressed.)
I'd be happy for any comments you might have related to this.
Can someone explain to me why a half sphere (the shape of half an onion) can be modeled as a half-disk in this problem? Why would we expect the solutions to be the same? If you think about the outermost cross-sections at the ends of the onion (closest to the heel and tip of the knife), as you get closer and closer to the ends, you approach cutting these cross-sections more vertically. I'd expect that you'd have to make the center cross-section a bit shallower to "make up" for the fact that the outsides are being cut vertically. Idk, either way I think declaring this the true "Onion constant" is probably wrong.
I'm lazy and cut my onions perpendicularly through halves, and don't try a radial cut for uniformity.
The question I have is not about modeling an imperfect object as a perfect abstraction, it's about modeling a 3D object as a 2d object, and assuming that the optimization still holds. I think it's pretty plainly clear that it doesn't. Think about some cross-section of the onion that's closer to you and smaller than the center cross-section. Let's say it's of radius 0.25 instead of 1. The slices you take of it will be much more vertical than the center slice. This changes things. My intuition tells me it means the optimal solution is shallower than the solution found here, since you'd want the "average" cross-section to follow this constant.
My intuition says that as long as you could get to the desired 3D shape from revolving the 2D shape around an axis, essentially integrating the area into a volume, the results will be valid or equivalent.
I don’t think that’s the entire story, there are probably other ways to simplify 3D shapes. And yes, onions will have non constant variations (or ones that don’t cancel out to 0) along the sweep which is what actually invalidates the real world application.
At the end of the day a straight cut is limiting. The next step would be to design the perfect onion dicing knife.
As is beautifully illustrated on slide 50, the biological center is generally not particularly close to the geometrical center, and this introduces huge distortions in slices that cut close to the biological center.* A single layer of the onion can run parallel to the knife cut for quite some distance.
* The slides also observe that in reality, before chopping an onion, you cut off the top and bottom. This same phenomenon explains why you have to do that; a vertical cut through the top or bottom end of the onion would just give you one huge piece. (You also need to get rid of the roots on the bottom and the sprouts on the top, but even if you didn't, you'd have to cut off the top and the bottom because they curve the wrong way.)
Further, as noted elsewhere the outer layers are thicker in a real onion, so we need to reformulate to take this into account.
The other obvious simple improvement I can think of would be to use radial cuts in both directions. Each direction with the its own optimized floating center point of course. Reformulations would need to take this into account - although the end result would be quite close, and likely well within the margin of error for almost any human being aiming at an imagined floating center point below a cutting board :).
> The insight that leads to a solution comes from the Jacobian.
It's not a unform half disk. It has more weight away from the Y axis.
You can imagine it's painted with watercolors and you want to collect the same ammount of ink.
In an uniform disk you have
xx
xxxx
xxxx
xxxxxx
xxxxxx
xxxxxx
But in the weighted disk of the article the top and bottom are darker and the center lighter ..
x..x
x..x
x..x
Xx..xX
Xx..xX
Xx..xX
but there are no strips like in my ASCII art, the shade changes slowly.One of my favorite hacks for Ceasar Salad: Take a bag of packaged croutons, put it flat on the table, and crush it with the bottom of a pan. Repeatedly. Until you get a mix of various sized crouton chunks, gravel, and dust. Apply to salad.
I ate a Ceasar this way in some fancy restaurant and I've been making it that way ever since.
At normal restaurants, you can use the two-plate method to approximate the effect of pan-smashing croutons.
That being said, most of Ragusea's takes haven't aged all that well, some by his own admission.
Grating the Gordian knot, if you will.
https://www.youtube.com/watch?v=UBj9H6z6Uxw
"Perfection is lots of little things done well."
For garlic, I prefer crushing them for many recipes. This creates much rougher outlines that blend better into the food and crisp nicely when fried.
Not very well. There are some snippets:
"to keep the pieces as similar as possible"
"The Jacobian r dr dθ gives a measure of how big the infinitely small pieces are relative to each other"
"The variance is a good measure of the uniformity of the pieces."
the problem is that you want to cut up an onion in such a way as to minimize variation in the size and shape of the cut-up pieces
usually, so that the pieces will cook evenly
I don't do much with my food processor anymore besides grating cheese; even biscuit dough I'll do with a box grater at this point, just to avoid having to clean out the food processor.
If you have to clean things by hand, I'd take the awkward inside of a smooth plastic cylinder over a grater any day.
It's not impossible to clean and worth it when making larger amounts but definitely more of a hassle than a knife, even with a dish washer.
I agree that cleaning the food processor is more of a pain than cleaning the knife. On the other hand, using it is far less of a pain than using the knife (especially in cases like this where you're trying to get even, small pieces). So you're really trading off one pain for another. It's not clear to me that either option is the obvious winner or loser here.
It's more of a geometry thought experiment than a practical epicurean "problem".
NB: maybe stick a hotdog in one of the fingers to test it first.
Two things to prevent injuries: a) never put any force if the material resists b) do it slowly.
Another very useful thing is an inexpensive jeweler's loupe so you can actually diagnose issues like not having removed the burr.
I've watched a lot of shows about the tools used for building log cabins in the pioneer days. I don't even know the names of them, but the tool for taking the bark off the tree by pulling the knife to you as you sit on the log is crazy. Also, the one where you straddle the log and swing the blade towards you between your legs is right up there too. Yet, I can't think of any way of making them better without using power tools.
The drawknife is the safer of the two by far. It’s fairly hard to cut yourself when your whole body is moving the same direction. Similar to using a paring knife in your palm facing your thumb.
The adz however you just have to have good aim or pay the consequences!
All because we want to chew less. (I suppose nice texture too)
IME kitchen knife injuries are just not common or severe enough to warrant something like that.
technique and a sharp knife enable the horizontal cut second to be vastly superior to doing it first.
Don't get me wrong, I'm sure there's a reason everyone is doing it this way, because it's kind of clearly more annoying than the way I'm doing it?
(I'm just nerding out on this).
the vertical cuts do not significantly the internal structure of the onion as each individual cut I make does not entirely sever the connection between the thin vertical slices I'm making. This means that I can do a lot of these, and not worry about harming the overall structural integrity. Then I make a single horizontal cut which does harm the overall structural integrity. This is not intrinsic to the horizontal cut itself, but the fact that I have both horizontal and vertical cuts.
If I start with the horizontal cut, again I do not signficantly harm the structural integrity of the onion. However, each subsequent vertical cut I make is now going to individually compromise the integrity of the onion.
With a sufficiently sharp knife, the single horizontal cut at the end does not really pose a significant danger overall.
This all being said I almost never do the horizontal cut out of pure laziness, and instead prefer to just do angled vertical cuts analogous to the video. They're never perfect but fine enough for me...
[1] https://www.youtube.com/watch?v=QjZ1LFqNWRM&list=PLnujfCpADf...
Does it matter? I can't remember cooking anything where it would have (though: I do want uniform dice for tacos).
Wife walks into kitchen with 3447 cut onions in piles: "What are you doing?!" This guy: "I just cannot get these onions cut to a point 55.73066% below the origin! The best I have achieved is only 2 significant digits of accuracy." Wife, mumbling: "Maybe that's why Kenji said: 60%..."
[1] https://theonion.com/kenji-lopez-alt-returns-from-beef-dimen...
ontopic edit: I am interested in an optimal onion cutting technique, while I'm happy with mine, the upside-down banana teaches that there's always a few ways to approach and learn something.
You could also hire two interns to do it layer by layer, call it the consultant‘s solution.
Then, when you present your solution to the client, you find out there was a third, unspoken requirement: that it should involve as little cleanup as possible, which the blender also doesn't satisfy. The user researcher was on vacation, and you didn't find out about this before beginning design. Damn!
The blender solution turns out to be overoptimized on a single requirement at the expense of the others.
Anecdotally I've prepared caramelized onions both ways, chopped with a knife and using a food processor and I've never noticed a difference. Onions have to release most of their water before they can begin caramelizing anyway so if anything, wouldn't that speed up the process?
Food processor might be better, but still won't be even.
Source: I cook onions a lot, and am lazy. This article is great!
Food processor might be more what you're thinking about but it's more so for dice or mince. You won't ever really get an even chop out of a processor.