Reveal the Mystery of DPO: The Connection between DPO and RL Algorithms