Sort ascending. Let be the number of comparisons made by Bubble Sort and by Insertion Sort. Which options are correct?
- (A) ,
- (B)
- (C) IS on P will perform only one swap
- (D) Both BS and IS on P will make at least one unnecessary comparison (comparing elements already in correct order)
Source: GATE DA