You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an array that we loop thought it and check in every 2 indexes witch is the smaller. When we have found the smaller we are swapping it with the higher and we keep swapping until we have a sorted array
2. Selection Sort
Explained
In Selection Sort we loop though the given array and after we did that we have to find the smallest number in the array when found we swap the places of the list[0] and the place we found our lowest number and we keep gooing on until we have a sorted array
3. Insertion Sort
Explained
Its like we sort card in our hand we have the first one and sorting it starting from the first card. Assigning a key and we start comparing the key to the elements until the element is smaller than the it found. When found we swap it and assign the key to bigger number than the number we have sorted
About
Sorting algorithms project for visualizing and understanding algorithm behavior. 2021