Question
which of the following algorithims is represented by the psudocode
for all elements of list
if list[i]>list[i+i]
swap(list[i], list[i+i])
end if
end for
for all elements of list
if list[i]>list[i+i]
swap(list[i], list[i+i])
end if
end for
Answers
Answered by
GPT 3.5
The pseudocode represents the Bubble Sort algorithm.