That Blue Square Thing

Puzzles

Probably computational thinking sort of stuff. Year 9 for now, but this might end up someplace else.

1 – Number guess

Binary search first – getting practical before coming back to the theory bit.

PDF iconIntro slides – web version without second part

PDF iconIntro slides – full version for teacher to use

PDF iconSlides to use in class

PDF iconScratch program sheet 1 – basic version

PDF iconScratch program sheet 2 – adds guesses in

PDF iconTask sheet

There's a set of instructions to turn this into a program.

Instructions for bin search

PDF iconExtending the binary search

2 – Search algorithms

Come back to binary search and then head into linear search with a program to have the computer guess your number.

PDF iconIntro slides – calling back to first lesson

PDF iconBinary search algorithm

PDF iconLinear search intro and algorithm

PDF iconLinear search program in Scratch

There's a set of instructions to code some linear search algorithms.

Linear search program instructions

Text file iconBinary search bot program – not the best program in the world, but it seems to work

Text file iconProgram which allows user to specify the range of values to guess from

And some theoretical maths stuff:

PDF iconMaximum guesses needed

Text file iconProgram to calculate number of guesses required

3 – Highest Common Factor

Euclid's algorithm.

PDF iconHCF slides

PDF iconWorking sheet to work through

Highest Common Factor program instructions

Text file iconFind a prime number code

4 – Code breaking

Codes. This it didn't really work when I did it the first time and I might skip this now.

PDF iconCode to break

PDF iconSubstitution ciphers slides

In Excel first.

PDF iconExcel slides – a screenshot basically

PDF iconInstructions for using Excel

PDF iconHiding a worksheet

Some Python files:

PDF iconASCII intro

There's an ASCII code table handy.

ASCII code program instructions

Text file iconPlaintext and Ciphertext arrays

Text file iconCreate a random alphabetical cipher

5 – Dice thrower

Dice, probability and Monopoly.

PDF iconIntro slides

Dice thrower program instructions

6 – Bubble sort

A practical bubble sort activity that I used at an interview. I got the job so it must work.

PDF iconMissing vowels intro

PDF iconLesson slides

PDF iconMethod sheet – to print or use on screen

PDF iconTrue/False exercise

There aren't coding instructions for this (yet?). But here's a program that could be used, one using nested for loops and one with a while loop to add efficiency.

Text file iconSimple bubble sort

Text file iconMore efficient bubble sort

Then there's code where values can be randomly generated, one with values from 1 to 9 without duplicates, and one where users can decide the length and maximum value within the array and where there can be duplicates.

Text file iconBubble sort with random values

Text file iconUser defined random number bubble sort

To add