Numerical computation and analysis related to optimal transport theory