## Hamming Code Simulation

## written by Teresa Carrigan

## Run model in your browser

- What is it?
- How it works
- How to use it
- Things to notice
- Things to try
- Extending the model
- NetLogo features
- Related models
- Credits and References
- For more information
- Run model in your browser
- Download the model
- Single webpage version

## HOW TO USE IT

Thesetupbutton generates a random bit pattern, of the length specified by thenumber-of-digitsslider.The

randombutton generates a random number of bits, and then uses that to generate a random bit pattern.The

stepbutton demonstrates the next step, and then stops so you can take notes. This is useful when you are first learning the method.The

gobutton does every remaining step, at a speed determined by theslow-motionslider. This is useful when you do not need to take notes between each step.The

show-againbutton starts the exact problem from the beginning. You may then click either thestepbutton or thegobutton to see the same demonstration.The

quizbutton will generate a random problem. Spaces and commas in your answer will be removed, so feel free to use them to help you count the digits.The

slow-motionslider is an easy way to adjust the speed of the display. Set it to zero if you want to show the final result as quickly as possible. 0.3 is a good setting for most purposes.The

number-of-digitsslider determines the number of data bits to be generated when thesetupbutton is pressed.

HomeApplets on this website were written by Teresa Carrigan in 2004, for use in computer science courses at Blackburn College, with the exception of the Fireworks applet. The applets made with NetLogo require Java 1.4.1 or higher to run. The applets made with NetBeans require Java 1.4.2 or higher to run. Applets might not run on Windows 95 or Mac OS 8 or 9. You may obtain the latest Java plugin from Sun's Java site.