A herding dog and sheep problem is studied where the agent "dog" is conside
red the control action for moving the agent "sheep" to a fixed location usi
ng the dynamics of their interaction. The problem is solved for the determi
nistic case using dynamic programming. Proofs are provided for the correctn
ess of the algorithms. The algorithm is analyzed for its complexity. A soft
ware package developed for experimentation is described.