r/computerscience • • Nov 05 '24

Why binary?

Why not ternary, quaternary, etc up to hexadecimal? Is it just because when changing a digit you don't need to specify what digit to change to since there are only two?

16 Upvotes

98 comments sorted by

View all comments

Show parent comment

1

u/guygastineau Nov 06 '24

For fast transmission protocols like Ethernet and faster WiFi standards actually interpret the analog signal to get multiple bits at a time for better throughout. SPI, i2c, etc still drive a binary logic signal, but there are many fast protocols that take advantage of their analog nature. This is often done by using a wide frequency band, and assigning numbers to sub ranges of that channel. The more sensitive the hardware and nore robust the signal the more bits we can pack into one read of the analog signal.

1

u/Phobic-window Nov 06 '24

It’s wild how complex it’s gotten! They even combine complex wave signals across multiple periods to fit even more data as a composite whole. I can’t believe how fault tolerant transmissions and retransmissions have become!