some computer algorithm such as Dynamic Programming