develop Algorithm for Optimal Decision Making