Number of Bit Patterns Simulation

written by Teresa Carrigan


Run model in your browser


Top

WHAT IS IT?

This model demonstrates the different bit patterns that can be made with a fixed number of bits. This will be useful when we make truth tables (to tell us how many rows we will need), in determining the number of bits needed to address a main memory of a given size, and in the discussion of character codes.

Top

HOW IT WORKS

A random number of bits is generated, from one to ten. The first bit pattern is always that many zeroes. The bit patterns now simply count in binary, stopping with a bit pattern that is all ones.


Home

Applets 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.