为什么在计算机世界中不使用三元逻辑而不是二元逻辑?

发布于 2024-11-28 11:11:54 字数 288 浏览 5 评论 0原文

我想知道如果使用三元逻辑,计算机会是什么样子。看起来基数越大,可以利用的内存就越多。我会解释一下。 长度为32的二进制地址->允许您表示 2^32 个可能的值。 三进制地址-> 3^32,比二进制大约 431439 。

看起来好像好很多了。此外,硬件方式也可以轻松完成 -> 2表示强电流,1表示弱电流,0表示无电流。当然,它要复杂得多,但想法很简单。然而,我找不到任何使用这种逻辑的新研究或新计算机的参考资料。

那么,我的问题是为什么不使用 3 数字逻辑?或任何n数逻辑(n>2)?是什么阻止我们这样做?

I was wondering how computer would look if trinary logic was used. It seems like the bigger the base , the more memory can be utilized. I'll explain.
Binary address with length of 32 -> allows you to represent 2^32 possible values.
Trinary address -> 3^32 , which is ~ 431439 bigger than the binary one .

It seems like it is much better. Also , the hardware way of doing it could be done easly -> 2 means strong current, 1 means weak current , and 0 no current. Of course it is much more complicated, but the idea is simple. However , i couldnt find any reffrence to any new research or new computer using this kind of logic.

So , my question is why not using 3 numbers logic ? or any n -number logic ( n>2 ) ? What is stopping us from doing that ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

残月升风 2024-12-05 11:11:54

这些已经存在。事实上,第一批计算机之一使用了三元逻辑,事实上,Knuth 相信,由于它们的效率和优雅,我们最终将重新使用它们。

These already exist. In fact one of the first computers used ternary logic and indeed, Knuth believes that due to their efficiency and elegance we will eventually move back to using them.

っ〆星空下的拥抱 2024-12-05 11:11:54

我很惊讶你在计算机体系结构/数字逻辑书籍中没有找到任何关于此的内容!可以在芯片上进行三元或多元逻辑 - 问题不在于逻辑,而更多在于电阈值计算

当它为 0 时,开/关 (1/0) 并不是纯粹关闭,它是阈值 - 即,低于此电压水平的任何电压均应视为关闭,高于此电压水平的任何电压均应视为开启。现在你过来并说让我们采用三元组——晶体管现在开始感受到压力。它们应该更加准确,即具有多个阈值来满足您的需求,并且必须进行微调,以便更好地遵守这些阈值/边界。

让我们假设你已经排除了阈值,你遇到了人类思维的问题:)你更喜欢哪个:

1100110011或1122110022

我更喜欢前者,但也许这只是我的问题。三元逻辑系统确实存在!事实上,量子计算在多态方面进一步实现了飞跃!

问题是你能做到,问题是,这值得吗?从证据来看,二进制占主导地位,而且绝对值得!

I'm surprised you didn't find anything on this in computer architecture/digital logic books! It is possible to do trinary or polynary logic on chips - the question is not so much about the logic but more about electrical threshold calculations

An on/off (1/0) is not purely off when it's a 0 it's a threshold value - i.e., anything below this voltage level should be considered off and anything above it as on. Now YOU come along and say let's go trinary - the transistors now start feeling the pressure. They are supposed to be much more accurate i.e., i.e, have multiple thresholds to get you what you want and must be fine tuned so that these thresholds/boundaries are better obeyed.

Let's assume you got the thresholds out of the way, you have the problem of the human mind :) What do you like better:

1100110011 or 1122110022

I prefer the former, but maybe that's just me. Ternary logic systems DO exist! In fact quantum computing takes it a leap further with multiple states!!

The thing is you CAN do it, the question is, is it worth it? Going by evidence, binary dominates and definitely seems worth it!

笑看君怀她人 2024-12-05 11:11:54

在其基础上,计算机使用具有两种状态的开关。打开和关闭。当处理电子电流时,在最基本的层面上,这是你的两个选择。虽然从理论上讲,您可能可以将多个电量算作不同的位,但这会很复杂。

这本书,《代码》,作者 Charles Petzold,从通过构建基本的处理器单元一路地面下去。我想,读一读,你会有很多收获。

At their base, computers use switches, which have two states. On and Off. When dealing with electronic current, at the most basic level, those are your two options. While in theory you probably could have multiple amounts of electricity count as different bits, it would be complicated.

This book, Code, by Charles Petzold, explains how computers work, from the ground up all the way through building a basic processor unit. I think that you'll have a lot to gain by giving it a read.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文