How many steps are required to arrange 10 numbers in ascending order by using Bubble sort?
Answers
Answered by
0
Answer:
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
Answered by
0
Answer:
If the given array has to be sorted in ascending order, then bubble sort will start by comparing the first element of the array with the second element, if the first element is greater than the second element, it will swap both the elements, and then move on to compare the second and the third element, and so on.
Similar questions
English,
17 days ago
Math,
17 days ago
Social Sciences,
17 days ago
English,
9 months ago
Physics,
9 months ago