 The goal is to minimize D_k(m,p) and to find the optimizing values k and m.
<meaning-changed>  The goal is to minimize D_k(m,p) and to find the optimizing values k and m.
 The goal is to minimize D_k(m,p) , which is called the cost associated to~ m.