HOME

TheInfoList



OR:

The radix economy of a number in a particular base (or
radix In a positional numeral system, the radix or base is the number of unique digits, including the digit zero, used to represent numbers. For example, for the decimal/denary system (the most common system in use today) the radix (base number) is ...
) is the number of digits needed to express it in that base, multiplied by the base (the number of possible values each digit could have). This is one of various proposals that have been made to quantify the relative costs of using different radices in representing numbers, especially in computer systems. Radix economy also has implications for organizational structure, networking, and other fields.


Definition

The radix economy ''E''(''b'',''N'') for any particular number ''N'' in a given base ''b'' is defined as : E(b,N) = b \lfloor \log_b (N) +1 \rfloor \, where we use the floor function \lfloor \rfloor and the base-b
logarithm In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number  to the base  is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 ...
\log_. If both ''b'' and ''N'' are positive integers, then the radix economy E(b,N) is equal to the number of digits needed to express the number ''N'' in base ''b'', multiplied by base ''b''. The radix economy thus measures the cost of storing or processing the number ''N'' in base ''b'' if the cost of each "digit" is proportional to ''b''. A base with a lower average radix economy is therefore, in some senses, more efficient than a base with a higher average radix economy. For example, 100 in
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral ...
has three digits, so its radix economy is 10×3 = 30; its binary representation has seven digits (11001002) so it has radix economy 2×7 = 14 in base 2; in base 3 its representation has five digits (102013) with a radix economy of 3×5 = 15; in base 36 (2S36) its radix economy is 36×2 = 72. If the number is imagined to be represented by a
combination lock A combination lock is a type of locking device in which a sequence of symbols, usually numbers, is used to open the lock. The sequence may be entered using a single rotating dial which interacts with several discs or ''cams'', by using a set o ...
or a
tally counter A tally counter is a mechanical, electronic, or software device used to incrementally count something, typically fleeting. One of the most common things tally counters are used for is counting people, animals, or things that are coming and going fr ...
, in which each wheel has ''b'' digit faces, from 0, 1, ..., b-1 and having \lfloor \log_b (N) +1 \rfloor wheels, then the radix economy b \lfloor \log_b (N) +1 \rfloor is the total number of digit faces needed to inclusively represent any integer from 0 to ''N''.


Asymptotic behavior

The radix economy for large ''N'' can be approximated as follows: : E(b,N) = b \lfloor \log_b (N) +1 \rfloor \sim b\ \log_b (N) = \ln(N) . : \sim . The asymptotically best radix economy is obtained for base 3, since b \over \ln(b) attains a minimum for b = 3 in the positive integers: : \approx 2.88539\,, : \approx 2.73072\,, : \approx 2.88539\,. For base 10, we have: : \approx 4.34294\,.


Radix economy of different bases


''e'' has the lowest radix economy

Here is a proof that base ''e'' is the ''real''-valued base with the lowest average radix economy: First, note that the function : f(x) = \frac \, is strictly decreasing on 1 < ''x'' < ''e'' and strictly increasing on ''x'' > ''e''. Its minimum, therefore, for x > 1, occurs at ''e''. Next, consider that : \approx = Then for a constant N, will have a minimum at ''e'' for the same reason f(x) does, meaning e is therefore the base with the lowest average radix economy. Since 2 / ln(2) ≈ 2.89 and 3 / ln(3) ≈ 2.73, it follows that 3 is the ''integer'' base with the lowest average radix economy.


Comparing different bases

The radix economy of bases ''b''1 and ''b''2 may be compared for a large value of ''N'': : \approx = = \, . Choosing ''e'' for ''b''2 gives the economy relative to that of ''e'' by the function: : \approx = \, The average radix economies of various bases up to several arbitrary numbers (avoiding proximity to powers of 2 through 12 and ''e'') are given in the table below. Also shown are the radix economies relative to that of ''e''. Note that the radix economy of any number in base 1 is that number, making it the most economical for the first few integers, but as ''N'' climbs to infinity so does its relative economy. :


