//Update thuat toan