0 results for
ICT
Computing
Responsive image

Sorting Algorithms

Overview
Flight Path
Learning Objectives
0 results forGuest
IDSkill_name
 3.1.4.1 I can understand and explain how the merge sort algorithm works.
 3.1.4.2 I can understand and explain how the bubble sort algorithm works.
 3.1.4.3 I can compare and contrast merge sort and bubble sort algorithms.

🏁 Learning Objective Sorting Algorithms


Lesson Video

Lesson Tasks

  • Watch the Lesson video
    Make notes on your notes sheet.
  • Read the lesson notes
    Make notes on your notes sheet.
  • Complete the learning activities
    Make any notes on your notes sheet.
  • Check the Learning outcomes
    Update your learning objectives

Sorting


Sorting information is another main task of computer systems. The speed at which information can be organised is very important, especially in real time systems where the data has to be sorted very quickly. There are lots of different algorithms specifically designed to sort and order data. Each of these sorting algorithms has its advantages and disadvantages.

Bubble Sort

Compare two elements at time and swap if the 2nd element is larger than the first.

Merge Sort

Break an array into a smaller arrays (arrays of 1 element), then merge the arrays together while sorting them.
break

Comparing the efficiency of algorithms

Some algorithms are more efficient than others in solving the same problem t o compare their efficiency we will lok at how long it takes them to complete a task in their worst case scenario. For example a linear search's worst case will always be the number of items in the list it is searching through.

Big O Notation

As a list can be any size we will refer to the list as being of size (n)

Where n = the number of elements in the list.

This tells us that as the list grows, the time it takes to search through the list will also grow. We write this as O(n) or of the Order of n. This is referred to in computing as 'Big O Notation'

If we were to represent this on a graph with the axis of time and amount of data, it would be a straight line

Meaning that as the number of items increased, the time it took to complete the algorithm would also increase in a linear fashion, or with a ratio of 1:1

Big O Time Complexity Graph

image source bigocheatsheet.com

Learning Outcomes

  • I can understand how a sorting algorithm works.
  • I can understand and explain how the merge sort
    and bubble sort
    algorithm works.
  • I can compare and contrast merge sort and bubble sort
    algorithms.



0 results forGuest
Recent Comments

Teacher Date: 2025-09-28


Guest