Tooltip
These resources have been reviewed and selected by STEM Learning’s team of education specialists for factual accuracy and relevance to teaching STEM subjects in UK schools.

The 21 Card Trick

The book "The Magic of Computer Science" contains a variety of tricks that relate to various elements of computer science.

In this resource, the algorithm for which is then described, along with why this ensures that the trick will always work. This makes for a good starting point in order to get students analysing an existing solution and describing it using an algorithm. Once they have worked through this trick, a further activity might be to get them to analyse and "prove" (to an extent) the algorithm for another card trick, possibly from this book, possibly from another. Or if they modify the algorithm, what effect does it have on the trick? What happens if the column containing the chosen card is always the first one picked up (and placed on the top of the pack) or always the column placed on the bottom? Can they draw it out as a Flowchart? Can they explain their result by describing things with Pseudocode?

Show health and safety information

Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.

Downloads

Show downloads

Information on the permitted use of this resource is covered by the Category Three Content section in STEM Learning’s Terms and conditions.

Lists that tag this content

GCSE Algorithms, POSTED BY