Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
Insertion sort is a simple yet effective algorithm for sorting a list by iteratively building a sorted sequence. The method involves taking one element at a time from the unsorted list and finding its correct position within the sorted section. The process involves comparing and inserting elements into their rightful place, making insertion sort efficient in cases where the list is partially sorted.
References
chapter 17.pdfClass Notes
Memorization
What we have learnt
Final Test
Revision Tests
Term: Insertion Sort
Definition: An algorithm that sorts a list by picking elements from the unsorted section and inserting them into the sorted section, maintaining the order.
Term: BestCase Performance
Definition: The scenario in which an algorithm performs the least number of operations, in the case of insertion sort, this occurs when the array is already sorted.
Term: Time Complexity
Definition: A computational complexity that describes the amount of time it takes to run an algorithm as a function of the length of the input.