Entropy from logits, stable and then streamingCodingCompute the entropy of softmax(logits) for a vector of logits without overflow or underflow. Then the logits come in one by one: keep a fixed amount of state so the exact entropy…
Last asked Jul 2026
Prove an incremental shuffle is uniformCodingA shuffle builds its result one element at a time. Show that every ordering of the elements comes out with equal probability, or find the flaw if it does not.
Last asked Jul 2026
Restart strategy that cuts a solver's expected run timeCodingA model solves math problems, and the time a run needs to succeed follows a known, long-tailed distribution. You may stop a run and restart it at any time. Find a restart policy…
Last asked May 2026
Probability of landing in a range on a dice walkCodingYou start at position 0 on an endless line. Each turn you roll a die with faces 1 to K and move forward that many steps. You win if you finish inside the range mn, mx, and lose…
Last asked Mar 2026
Simulate particles from a point source hitting a screenCodingA point source sits some distance in front of an infinitely tall vertical screen and fires particles toward it. Each particle leaves at a random angle drawn uniformly between -π/2…
Last asked Feb 2026
Fewest guesses in Wordle with green feedback onlyCodingA secret five-letter word must be found, and the only feedback is, for a guess, which positions hold the right letter. Design a guessing strategy that finds the word in as few…