After each iteration in bubble sort:
A. at least one element is at its sorted position.
B. one less comparison is made in the next iteration.
C. Both (A) & (B) are true.
D. Neither (A) or (B) are true.
Answer:A
After each iteration in bubble sort:
A. at least one element is at its sorted position. B. one less comparison is made in the next iteration. C. Both (A) & (B) are true. D. Neither (A) or (B) are true.