this post was submitted on 20 Jan 2024
35 points (97.3% liked)

Comics

571 readers
1 users here now

A community for sharing comics related to programming

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
35
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

Hover Text:

General solutions get you a 50% tip.

:::spoiler Transcript

My Hobby:
Embedding NP-Complete problems in restaurant orders
[A menu is shown.]
Chotchkies Restaurant
Appetizers

  • Mixed Fruit 2.15
  • French Fries 2.75
  • Side Salad 3.35
  • Hot Wings 3.55
  • Mozzarella Sticks 4.20
  • Sampler Plate 5.80

Sandwiches

  • Barbecue 6.55

[Megan, another person, and Cueball are sitting at a table. Cueball is holding the menu as well as a thick book and is ordering from a waiter. Megan is facepalming.]
Cueball: We'd like exactly $15.05 worth of appetizers, please.
Waiter: ...Exactly? Uhh...
Cueball: Here, these papers on the knapsack problem might help you out.
Waiter: Listen, I have six other tables to get to—
Cueball: —As fast as possible, of course. Want something on traveling salesman?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago

You missed the greatest part:
Randall explains [...] that this was due to him using a Perl script with a bug ("You can't compare IEEE floats for equality").