The underlined word remedy in Paragraph 1 is closest in meaning to __________.
A. avoid
B. accept
C. improve
D. consider
由第一段最后两句可知
第1题:
A. see
B. saw
C. avoided
D. avoid
第2题:
Every vessel which is directed by these Rules to keep out of the way of another vessel shall, if the circumstances of the case admit, avoid ______.
A.crossing ahead of the other
B.crossing astern of the other
C.passing port to port
D.passing starboard to starboard
第3题:
第4题:
最小生成树
A.Prim算法:
procedure prim(v0:integer);
var
lowcost,closest:array[1..maxn] of integer;
i,j,k,min:integer;
begin
for i:=1 to n do begin
lowcost[i]:=cost[v0,i];
closest[i]:=v0;
end;
for i:=1 to n-1 do begin
{寻找离生成树最近的未加入顶点k}
min:=maxlongint;
for j:=1 to n do
if (lowcost[j]<min) and (lowcost[j]<>0) then begin
min:=lowcost[j];
k:=j;
end;
lowcost[k]:=0; {将顶点k加入生成树}
{生成树中增加一条新的边k到closest[k]}
{修正各点的lowcost和closest值}
for j:=1 to n do
if cost[k,j]<lwocost[j] then begin
lowcost[j]:=cost[k,j];
closest[j]:=k;
end;
end;
end;{prim}
第5题:
第6题: