Editing
Channel Coding
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Parity Bit' (Simple error detection):''' <syntaxhighlight lang="python"> def add_parity_bit(data_string): """ Adds a '1' if the number of ones is odd, to make it 'Even Parity'. """ ones_count = data_string.count('1') parity = '1' if ones_count % 2 != 0 else '0' return data_string + parity def check_parity(packet): """ Returns True if the parity is still even. """ return packet.count('1') % 2 == 0 # Sender sends '101' original = "101" sent = add_parity_bit(original) print(f"Sent Packet: {sent}") # Receiver hears '111' (Middle bit flipped by noise) received = "1110" if not check_parity(received): print("ERROR DETECTED: The parity doesn't match!") </syntaxhighlight> ; Coding Landmarks : '''Hamming Codes (1950)''' β The first code that could not only detect an error but pinpoint exactly which bit was wrong and flip it back. : '''Reed-Solomon Codes (1960)''' β The code that made "Digital Media" possible. Without it, a single speck of dust on a CD would make it unplayable. : '''The Voyager Probes''' β Use advanced channel coding to send photos from the edge of the solar system using a transmitter that has less power than a lightbulb. : '''QR Codes''' β These contain enough "Error Correction" that you can rip a corner off the paper or spray-paint over part of the code and it will still work. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information