YouTube: https://youtube.com/watch?v=lwUq3Rw1WAg
Previous: Anal Jets and Frog Urine | SciShow Quiz Show
Next: People Grow Brain Cells Well Into Their 80s | SciShow News

Categories

Statistics

View count:267,548
Likes:12,465
Comments:534
Duration:05:32
Uploaded:2019-03-28
Last sync:2024-03-31 07:15

Citation

Citation formatting is not guaranteed to be accurate.
MLA Full: "Why Electronics Just Shouldn't Work." YouTube, uploaded by SciShow, 28 March 2019, www.youtube.com/watch?v=lwUq3Rw1WAg.
MLA Inline: (SciShow, 2019)
APA Full: SciShow. (2019, March 28). Why Electronics Just Shouldn't Work [Video]. YouTube. https://youtube.com/watch?v=lwUq3Rw1WAg
APA Inline: (SciShow, 2019)
Chicago Full: SciShow, "Why Electronics Just Shouldn't Work.", March 28, 2019, YouTube, 05:32,
https://youtube.com/watch?v=lwUq3Rw1WAg.
Every wire, memory chip, and radio link is constantly fending off data corruption with error detecting and correcting codes. With the help of these codes, electronics can keep up the illusion of perfection… most of the time.

Hosted by: Stefan Chin

SciShow has a spinoff podcast! It's called SciShow Tangents. Check it out at https://www.scishowtangents.org
----------
Support SciShow by becoming a patron on Patreon: https://www.patreon.com/scishow
----------
Huge thanks go to the following Patreon supporters for helping us keep SciShow free for everyone forever:

Bill & Katie Scholl, Adam Brainard, Greg, Alex Hackman, Andrew Finley Brenan, Sam Lutfi, D.A. Noe, الخليفي سلطان, Piya Shedden, KatieMarie Magnone, Scott Satovsky Jr, Charles Southerland, Patrick D. Ashmore, charles george, Kevin Bealer, Chris Peters
----------
Looking for SciShow elsewhere on the internet?
Facebook: http://www.facebook.com/scishow
Twitter: http://www.twitter.com/scishow
Tumblr: http://scishow.tumblr.com
Instagram: http://instagram.com/thescishow
----------
Sources:
http://web.mit.edu/6.02/www/f2010/handouts/lectures/L6.pdf
http://web.mit.edu/modiano/www/6.263/lec3-4.pdf
http://logos.cs.uic.edu/366/notes/ErrorCorrectionAndDetectionSupplement.pdf
https://books.google.com/books?id=ggqxuG31B3cC&lpg=PP1&dq=%22From%20Error-Correcting%20Codes%20through%20Sphere%20Packings%20to%20Simple%20Groups%22&pg=PA15#v=onepage&q&f=false
https://www.its.bldrdoc.gov/fs-1037/dir-009/_1340.htm
https://www.analogictips.com/electrical-noise-can-come-from-anywhere/
http://www.ti.com/lit/an/slyt153/slyt153.pdf
https://courses.cs.washington.edu/courses/cse561/10sp/lectures/lecture-3.pdf
http://www.cs.princeton.edu/courses/archive/spr03/cs126/assignments/hamming.html

