TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Analysis of adversarial binary search game

61 pointsby RafelMri9 months ago

7 comments

patrakov8 months ago
Related to <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41434637">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41434637</a><p>The exact analysis for n=13 (instead of n=100) is presented--or rather, just the answer from the exhaustive search. The answer for n=100 is still unknown.
评论 #41486072 未加载
quuxplusone8 months ago
The punch line of this post is that <i>if</i> Ballmer defines the payouts so that the interviewee receives floor(lg N) dollars for hitting in one guess, <i>then</i> Ballmer&#x27;s expected payout decreases as N increases — with a sharp step upward each time N reaches a power of two.<p>This is... exactly how the floor function is defined to behave!<p>The graphs would be much more enlightening if the artificial step function were removed. Instead of subtracting from floor(lg N), subtract from plain old lg N — or even don&#x27;t subtract from anything at all, and just graph the number of guesses required.
评论 #41500691 未加载
yorwba8 months ago
See also <a href="https:&#x2F;&#x2F;bowaggoner.com&#x2F;blahg&#x2F;2024&#x2F;09-06-adversarial-binary-search&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bowaggoner.com&#x2F;blahg&#x2F;2024&#x2F;09-06-adversarial-binary-s...</a> using the Multiplicative Weight Update algorithm ( <a href="https:&#x2F;&#x2F;www.jeremykun.com&#x2F;2017&#x2F;02&#x2F;27&#x2F;the-reasonable-effectiveness-of-the-multiplicative-weights-update-algorithm&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.jeremykun.com&#x2F;2017&#x2F;02&#x2F;27&#x2F;the-reasonable-effectiv...</a> a recurring feature on HN) to compute an approximate Nash equilibrium up to <i>n</i> = 100.
joshka8 months ago
I don&#x27;t see why this can&#x27;t be solved (approximated) recursively.<p>If I know the EV of 1 and 2 choices, then the 3 number situation is the same as whatever weight I assign to choosing the first number multipled by Ballmer&#x27;s strategy multiplied by the EV of the 1 case when I pick 2, and the 2 case if I pick 1 or 3. Run this as a Counter Factual Regret minimization problem for each value from 3 through 100 with some sort of error threshold and you have a good enough answer.<p>I&#x27;m not 100% sure of that though. Perhaps there&#x27;s a dependency in the two steps that confounds this approach?
jstanley8 months ago
It might be fun to play an iterated version of this game.<p>Also I&#x27;d be keen to see a web ui where you can play against an ai. Not quite sure how the ai would work though. You don&#x27;t necessarily want the ai to play optimally (if the optimal strategy were even known) because the fun is in working out how to exploit the other player&#x27;s flaws.
评论 #41492399 未加载
评论 #41487474 未加载
andrewla8 months ago
My feeling without being rigorous is that something is wrong with this solution.<p>Notably the size 13 case enumerated in the post, choosing 1 as the Chooser will always take 3 guesses (the most possible). Even in an iteration of a mixed strategy the Guesser will never guess 1 in fewer than 3. This is also true for 13.
评论 #41488904 未加载
n4r98 months ago
I wonder how many people failed a Ballmer interview by pointing out that his solution isn&#x27;t quite right.