This question is related to this ; it was obtained from optimizing the path over a set of points. The situation here is this: the object moves along a selected path containing a list of two-dimensional points. (Perhaps more Ds, but since each rotation is technically 2D, this will be solved for two measurements.) At each point, this object can change its speed with a vector whose maximum length is predefined (assigned to the point). Speed ββat the end of the path does not matter. The question is how to determine the minimum time spent traveling along this path. Is there an efficient algorithm for this task? A greedy algorithm may ultimately cause the object to slow down the scan in case of specially prepared data or even not make the object able to move to the next designated point. The inverse greed algorithm is also erroneous with the same error that it is not always convenient to reach the end at maximum speed.
Example: point vector: {(0,0), (0,1), (1,1), (2,2)} , and the maximum length is {2.0, 2.0, 3.0} . The point moves, for example, at the point (0,sqrt(2)) from p1 to p2, then at (sqrt(2),0) from p2 to p3 and (s,s) at any maximum speed s from p3 to p4. And this may be a suboptimal solution, say, you slow down by 0.01 from p1 to p2, which allows you to accelerate the transition from p2 to p3, and then to another tad in p3-p4, and the possible total time is less than this set of speeds.
language-agnostic algorithm mathematical-optimization
Vesper
source share