Cover of Code by Charles Petzold - Business and Economics Book

From "Code"

Author: Charles Petzold
Publisher: Microsoft Press
Year: 2000
Category: Computers

🎧 Free Preview Complete

You've listened to your free 10-minute preview.
Sign up free to continue listening to the full summary.

🎧 Listen to Summary

Free 10-min Preview
0:00
Speed:
10:00 free remaining
Chapter 9: Bit by Bit by Bit
Key Insight 3 from this chapter

The Role of Redundancy and Context in Bit-Based Communication

Key Insight

Effective communication using bits often incorporates redundancy and error checking to ensure accuracy despite 'noise,' which is anything that interferes with the message. In the Paul Revere lantern example, redundancy was used by assigning both '01' and '10' to 'by land' to make it easier for Revere to distinguish between one lit lantern (land) and two lit lanterns (sea) in darkness or from a distance, rather than deciphering which specific lantern was lit. This 'sophisticated' use of redundancy counteracts potential misinterpretation due to environmental factors.

The Universal Product Code (UPC) provides a comprehensive illustration of error checking. It includes several built-in precautions: fixed left, center, and right guard patterns (e.g., 101 and 01010) that a scanner must detect to validate the code. Additionally, the 7-bit codes for each digit incorporate parity checking; left-side codes have an odd number of '1' bits (odd parity), while right-side codes have an even number of '1' bits (even parity). An incorrect parity count signals an error. A modulo check character, the 12th digit in the UPC, is calculated from the preceding 11 digits and must match the encoded value, preventing acceptance of tampered or misread codes.

Context is paramount for bits to convey meaningful information. A string of 0s and 1s is inherently meaningless without an agreed-upon code and shared understanding of what it represents. For example, a yellow ribbon's meaning is known only to specific individuals in a particular context. Similarly, the same 7-bit code can represent different numerical digits depending on whether it's on the left or right side of a UPC, or if the code is scanned forward or backward. The choice of assigning 0 to 'no' and 1 to 'yes' is arbitrary, but consistency in its application and shared contextual knowledge are essential for successful communication and interpretation of the encoded information.

📚 Continue Your Learning Journey — No Payment Required

Access the complete Code summary with audio narration, key takeaways, and actionable insights from Charles Petzold.