Question
Which of the following relies on swapping adjacent elements to sort a dataset?(1 point)
Responses
bubble sort
bubble sort
quicksort
quicksort
merge sort
merge sort
selection sort
Responses
bubble sort
bubble sort
quicksort
quicksort
merge sort
merge sort
selection sort
Answers
GPT-4o mini
The sorting algorithm that relies on swapping adjacent elements to sort a dataset is **bubble sort**.