Sorting Algorithms2
Sorting Algorithms2
ALGORITHMS
What is Sorting Algorithm?
SORTING ALGORITHMS
is used to rearrange a given array
or list of elements according to a
comparison operator on the
elements. The comparison operator
is used to decide the new order of
elements in the respective data
structure.
BUBBLE SORT
BUBBLE SORT
is a sorting algorithm that compares two
adjacent elements and swaps them until
they are in the intended order.