# Are there alternatives to binary data storage, and is there any appeal of alternatives

**URL:** <https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528>\
**Category:** Factual Questions\
**Created:** [March 8, 2015, 2:51pm UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528 "2015-03-08T14:51:46Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [March 9, 2015, 5:15am UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/21 "2015-03-09T05:15:54Z")

</div>

> [@jezzaOZ](#):
>
> From the efficiency of storage point of view, trinary is more efficient than binary.
> 
> I can’t remember the exact derivation but base e (2.71828…) is the most efficient. Translating to the integer world the closest value is 3 not 2.

A representation that allows one of S symbols will carry log(S) information. _If the cost is proportional to S_ then S=2 and S=4 are tied for 2nd-place among integers for efficiency. S=3 is almost 6% more efficient than S=2. (And impossible(?) S=2.71828 is slightly more efficient still.)

BUT, that assumes that cost is proportional to S. This is clearly true in some simple cases (for example, a station that transmits a single constant-power sine wave will have S proportional to its FCC-allotted bandwith) but is it true in many important examples?

A flip-flop-flap circuit requires significantly more than 1.5x the hardware of a flip-flop circuit, I think.

---

<div class="post-metadata">

**Author:** ![jezzaOZ](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jezzaOZ](https://boards.straightdope.com/u/jezzaOZ)\
**Post date:** [March 9, 2015, 7:15am UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/22 "2015-03-09T07:15:45Z")

</div>

> [@septimus](#):
>
> A flip-flop-flap circuit requires significantly more than 1.5x the hardware of a flip-flop circuit, I think.

Many GNU comparison functions have trinary return codes. -1, 0, and +1. 0 is a match and -1 and +1 indicate the direction of a mismatch

---

<div class="post-metadata">

**Author:** ![davidm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidm/32/225_2.png) [@davidm](https://boards.straightdope.com/u/davidm)\
**Post date:** [March 9, 2015, 1:49pm UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/23 "2015-03-09T13:49:00Z")

</div>

> [@jezzaOZ](#):
>
> Many GNU comparison functions have trinary return codes. -1, 0, and +1. 0 is a match and -1 and +1 indicate the direction of a mismatch

I’m pretty sure that that’s done at the software level rather than the hardware level. It’s not actually a hardware level compare opcode.

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [March 9, 2015, 2:49pm UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/24 "2015-03-09T14:49:23Z")

</div>

> [@jezzaOZ](#):
>
> Many GNU comparison functions have trinary return codes. -1, 0, and +1. 0 is a match and -1 and +1 indicate the direction of a mismatch

In a lot of places the contract is that any negative number indicates “less than”, while any positive number indicates “greater than”, which allows a comparison between integers to be implemented efficiently as “return x - y”.

But that’s all done on a binary substrate.

---

<div class="post-metadata">

**Author:** ![robert\_columbia](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@robert\_columbia](https://boards.straightdope.com/u/robert_columbia)\
**Post date:** [March 9, 2015, 4:28pm UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/25 "2015-03-09T16:28:26Z")

</div>

> [@JWT\_Kottekoe](#):
>
> To address another part of the OP, biology does use base 4. There are four distinct nucleotides in DNA and RNA, each coding for two bits. There is also redundancy, both in the genetic code (64 codes map to about 20 amino acids) and, in DNA there is a second strand with the identical information in complementary form…

For an interesting SF take on the idea of humans being base-4 computers, read James Hogan’s “Silver Shoes for a Princess”.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [March 9, 2015, 8:39pm UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/26 "2015-03-09T20:39:51Z")

</div>

A few years back, there was a guy who claimed to be able to encode absurdly high volumes of data in the form of coloured geometric shapes printed on paper (I think it was hundreds of GB per page). Fairly sure it was a scam or at least never came to fruition.

---

<div class="post-metadata">

**Author:** ![Digital\_is\_the\_new\_Analog](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@Digital\_is\_the\_new\_Analog](https://boards.straightdope.com/u/Digital_is_the_new_Analog)\
**Post date:** [March 10, 2015, 2:06am UTC](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528/27 "2015-03-10T02:06:29Z")

</div>

> [@andrewm](#):
>
> Differential signaling is for noise resistance - by measuring the voltage difference between a pair of conductors, any voltages induced by interference will affect both equally and not influence the difference. Differential signaling can be digital or analog. Do you have an example of a differential protocol using multiple discrete levels?

I’ve seen it when my hardware team was doing ethernet testing.

From [Wiki](http://en.wikipedia.org/wiki/Ethernet_over_twisted_pair):

> [@](#):
>
> A 100BASE-TX transmitter sends three differential voltages, +1 V, 0 V, or −1 V.[10]
> 
> 1000BASE-T uses all four pairs bi-directionally and the standard includes auto MDI-X; however, implementation is optional. With the way that 1000BASE-T implements signaling, how the cable is wired is immaterial in actual usage. The standard on copper twisted pair is IEEE 802.3ab for Cat 5e UTP, or 4D-PAM5; four dimensions using PAM (pulse amplitude modulation) with five voltages, −2 V, −1 V, 0 V, +1 V, and +2 V[11] While +2 V to −2 V voltage may appear at the pins of the line driver, the voltage on the cable is nominally +1 V, +0.5 V, 0 V, −0.5 V and −1 V.[12]

It looks kinda ugly on a scope.

[Previous page](https://boards.straightdope.com/t/are-there-alternatives-to-binary-data-storage-and-is-there-any-appeal-of-alternatives/714528.md?page=1)
