Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thanks. Can't we extend this for multiple $q$'s, by having $F(\gamma)= length(\gamma) + \sum inf_{x} |p-q_i|^2$ ? And under what conditions can we differentiate through the infimum?
Right, from a programmer's perspective it's a dynamic programming problem. However, I'm more interested in the <i>formulation </i> of the problem, and trying to extend this to functionals that may not be possibly additive.