Python Forum

Full Version: Sorting methords
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I couldn't understand the difference in working of insertion sort and bubble sort.
Could someone help me with that
Thank you
There are tons of tutorials on bubble sorts and insertions sorts. Dozens of videos. Go take your pick. Fun animations. Sorting articles on Kahn Academy.

Here's a nice series of animations. One of them compares bubble and insertion sorts.
https://www.youtube.com/watch?v=TZRWRjq2CAg
Sorting is a way to rearrange or reorder a data in ascending or descending order. Sometimes we need to sort a data to process it quickly or use it efficiently.

Bubble sort is one of the simplest and easiest sorting algorithms to sort data items stored in a data structure like list.

you can find brief tutorial here : Bubble sort in python
Thank you