topic badge
CanadaON
Grade 8

11.10 Sorting algorithms

Interactive practice questions

Use the insertion sort algorithm to arrange these numbers in ascending order.

$8,3,2,1,5,4$8,3,2,1,5,4

Write one step of the insertion sort at a time, separating the numbers in the step with commas.

Easy
2min

We want to use the insertion sort algorithm to manually sort the following set of data and then find the median.

$72,26,63,48,31,55,17$72,26,63,48,31,55,17

Easy
3min

We want to use the insertion sort algorithm to manually sort the following set of data and then find the median.

$864,332,225,777,626,168,493,533$864,332,225,777,626,168,493,533

Easy
4min

We want to use the bucket sort algorithm to manually sort the following set of data and then find the median.

$5,7,9,4,3,6,4,1,2,3,6,7,8,9,5,2,1,5$5,7,9,4,3,6,4,1,2,3,6,7,8,9,5,2,1,5

Easy
2min
Sign up to access Practice Questions
Get full access to our content with a Mathspace account

Outcomes

8.C3.1

Solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves the analysis of data in order to inform and communicate decisions.

8.C3.2

Read and alter existing code involving the analysis of data in order to inform and communicate decisions, and describe how changes to the code affect the outcomes and the efficiency of the code.

What is Mathspace

About Mathspace