Question 10106 –
February 13, 2024Question 10684 –
February 13, 2024Question 10767 –
Given the following algorithm for sorting an array X of N numbers:
SUBROUTINE SORT(X,N) IF(N < 2) RETURN FOR(i=2 TO N INCREMENT BY 1) FOR(j=1 TO i INCREMENT BY 1) IF (X[i] > X[j]) CONTINUE TEMP X[i] X[i] = X[j] X[j] = TEMP END FOR END FOR END SUBROUTINE
A good approximation of Halstead’s estimated program length is
Correct Answer: D
20
50
80
110
Subscribe
Login
0 Comments