问题
单项选择题
The sorting method described by the following code is called( ).
FOR i:=1 TO n—1 do
BEGIN
k: =i;
FOR j: =i+1 TO n DO
IF A[j]<A[K]
THEN k:=j;
IF k<>i
THEN BEGIN
x:=A[k];
A[k]: = A[i];
A[i]:=x
END
END;
A) insertion sortB) selection sort C) radix sort D) merge sort
答案
参考答案:D