https://www2.cs.duke.edu/courses/spring10/cps296.3/rs_scribe.pdf
https://www.pbs.org/wgbh/nova/article/reed-solomon-codes/
https://www.cs.cmu.edu/~guyb/realworld/reedsolomon/reed_solomon_codes.html
ftp://ftp.invisible-island.net/shuford/terminal/reed_solomon_codes.html
https://ieeexplore.ieee.org/document/703881
http://pfister.ee.duke.edu/courses/ecen604/rspoly.pdf
https://www.sciencedirect.com/science/article/pii/0165581796813015/pdf?md5=cb5f376f7b14195ca4e6eff7e38975a1&pid=1-s2.0-0165581796813015-main.pdf
http://web.mit.edu/6.02/www/s2010/handouts/lectures/L7.pdf
https://books.google.com/books?id=yws55Rx1orEC&lpg=PA28&dq=reed-solomon%20codes%20voyager&pg=PA33#v=onepage&q&f=false

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an505.pdf
https://web.archive.org/web/20130611235418/http://www.ima.umn.edu/csg/bib/bib16.0429hage.pdf
https://www.techopedia.com/definition/1793/cyclic-redundancy-check-crc
--------
Images:
https://www.istockphoto.com/vector/compact-disc-gm1040084082-278446690
https://www.istockphoto.com/vector/satellite-gm1040087298-278446706
https://www.istockphoto.com/vector/computer-part-icon-data-storage-hdd-gm1028799362-275759777
https://www.videoblocks.com/video/close-up-shot-random-binary-digi-number-0-and-1-over-dark-background-shallow-depth-of-field-003-hf-exnkywj20pzi6d
https://www.videoblocks.com/video/glitch-effect-modern-technology-concept-failure-artifacts-luma-matte-channel-included-svbw9wraxj1hkxch7
https://www.videoblocks.com/video/two-internet-buffering-animations-loopable-with-alpha-channel-b_qusq6diqvll3dh
https://www.videoblocks.com/video/dot-circle-with-connection-line-with-hud-graph-bar-element-006-scxawoyxfjby525e7
https://www.istockphoto.com/photo/electronic-circuit-board-with-processor-close-up-gm494442978-77120127
https://www.videoblocks.com/video/from-below-closeup-view-of-glowing-indicators-of-server-hardware-in-racks-with-blue-cables-hob9blbjxjndu8olr
https://www.istockphoto.com/photo/blu-ray-or-dvd-player-with-inserted-disc-gm586081546-100579569
https://www.istockphoto.com/photo/view-from-the-sofa-gm903424250-249169016
https://www.istockphoto.com/vector/computer-server-room-gm180622783-27100860
https://www.istockphoto.com/photo/old-printer-paper-gm182148378-121253
https://www.istockphoto.com/photo/dvd-disc-gm145991110-6063258
https://www.videoblocks.com/video/seamlessly-looping-animation-of-rack-servers-in-data-center-4bjqvnddeijlhgebz
https://www.videoblocks.com/video/big-data-and-information-flowing-through-cyberspace-4k-uhd-technology-video-loop-h-xst-djmj9y4zo6d
https://www.videoblocks.com/video/business-mans-hand-using-green-screen-mobile-cell-smart-phone-to-check-internet-stock-market-exchange-trading-news-in-coffee-shop-cafe-i45xnt5
[ ♪ Intro ].

Hard disks. Satellites.

DVDs. Internet cables. We take it for granted that our electronics just work: that every bit, every 1 and 0, gets perfectly stored and passed around.

But when you dig into it, they really shouldn't work! Every wire, memory chip, and radio link is constantly fending off data corruption from faded signals, electrical interference, and even just bumps and scratches. It's practically a miracle electronics work at all!

Of course, what it actually is, is a feat of engineering. Behind the scenes, our devices are scrambling to catch errors and keep cruising along like nothing happened. And their secret weapon?

Error detecting and correcting codes. These are ways of encoding information so that it can be recovered even in the face of corruption. And with the help of these codes, electronics can keep up the illusion of perfection.

Well, most of the time. For the most part, we try to ignore the physicality of our computers, pretending they work in some transcendent world of pure information. But electrical engineers constantly have to grapple with the fact that that's not true.

Like, the radio waves carrying SciShow from your router fade with distance. Rampaging toddlers cover Blu-ray discs in scratches and smudges. And unwanted electrical currents appear inside wires and chips, caused by electrical fields from the wires next door, solar radiation, lightning, or even intergalactic particles.

