The pseudocode given represents bubble sort.
In bubble sort, the algorithm repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. This process is repeated until no swaps are needed, indicating that the list is sorted. The pseudocode reflects this behavior by iterating through the list and swapping adjacent elements when the first is greater than the second.
So the correct answer is:
bubble sort.