Respuesta :
Answer:
3 2 5 6 4 1
2 3 5 4 1 6
2 3 4 1 5 6
2 3 1 4 5 6
2 1 3 4 5 6
1 2 3 4 5 6
Explanation:
After each iteration, one more element at the end of the list is at its final position.
The bubble sort of the unsorted list after one iteration each is:
- 3 2 5 6 4 1
- 2 3 5 4 1 6
- 2 3 4 1 5 6
- 2 3 1 4 5 6
What is a Bubble Sort?
This refers to the simple sort algorithm that makes a sweep through a list to properly sort elements that are in improper order and loops until the list is sorted.
Hence, because one iteration is needed, there would be a new element added until the end of the list when they are all in their final position and no commas are used.
The complete answer is:
- 5. 2 1 3 4 5 6
- 6. 1 2 3 4 5 6
Read more about bubble sort here:
https://brainly.com/question/14944048
#SPJ2