News for hackers. Stuff that matters.
Re:A solution to The Onion problem of J. Kenji Lopez-Alt by dgacmu on Tuesday November 26, 2024 @04:10PM (#42250100)
This is tremendously fun, thank you!

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?

Re:A solution to The Onion problem of J. Kenji Lopez-Alt by jonahx on Tuesday November 26, 2024 @06:59PM (#42251486)
I think that was just an "arbitrary" constraint of the problem, inspired by the practical constraint of using it to cut an onion?
Re:A solution to The Onion problem of J. Kenji Lopez-Alt by actionfromafar on Wednesday November 27, 2024 @07:19AM (#42255479)
Hey now, even the practical application of cutting a typical 10 layer onion was left as en excercise for the reader. Quoth:

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

Re:A solution to The Onion problem of J. Kenji Lopez-Alt by drspoulsen on Thursday November 28, 2024 @09:12AM (#42265385)
Another onion enthusiast has sent me python code that considers finite-layer onions, and that code will be featured in the upcoming journal article.
Re:A solution to The Onion problem of J. Kenji Lopez-Alt by drspoulsen on Thursday November 28, 2024 @09:11AM (#42265378)
The two cases this solution generalizes are the vertical and radial cut method, which both aim towards a single point (you can think of the vertical method as aiming to a point infinitely far beneath the center of the onion). There may be other more optimal ways (cutting each layer individually for example), but they are not conducive to an ultimately simple strategy.