General Question

DaphneT's avatar

What is a trinary operating system?

Asked by DaphneT (5750points) August 25th, 2013

Exactly what is a trinary operating system and who proposed it?

Observing members: 0 Composing members: 0

9 Answers

ragingloli's avatar

instead of using 1s and 0s, it would use 0, 1, and 2

Nibulnod's avatar

So DNA is tertiary?

PhiNotPi's avatar

A ternary computer (also called trinary), is a computer that uses ternary instead of binary logic.

There are two forms of ternary:

The first form replaces powers of 2 with powers of 3. For example:
decimal -> binary -> ternary
1 -> 1 -> 1
2 -> 10 -> 2
3 -> 11 -> 10
11 -> 1011 -> 102

The second form uses the values (-1, 0, 1) instead of (0, 1, 2), but still uses base 2.

This form of ternary, called balanced ternary, is useful because is allows the easy representation of negative numbers. In typical binary, negative numbers are represented by changing a sign bit. Those are not needed in balanced ternary:
7 -> 111 -> 111
-7 -> 100000111 -> (-1)(-1)(-1)

PhiNotPi's avatar

@Nibulnod In a basic sense, yes, a single strand of DNA is similar to tertiary, since there are 4 possible bases. There are, however, many other factors that control the function of a strand of DNA.

Old_Timer's avatar

Very interesting. First I’ve heard of this.The first form PhiNotPi explained makes no sense to me, but the second form certainly does. Binary is used in computers because basically a computer can only recognize 1 or 0, on or off, something or nothing. I don’t see how they could be designed to see a 2, but I can easily see how they can be designed to see a negative 1. So it would appear to me that -1, 0, +1 would be workable, and very efficient. Thanks for the great question Daphne, and the great answer PhiNotPi.

LostInParadise's avatar

Here is an interesting property of ternary numbers using the 0,1,2 notation. Do you see how can you tell if a ternary number is even or odd? It is not enough to look at the last digit like you can for decimal or binary numbers. You could convert it to decimal or divide by two using ternary arithmetic, but there is a much simpler and quicker way.

PhiNotPi's avatar

@LostInParadise Add up the digits and check the parity of the sum.

LostInParadise's avatar

Or you can just check if the number of 1’s is even or odd.

DaphneT's avatar

Thanks @PhiNotPi, that helps.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther