Winner Per Rutquist (PPath IV)
by Chandrashekar MS
Status: Passed Results: pass CPU Time: 7.33 Score: 195.0 Submitted at: 2003-11-06 12:54:09 UTC Scored at: 2003-11-06 20:35:42 UTC
Current Rank: 76th Based on: probably not the shortest (diff)
w = max(a(:,1),inf); p={1}; q=1; while q r={}; s=[]; for i=find(q) y=p{i}; z=y(end); g=q(i); if g<w(z) w(z)=g; f{z}=y; end for j=find(a(z,:)) if ~any(j==y) r=[r {[y j]}]; s=[s g+norm(b(z,:)-b(j,:))]; end end end p=r; q=s; end [i j]=max(w); c=f{j};