HOME

TheInfoList



OR:

The radix economy of a number in a particular base (or radix) is the number of
digit Digit may refer to: Mathematics and science * Numerical digit, as used in mathematics or computer science ** Hindu-Arabic numerals, the most common modern representation of numerical digits * Digit (anatomy), the most distal part of a limb, such ...
s 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 of ...
\log_. If both ''b'' and ''N'' are positive integers, then the radix economy E(b,N) is equal to the number of
digit Digit may refer to: Mathematics and science * Numerical digit, as used in mathematics or computer science ** Hindu-Arabic numerals, the most common modern representation of numerical digits * Digit (anatomy), the most distal part of a limb, such ...
s 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 100 or one hundred (Roman numeral: C) is the natural number following 99 and preceding 101. In medieval contexts, it may be described as the short hundred or five score in order to differentiate the English and Germanic use of "hundred" to de ...
in decimal 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, 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 A ring counter is a type of counter composed of flip-flops connected into a shift register, with the output of the last flip-flop fed to the input of the first, making a "circular" or "ring" structure. There are two types of ring counters: * A s ...
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 1 ...
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 voltage, potential difference has been applied. The type kn ...
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, pr ...
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 Flip-flops are a type of light sandal, typically worn as a form of casual footwear. They consist of a flat sole held loosely on the foot by a Y-shaped strap known as a toe thong that passes between the first and second toes and around both side ...
, 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). Ty ...
* List of numeral systems


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