Finish 2003-11-13 10:00:00 UTC

PPath

by Per Rutquist

Status: Failed
Results:

Comments
Per Rutquist
06 Nov 2003
Wonder if this'll work...
Please login or create a profile.
Code
d = b*[1;i]
p = ~~b(:,1);
e = p*d'
f = abs(e-e.')
r = d
f(~f) = 1
f(~a) = Inf
h = p'*Inf;
h(1) = 0
for j=2:length(d)
    q=(p*h+f)
    [h, r] = min(q')
end
[x,c]=max(h);
x=h
while(c(1)>1)
  c=[r(c(1)) c]
end


%%%%%%%%%%%
%%%%%%%%%%%
%%%%%%%%%%%
%%%     %%%
%%% :-) %%%
%%%     %%%
%%%%%%%%%%%
%%%%%%%%%%%
%%%%%%%%%%%