Bubble sort - : Bubble is a sorting technique in data structure. In bubble sort, each element is compare with its adjacency element. If the first element is longer than the second one then the position of the element are interchanged otherwise it is not changed.
Example - : 5,2,3,4,6
Step1. 5>2
2,5,3,4,6
Step2. 5>3
2,3,5,4,6
Step3. 5>4
2, 3,4,5,6
Now sorted data is=2,3,4,5,6.