Why binary and not ternary computing?

前端 未结 17 2360
南方客
南方客 2020-12-04 11:54

Isn\'t a three state object immedately capable of holding more information and handling larger values? I know that processors currently use massive nets of XOR gates and th

17条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 12:28

    • It is much harder to build components that use more than two states/levels/whatever. For example, the transistors used in logic are either closed and don't conduct at all, or wide open. Having them half open would require much more precision and use extra power. Nevertheless, sometimes more states are used for packing more data, but rarely (e.g. modern NAND flash memory, modulation in modems).

    • If you use more than two states you need to be compatible to binary, because the rest of the world uses it. Three is out because the conversion to binary would require expensive multiplication or division with remainder. Instead you go directly to four or a higher power of two.

    These are practical reasons why it is not done, but mathematically it is perfectly possible to build a computer on ternary logic.

提交回复
热议问题