update the algorithm 2 : change the constant
update the algorithm 1 : clarify the definition