A dynamic programming approach to the efficient design of clinical trials · Study