Photo AI
Last Updated Sep 26, 2025
Revision notes with simplified explanations to understand Standard Sorting Algorithms quickly and effectively.
298+ students studying
Sorting algorithms are used to arrange the elements of a list in a specific order, usually ascending or descending. The three standard sorting algorithms you need to know are Bubble Sort, Merge Sort, and Insertion Sort.
Bubble Sort compares adjacent items in the list and swaps them if they are in the wrong order. This process continues through the list until all the items are sorted.
In the image below, the list is gradually sorted as adjacent items are compared and swapped when necessary. Blue indicates items being compared, and red shows the final sorted item.
Starting on the left, the pairs of items are compared and swapped if needed (in blue). We then move to the next pair and repeat until we get to the end of the list.
This is the first pass. The largest item will be at the end of the list after the first pass.
Red indicates the item is sorted.
This is repeated until all items are in order.
Merge Sort is a divide-and-conquer algorithm that splits a list into smaller sub-lists until each sub-list contains a single item. It then merges the sub-lists back together in order.
The image below shows how the list is split into sub-lists and then merged in order until the entire list is sorted.
The list is split in half and this is repeated until you have sub-lists with only 1 item. The pairs of sub-lists are then merged together in order.
This is repeated until they are all merged in order
Insertion Sort builds the sorted list one item at a time by repeatedly taking the next unsorted item and inserting it into the correct position.
In the image, each red item is inserted into its correct position within the grey sorted portion of the list.
Each item is taken in turn starting from the left. The red item is taken and inserted into the correct position on the left side of the list.
You have 2 lists:
Bubble Sort | Merge Sort | Insertion Sort |
---|---|---|
Compares pairs of items and swaps if needed. | Divides list into smaller sub-lists, then merges in order. | Inserts each item into its correct place. |
Inefficient for large lists. | Efficient for large lists. | More efficient than Bubble Sort for small, nearly sorted lists. |
Simple but slow. | Requires extra memory. | Uses less memory than Merge Sort. |
Suitable for small, unsorted lists. | Best for large datasets. | Best for small, nearly sorted lists. |
Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!
40 flashcards
Flashcards on Standard Sorting Algorithms
Revise key concepts with interactive flashcards.
Try Computer Science Flashcards4 quizzes
Quizzes on Standard Sorting Algorithms
Test your knowledge with fun and engaging quizzes.
Try Computer Science Quizzes3 questions
Exam questions on Standard Sorting Algorithms
Boost your confidence with real exam questions.
Try Computer Science Questions3 exams created
Exam Builder on Standard Sorting Algorithms
Create custom exams across topics for better practice!
Try Computer Science exam builder13 papers
Past Papers on Standard Sorting Algorithms
Practice past papers to reinforce exam experience.
Try Computer Science Past PapersDiscover More Revision Notes Related to Standard Sorting Algorithms to Deepen Your Understanding and Improve Your Mastery
96%
114 rated
Computational Thinking, Searching & Sorting Algorithms
Principles of Computational Thinking
383+ studying
189KViews96%
114 rated
Computational Thinking, Searching & Sorting Algorithms
Standard Searching Algorithms
330+ studying
184KViewsJoin 500,000+ GCSE students using SimpleStudy...
Join Thousands of GCSE Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!
Report Improved Results
Recommend to friends
Students Supported
Questions answered