topic badge
CanadaON
Grade 9

11.07 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

9.C2.1

Use coding to demonstrate an understanding of algebraic concepts including variables, parameters, equations, and inequalities.

9.C2.2

Create code by decomposing situations into computational steps in order to represent mathematical concepts and relationships, and to solve problems.

9.C2.3

Read code to predict its outcome, and alter code to adjust constraints, parameters, and outcomes to represent a similar or new mathematical situation.

What is Mathspace

About Mathspace