Consider the problem of sorting the given array in ascending order: \(P=[1,2,3,5,4]\) Consider two sorting algorithms Bubble Sort \(\text{(BS)}\) and Insertion Sort \(\text{(IS)}\).
Let \(\text{N1}\) be the total number of comparisons done by \(\text{BS}\) on the elements of \(\text{P}\) and \(\text{N2}\) be the total number of comparisons done by \(\text{IS}\) on the elements of \(\text{P}\). Which of the following options is/are correct?
- A\({N} 1=10, {~N} 2=4\)
- B\({N} 1>{N} 2\)
- C\(\text{IS}\) on \(\text{P}\) will perform only one swap
- DBoth \(\text{BS}\) and \(\text{IS}\) on \(\text{P}\) will make at least one unnecessary comparison (i.e., comparing elements that are already in correct order)