From 37bbc53bf31d99c2ca0d369ef270896338615c13 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Fri, 13 Apr 2018 07:16:55 +0300 Subject: [PATCH] Add selection sort. --- src/algorithms/sorting/bubble-sort/README.md | 2 ++ src/algorithms/sorting/selection-sort/README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/algorithms/sorting/bubble-sort/README.md b/src/algorithms/sorting/bubble-sort/README.md index 3c004b7e..68f75d4d 100644 --- a/src/algorithms/sorting/bubble-sort/README.md +++ b/src/algorithms/sorting/bubble-sort/README.md @@ -6,3 +6,5 @@ the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. + +![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/c/c8/Bubble-sort-example-300px.gif) diff --git a/src/algorithms/sorting/selection-sort/README.md b/src/algorithms/sorting/selection-sort/README.md index 7b6d8604..e46a8fc6 100644 --- a/src/algorithms/sorting/selection-sort/README.md +++ b/src/algorithms/sorting/selection-sort/README.md @@ -9,6 +9,6 @@ performance advantages over more complicated algorithms in certain situations, particularly where auxiliary memory is limited. -![Selection Sort Visualization](https://upload.wikimedia.org/wikipedia/commons/b/b0/Selection_sort_animation.gif) +![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/b/b0/Selection_sort_animation.gif) -![Selection Sort Visualization](https://upload.wikimedia.org/wikipedia/commons/9/94/Selection-Sort-Animation.gif) +![Algorithm Visualization](https://upload.wikimedia.org/wikipedia/commons/9/94/Selection-Sort-Animation.gif)