Aspire Faculty ID #17012 · Topic: AMU MCA 2022 · Just now
AMU MCA 2022

How many swapping will be required to sort the following list in increasing order using Bubble sort algorithm? $72,\ 12,\ 40,\ 5,\ 3,\ 4$

Solution

Number of swaps in bubble sort = number of inversions. Total inversions = 13.

Previous 10 Questions — AMU MCA 2022

Nearest first

Next 10 Questions — AMU MCA 2022

Ascending by ID
Ask Your Question or Put Your Review.

loading...