Question 20 Bubble Sort Insertion Sort O N Average Performance Neither Preferrable True Fa Q37231954

Question 20

  1. Bubble Sort and Insertion Sort are both O(n) so on average theyboth have the same performance. Neither is preferrable.

    True

    False


Answer


False

Insertion sort we will have less comparisons and swaps compareto bubble sort so Insertion sort is preferable

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.