The deterministic policy UCB1 of Auer, Cesa-Bianchi and Fischer (2002), figure 1: play each machine once, then always play the machine maximizing \(\bar{x}_j + \sqrt{2 \ln n / n_j}\) where \(\bar{x}_j\) is the average reward obtained from machine j, \(n_j\) its play count so far and n the overall number of plays done so far. The policy is deterministic given the observed rewards, so it is run against a caller-supplied (T, K) table whose row t holds the reward each machine would pay at play t. Rewards have support 0 to 1 in the source; Theorem 1 gives the logarithmic regret bound. Initialization plays machines in index order; ties in the index break to the lowest machine.
Value
List with estimate (0-based machine with the highest
final average reward), actions (0-based machine per play),
rewards, means, counts, index (final
UCB index with n = T), total_reward, method.
