GSP Lab 2015 : Error Detection and Correction

Error Detection and Correction

In our first exploration of the intersection of algorithms and data representation, we consider some problems in error detection and correction.

Setting

The table contains a grid of red and blue cards. Sam (or an assistant) will leave the room. You can replace any red card with a blue card, or vice versa. (But just one!)

Sam (or an assistant) will identify which card you switched.

Initial Questions

Context

Designing Numeric Algorithms

The Luhn Algorithm

The Luhn algorithm is a common algorithm for simple error detection that is used with credit card numbers, among other things.

Adding a Check Digit

Validating

Questions

Citations

Many parts of this exercise were inspired by the CS Unplugged exercise on error detection. That exercise is available at http://csunplugged.org/error-detection/.

Wikipedia reminded me that credit cards use the Luhn Algorithm. https://en.wikipedia.org/wiki/Luhn_algorithm.