Bubble Sort
-
Bubble sortAlgoDS/Algorithm 2020. 1. 17. 17:34
1. Overview Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. It's one of the Greedy Algorithms. 2. Description 2.1 Procedure Step 1: Starting with the first element(index = 0), compare the current element with the next element of the array. Step 2: If the current element is greater than the next element of the a..