Respuesta :
The list after the first iteration of bubble sort will be:
- 3 2 5 6 4 1
What is a Bubble Sort?
It is a type of straightforward sorting algorithm where each pair of adjacent elements in this comparison-based sorting algorithm is compared to each other, and if they are not in the correct order, the elements are swapped.
What will the list be after the second iteration of bubble sort?
2 3 5 4 1 6
What will the list be after the third iteration of bubble sort?
2 3 4 1 5 6
What will the list be after the Fourth iteration of bubble sort?
2 3 1 4 5 6
What will the list be after the Fifth iteration of bubble sort?
2 1 3 4 5 6
Learn more about bubble sort:
https://brainly.com/question/13161938?referrer=searchResults
#SPJ1
Full Question:
Perform a bubble sort on the following unsorted list:
3 2 5 6 4 1
In each blank, enter the list after the given iteration. Put one space between each pair of numbers. Do not put commas or any other character in your response besides the numbers and spaces. Do not put a space at the beginning or end of your response.
1. What will the list be after the first iteration of bubble sort?
2. What will the list be after the second iteration of bubble sort?
3. What will the list be after the third iteration of bubble sort?
4. What will the list be after the fourth iteration of bubble sort?
5. What will the list be after the fifth iteration of bubble sort?