[algogeeks] Re: arc length

2008-01-07 Thread hc busy
Now it's harder. For arbitrary image, you'll have to identify where the circle is. But Jame's answer seems fine if the ONLY thing on the picture is the circle and the two segments. just look for the left most intersection and the right most intersection then follow the line. On Jan 4, 5:15 pm,

[algogeeks] Re: Dynamic Programming Algorithm for swim relay team

2008-01-07 Thread hc busy
Well, actually that only solves for when the # of players and events are same, what if there're more players than events? The recursion you describe has exponential growth rate. f(c) for some set of P's can't really be cached, because the number of possible c's is just are huge as exponential.