Memory Alpha
Memory Alpha
mNo edit summary
No edit summary
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''Trinary code''' is a term used to describe an advanced form of [[computer]] language used by [[Races and Cultures|cultures]] in the [[Milky Way Galaxy|galaxy]], such as the [[Federation]].
+
'''Trinary syntax''' was a [[computer]] [[language]] used by [[cultures]] in the [[Milky Way Galaxy|galaxy]], including the [[Federation]].
   
Federation computers use an advanced system, using the data storage measurements ''[[quad]]s'', ''[[kiloquad]]s'' and ''[[gigaquad]]s'' to measure data. The systems are based in [[binary code]], yet also accomodating the use of trinary. ''([[VOY]]:"[[Hope and Fear]]")''
+
In [[2374]], when [[Arturis]] was asked by [[Captain]] [[Kathryn Janeway]] about his skills with computer trinary syntax and [[algorithm]]s, he replied that they were "all the same" to him. ({{VOY|Hope and Fear}})
   
  +
{{bginfo|Trinary syntax may be similar to trinary code.}}
Trinary is a further evolution of binary code. In binary, when [[electricity]] is used to transmit or carry data and information, the information is encoded as ones (1) or zeroes (0), with a low "off" voltage representing 0, and an high "on" voltage representing 1. A single one or zero is the basic '''primitive unit''' of information, referred to as a '''bit'''. By comparison, a trinary code, by definition, is a three-state system, with three different signals possible. This changes the way basic computations are carried out, but does not increase the capacity of a system or the complexity of data storage or encoding.
 
  +
[[Category:Computer technology]]
 
While trinary code does not in and of itself represent a more powerful or even significantly different type of computing than we use today, binary or trinary [[quantum]] codes could be exponentially more powerful.
 
 
==Background==
 
''[[Star Trek]]'' computers are frequently referred to operating in binary capacities, such as [[TNG]]:"[[11001001]]" and [[VOY]]:"[[Favorite Son]]," however, references to trinary code, and the possible obsolescence of binary, have been made in modern ''Trek'' productions.
 
 
In "[[Future's End]]" ([[VOY]]), [[Harry Kim]] notes that it would take "a few minutes to reconfigure to their binary system" before they could upload [[Henry Starling]]'s computer database. This suggests either a different method for storing files as bits is used, or the binary computing system was no longer used at that time.
 
 
In "[[Distant Origin]]" ([[VOY]]), one of the [[Voth]] says "simple binary system" while attempting to access and download the Voyager's computer database.
 
 
The term "quad" has been theorized to be related to quadratic code, the four-state variation of binary and trinary, however, it has been solidly established that [[Federation]] computers utilize both binary and trinary code, and no mention has ever been made of this relationship in any [[canon]] sense.
 
 
Presumably trinary involves 0,1 ''and 2''. Using an 8 bit code, there are 2<sup>8</sup> or 256 possible binary states per byte. In trinary, there would be 3<sup>8</sup> or '''''6,561''''' states available per byte. A quadratic code would allow 4<sup>8</sup> or '''''65,536''''' states.
 
 
==Relation to Information Theory==
 
 
Digital information can be stored in any primitive unit. An ''n''-state data primitive, or ''nit'', is a generalization of the binary ''bit'', the smallest possible primitive. Since data in trinary or [[quad]]ratic code is still digital rather than analog or [[quantum]], information can be converted readily between systems. For example, 4<sup>8</sup> = 65,536 states is the same as 2<sup>16</sup> states, or 2 bytes in a binary code, and each 4-state primitive could be represented by two bits.
 
 
However, an increase in the number of states per data primitive does not represent any increase in computing power or data storage: it is merely a change in the unit of measurement, as between feet and meters. Since fundamental physical limits of data storage are unit-independent, the type of code used is a matter of convention or convenience rather than potential power.
 
 
==Relation to Quantum Computing==
 
 
The [[technology]] of ''[[Star Trek]]'' may well include [[wikipedia:quantum computer|quantum computers]], but quantum computing does not necessarily relate to trinary or other codes. A [[wikipedia:qubit|qubit]] is the 2-state primitive unit of quantum information, and the increase in storage capacity of a quantum computer comes from entanglement of many qubits: the number of possible states of an N-qubit quantum computer goes like 2<sup>N</sup>, versus 2N in an N-bit classical computer.
 
 
The type of code used by a quantum computer would depend on the computer's physical system. Today's qubits are based on 2-state systems, resulting in a binary quantum code. If the computer is based on a 3- or 4-state system, then the quantum code would be trinary or quadratic.
 

Revision as of 11:14, 19 September 2013

Trinary syntax was a computer language used by cultures in the galaxy, including the Federation.

In 2374, when Arturis was asked by Captain Kathryn Janeway about his skills with computer trinary syntax and algorithms, he replied that they were "all the same" to him. (VOY: "Hope and Fear")

Trinary syntax may be similar to trinary code.