Guest User

Untitled

a guest
Apr 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Bubble sorting is the simplest sorting algorithm used purely for educational purposes.
  2. Practical application to this algorithm is not present, as it is not effective, especially if it is necessary to sort an array of a large size.
  3. The advantages of sorting a bubble are the ease of implementing the algorithm.
  4.  
  5. The algorithm of sorting by a bubble is reduced to the repetition of passes through the elements of the array being sorted.
  6. Passing through the elements of the array performs an inner loop. For each pass, two adjacent elements are compared, and if the order of the wrong elements is reversed.
  7. The outer loop will work until the array is sorted.
Add Comment
Please, Sign In to add comment