We present an algorithm based on the Optimism in the Face of Uncertainty (OFU) principle which is able to learn Reinforcement Learning (RL) modeled by Markov decision process (MDP) with finite state-action space efficiently. By evaluating the state-pair difference of the poptimal bias function h* , the proposed algorithm 1 achieves a regret bound of for MDP with S states and A actions, in the case that an upper bound H on the span of h* , i.e., sp(h*) is known. This result outperforms the best p previous regret bounds [Bartlett and Tewari, 2009]p by a factor of . Furthermore, this regret bound matches the lower bound of [Jaksch et al., 2010] up to a logarithmicpfactor. As a consequence, we show that there is a near optimal regret bound of for MDPs with a finite diameter D compared to the lower bound of [Jaksch et al., 2010].