Bubble Sort questions

Q49

GATE DA 2026 DASearching and SortingMSQ2 marks

Report a problem with Q49

What is wrong?
Consider the problem of sorting the given array in ascending order:
P = [1, 2, 3, 5, 4]
Consider two sorting algorithms Bubble Sort (BS) and Insertion Sort (IS).
Let N1 be the total number of comparisons done by BS on the elements of P and N2 be the total number of comparisons done by IS on the elements of P.
Which of the following options is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

0/10 correct0 marks

Related topics in Searching and Sorting