this post was submitted on 17 Jan 2026
820 points (99.4% liked)

Programmer Humor

28517 readers
1140 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] howrar@lemmy.ca 15 points 1 day ago

What you want is a distribution-aware contextual binary search. With whatever information you have (appearance, personality, vocabulary, etc), you can come up with a probability distribution in the space of possible ages and start your guess with the value at the 50th percentile. Then depending on whether the true age is higher or lower, your next guess will be either the 25th or 75th percentile. Rinse and repeat.

In reality, the way most people intuitively do agree guessing is already an approximation of this procedure.