Live data from Hacker News

Optimal Peanut Butter and Banana Sandwiches

ethanrosenthal.com

11–20 of 110 posts

Re: Optimal Peanut Butter and Banana Sandwiches

#11
I initially assumed the challenge was to fit the entire banana on the bread in a single layer; I am disappointed that problem was not solved, but it seems like it should be a relatively trivial extension of the package provided (produce a packing for [N, M] slices of banana, pick the number of slices which covers the bread without any left over pieces).

(Of course, as someone who does not eat banana sandwiches, I have no idea of such an end is even desirable.)

Re: Optimal Peanut Butter and Banana Sandwiches

#12
> If you were a machine learning model (or my wife), then you would tell me to just cut long rectangular strips along the long axis of the banana, but I’m not a sociopath.

Ignoring that you called your wife a sociopath for the moment... I'm one for peanut butter and pickle sandwiches, personally. I've made some danged optimal ones, too, slicing them lengthwise. Pickles are interesting because you can bend them and make a curved cut with a straight knife, and the slice lays flat. And then your packing problem has an added constraint because the slices are beveled. You need a smaller number of slices, so picking the proper thickness is actually the hardest part. Of course, I eat my mistakes, so the reinforcement phase is rather busted.

Slice 1 in your final packing typifies my complaint with slicing on the round: it will fall out of the sandwich. This is especially true with pickles. Lengthwise slices result in a more structurally resilient sandwich.

OTOH bananas do have an easy mode: smash and spread. If your wife was actually a sociopath, that's probably what she'd do. But maybe just don't badmouth your wife; our industry has a misogyny problem and that's an ugly pattern.

Re: Optimal Peanut Butter and Banana Sandwiches

#15
post #14

Looking at the snapshots in the article, in the middle of all this tech to optimally fit the banana slices, the dude forgot to apply peanut-butter!

Peanut butter is visible in the last picture, which is the only one where he has actually placed the banana slices. I am not sure whether it is best to apply peanut butter to both slices or just one; I would suspect both, but we may not be seeing a finished product.

Re: Optimal Peanut Butter and Banana Sandwiches

#16

I love this post...I also love his wife's answer of cut the banana long ways

Yeah, my grandmother would mash the PB and banana together into a delicious, homogenous mush and then spread that one the bread. Thanks to the magic of imprinting, I believe this is the Correct way to make a PBB, and if you disagree, I'll cut you.

Despite its obvious optimality, the Homogenous Mush approach creates extra dishes. So, as a lazy undergrad, I used the circles method for a long time. Sometime in grad school I had the long-cut epiphany, and tend to do that most of the time now.

(The other downside of the circular method is that they're more likely to try to jump out of the sandwich, since they have less contact area.)

Oh, and one other solution, which is great for long bike rides: Switch out the bread for a flour tortilla, and throw some honey in the mix as well. Fits in an undersaddle bag and beats the hell out of a clif bar.

Re: Optimal Peanut Butter and Banana Sandwiches

#19
> I also take the slices in the image above to represent the major axis of the banana slice ellipse, and assume that the minor axis is 85% the size of the major axis.

I don’t think they’re really that elliptical in practice. Banana slices are nearly circular.

Post reply on HN