Engineers consider all these problems one big pile of noise trying to drown out the signal that they care about. But it's not enough to slap a label on the noise; they need to mitigate it, too. Broadly speaking, the solution is redundancy, or injecting redundant information.

That way, even if something gets lost, there's backup information to salvage. The naive approach to this would be simple repetition. If if I I repeat repeat every every word word, it's obvious when one's gotten garbled or replaced.

Of course, that's appallingly inefficient. So the starting point for better codes is to add what's called a parity bit to each block of the message. The parity bit indicates whether there's an even or odd number of 1s in the binary version of that block.

If the number of 1s is even, the parity bit is 0. If the number is odd, the parity bit is 1. Now, say the machine on the receiving end sees an odd number of 1s, but a parity bit of 0.

That means at least one of the bits got flipped, so you've got an error! If the receiver can ask for another copy and errors are rare, that detection might be enough. But for data storage, or when you don't have much bandwidth, you want something called forward error correction, enough redundancy that the receiver can fix errors on its own.

Forward error correction was pioneered way back in the 1940s, when a disgruntled Bell Labs employee named Richard Hamming was working with a newfangled, ten-ton gizmo called a computer. Hamming only had computer time on weekends, when the machine was programmed to assume nobody was around to fix problems. So when it detected corrupted data in Hamming's programs, it would just abort and move on to other tasks.

Hamming found it outrageous that the computercouldn't also locate and repair the errors it had detected. So he came up with a fix. His idea, now known as a Hamming code, was to give every block of data several parity bits.

Each parity bit is responsible for checking different combinations of data bits. So one might check the first, second, and fifth data bits, another might check the first, third, and fourth, one way or another, everything is covered, usually multiple times. Each parity bit tells you whether its specific combination of data bits should have an odd or even number of 1s.

So when the receiver notices that some parity bits don't match their data, all these overlapping patterns tell the receiver what needs to be changed. Hamming codes are simple, fast, and frugal with space, so they're still popular in error-correcting memory chips. But they can't fix more than one error at a time.

That problem is solved by a family of more powerful schemes called Reed-Solomon codes. Their first prime time use was beaming back high-res images from NASA's Voyager probes in the 1970s. Instead of separating message and parity bits,.

Reed-Solomon codes essentially make every chunk that's sent equally informative about the entire message. They do that by reinterpreting the original message not just as numbers, but as points on a mathematical curve. For redundancy's sake, the sender also throws in some extra points along that same curve.

So even if a few spots are corrupted or missing by the time they reach the receiver, the receiver can still reconstruct the right shape, and therefore, the right message, from the remaining points. Reed-Solomon codes slash the survival rate of errors. Plus they're highly adjustable:.

You can add in tons of redundant points, and even though that will make the message more bloated, it will allow more errors to be corrected. So it's no surprise that these codes are wildly popular. They are the patron saint of torn QR codes, banged-up hard drives, flawed cable TV receivers, and tons of other technologies.

And they can even come with extra bells and whistles. For example, many systems, including CDs and spacecraft, interleave, or jumble, the bits after applying Reed-Solomon. That protects against bursts of errors that would otherwise overwhelm the code.

Like, if your Blu-Ray gets a big long scratch, un-jumbling spreads out those errors into many independently-correctable blocks. Reed-Solomon codes take care of a lot, but there are also plenty of other codes out there used in everything from the Internet to cell phones to cable TV, and many are based on similar concepts. So from parity bits to Reed-Solomon codes and beyond, error-correcting and -detecting codes are the unsung heroes of the digital world.

And the next time you have a clear cell signal, or see a picture from space, or even just check your email, you'll know what to thank. Also, if the signal isn't so clear, well, you know how it goes. Sometimes you beat the errors, and sometimes, the errors beat you.

Thanks for watching this episode of SciShow! If you liked learning about how we use codes to keep our messages from getting scrambled, you might also like our episode about how encryption works, since that's basically how we intentionally scramble messages to keep them safe! [ ♪ Outro ].