Author's Personal Copy Theoretical Computer Science Pure Exploration in Finitely-armed and Continuous-armed Bandits