Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 638 Bytes

File metadata and controls

13 lines (9 loc) · 638 Bytes

Bubble Sorting

S. van Vliet (HU University of Applied Sciences)

Description

Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted. The algorithm, which is a comparison sort, is named for the way smaller or larger elements "bubble" to the top of the list.

reference: https://en.wikipedia.org/wiki/Bubble_sort

This notebook covers

  1. Defining the data
  2. Running the data through the algorithm
  3. Explaining the result