Home
Archaeology
Astronomy
Biology
Books
Business
Chemistry
Coins
Computers
Conservation
Cooking
Earth Science
Farming
Economics
Finance
Games
Geography
Health Science
History by Date
Hobbies
Law
Mathematics
Medicine
Military Technology
Movies
Music
People
Pharmacology
Philosophy
Physics
Psychology
Religion
Science History
Technology
Sports
Television
Video
Visual Art
Privacy
Contact Us



Unary numeral system

The unary numeral system is the numeral system that represents natural numbers by stringing together multiple instances of an arbitrarily-chosen symbol; in order to represent a number N, the chosen symbol is repeated N times. For example, if we choose the symbol |, the number 6 is represented as ||||||. Counting on one's fingers is effectively a unary system.

Addition is particularly easy in the unary system, as it is nothing but string concatenation. Multiplication is very cumbersome, however.

Compared to positional numeral systems, the unary system is inconvenient and is not used in practice for large calculations. It occurs in some problem descriptions in theoretical computer science (e.g. some P-Complete problems), where it is used to "artificially" decrease the run-time or space requirements of a problem. For instance, the problem of integer factorization is suspected to require more than polynomial run-time if the input is given in binary, but it only needs linear runtime if the input is presented in unary.


Copyright 2004. All rights reserved.