... tam:=tam +1;
if tam> ;1 then
L_inc_flow(L_G1)
else
stop:=true;
end;
f:=0;
for y:= 0 to L_G1.sodinh -1 do
begin
L_giatri(L_G1,0,y,t1,a1,b1);
f:=f+b1;
end;
for y:=0 to L_G1.Socanh -1 do
... xet;
16 4
}
VAR x,y:integer;
ok:boolean;
a1,b1,k1,l1:real;
t,t1,i:integer;
BEGIN
for i:=0 to L_G1.sodinh -1 do
L_p1[i]: = -1 ;
L_p1[0]:=0;
L_nhan[0]:=true;
L_e[0]:=vocung;...
...
ok:boolean;
a1,b1,k1,l1:real;
t,t1,i:integer;
BEGIN
for i:=0 to L_G1.sodinh -1 do
L_p1[i]: = -1 ;
L_p1[0]:=0;
L_nhan[0]:=true;
L_e[0]:=vocung;
L_v:=[0] ; L_v1:=[0];
L_pathfound:=true; ... (x<=L_G1.sodinh -1 ) and (ok=true) do
Begin
If x in L_v then ok:=false
Else
x:=x +1;
End;
L_v:=L_v-[x];
For y:=0 to L_G1.sodinh -1 do
If L_p1[y] = -1 then
Begin...