Ternary tree efficiency

One result of the relative economy of base 3 is that ternary search trees offer an efficient strategy for retrieving elements of a database. A similar analysis suggests that the optimum design of a large telephone menu system to minimise the number of menu choices that the average customer must listen to (i.e. the product of the number of choices per menu and the number of menu levels) is to have three choices per menu.


Computer hardware efficiencies

The 1950 reference ''High-Speed Computing Devices'' describes a particular situation using contemporary technology. Each digit of a number would be stored as the state of a ring counter composed of several
triode A triode is an electronic amplifying vacuum tube (or ''valve'' in British English) consisting of three electrodes inside an evacuated glass envelope: a heated filament or cathode, a grid, and a plate (anode). Developed from Lee De Forest's ...
s. Whether
vacuum tube A vacuum tube, electron tube, valve (British usage), or tube (North America), is a device that controls electric current flow in a high vacuum between electrodes to which an electric potential difference has been applied. The type known as ...
s or
thyratron A thyratron is a type of gas-filled tube used as a high-power electrical switch and controlled rectifier. Thyratrons can handle much greater currents than similar hard-vacuum tubes. Electron multiplication occurs when the gas becomes ionized, p ...
s, the triodes were the most expensive part of a counter. For small radices ''r'' less than about 7, a single digit required ''r'' triodes. (Larger radices required 2''r'' triodes arranged as ''r'' flip-flops, as in
ENIAC ENIAC (; Electronic Numerical Integrator and Computer) was the first programmable, electronic, general-purpose digital computer, completed in 1945. There were other computers that had these features, but the ENIAC had all of them in one pac ...
's decimal counters.) So the number of triodes in a numerical register with ''n'' digits was ''rn''. In order to represent numbers up to 106, the following numbers of tubes were needed: : The authors conclude,


Other criteria

In another application, the authors of ''High-Speed Computing Devices'' consider the speed with which an encoded number may be sent as a series of high-frequency voltage pulses. For this application the compactness of the representation is more important than in the above storage example. They conclude, "A saving of 58 per cent can be gained in going from a binary to a ternary system. A smaller percentage gain is realized in going from a radix 3 to a radix 4 system." Binary encoding has a notable advantage over all other systems: greater noise immunity. Random voltage fluctuations are less likely to generate an erroneous signal, and circuits may be built with wider voltage tolerances and still represent unambiguous values accurately.


See also

*
Ternary computer A ternary computer, also called trinary computer, is one that uses ternary logic (i.e., base 3) instead of the more common binary system (i.e., base 2) in its calculations. This means it uses trits (instead of bits, as most computers do). Types ...
*
List of numeral systems There are many different numeral systems, that is, writing systems for expressing numbers. By culture / time period By type of notation Numeral systems are classified here as to whether they use positional notation (also known as place-val ...


References

{{Reflist


Further reading

*S.L. Hurst, "Multiple-Valued Logic-Its Status and its Future", ''IEEE trans. computers'', Vol. C-33, No 12, pp. 1160–1179, DEC 1984. *J. T. Butler, "Multiple-Valued Logic in VLSI Design, ” IEEE Computer Society Press Technology Series, 1991. *C.M. Allen, D.D. Givone “The Allen-Givone Implementation Oriented Algebra", in ''Computer Science and Multiple-Valued Logic: Theory and Applications'', D.C. Rine, second edition, D.C. Rine, ed., The Elsevier North-Holland, New York, N.Y., 1984. pp. 268–288. *G. Abraham, "Multiple-Valued Negative Resistance Integrated Circuits", in ''Computer Science and Multiple-Valued Logic: Theory and Applications'', D.C. Rine, second edition, D.C. Rine, ed., The Elsevier North-Holland, New York, N.Y., 1984. pp. 394–446. Positional numeral systems Computer arithmetic Ternary computers