Q. Which is the sorting algorithm in below given steps - 1. procedure X_SORT(n)2. begin3. for i := n - 1 downto 1 do4. for j := 1 to i do5. compare-exchange(aj, aj + 1);6. end X_SORT (Solved)
1. selection sort
2. bubble sort
3. parallel selcetion sort
4. parallel bubble sort
- b. bubble sort