update thuat toan