GATE 2026 Data Science and Artificial Intelligence question: Consider the problem of sorting the given array in ascending order: P = [1, 2, 3, 5, 4]…
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?
Show answer
This question is in an all-India live mock that is open now. Its answer appears here when the mock closes.