ArticleslgStudy

mathematics

Signed-digit representation

Signed-digit representation is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Signed-digit representation rather than just read about it. In short: In mathematical notation for numbers, a signed-digit representation is a positional numeral system with a set of signed digits used to encode the integers. Signed-digit representation can be used to accomplish fast addition of integers because it can eliminate chains of dependent carries.

Key takeaways

  • Signed-digit representation belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Signed-digit representation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Signed-digit representation from memory before moving on to harder problems.

Reference excerpt

In mathematical notation for numbers, a signed-digit representation is a positional numeral system with a set of signed digits used to encode the integers. Signed-digit representation can be used to accomplish fast addition of integers because it can eliminate chains of dependent carries. In the binary numeral system, a special case signed-digit representation is the non-adjacent form, which can offer speed benefits with minimal space overhead.

History Challenges in calculation stimulated early authors Colson (1726) and Cauchy (1840) to use signed-digit representation. The further step of replacing negated digits with new ones was suggested by Selling (1887) and Cajori (1928). In 1928, Florian Cajori noted the recurring theme of signed digits, starting with Colson (1726) and Cauchy (1840). In his book A History of Mathematical Notations, Cajori titled the section "Negative numerals". For completeness, Colson uses examples and describes addition (pp. 163–4), multiplication (pp. 165–6) and division (pp. 170–1) using a table of multiples of the divisor. He explains the convenience of approximation by truncation in multiplication. Colson also devised an instrument (Counting Table) that calculated using signed digits. Eduard Selling advocated inverting the digits 1, 2, 3, 4, and 5 to indicate the negative sign. He also suggested snie, jes, jerd, reff, and niff as names to use vocally. Most of the other early sources used a bar over a digit to indicate a negative sign for it. Another German usage of signed-digits was described in 1902 in Klein's encyclopedia.

Definition and properties

Digit set Let 𝒟 be a finite set of numerical digits with cardinality b>1 (If b≤1, then the positional number system is trivial and only represents the trivial ring), with each digit denoted as di for 0≤i<b. b is known as the radix or number base. 𝒟 can be used for a signed-digit representation if it's associated with a unique function f𝒟:𝒟→ℤ such that f𝒟(di)≡imodb for all 0≤i<b. This function, f𝒟, is what rigorously and formally establishes how integer values are assigned to the symbols/glyphs in 𝒟. One benefit of this formalism is that the definition of "the integers" (however they may be defined) is not conflated with any particular system for writing/representing them; in this way, these two distinct (albeit closely related) concepts are kept separate. 𝒟 can be partitioned into three distinct sets 𝒟+, 𝒟0, and 𝒟−, representing the positive, zero, and negative digits respectively, such that all digits d+∈𝒟+ satisfy f𝒟(d+)>0, all digits d0∈𝒟0 satisfy f𝒟(d0)=0 and all digits d−∈𝒟− satisfy f𝒟(d−)<0. The cardinality of 𝒟+ is b+, the cardinality of 𝒟0 is b0, and the cardinality of 𝒟− is b−, giving the number of positive and negative digits respectively, such that b=b++b0+b−.

Balanced form representations

Balanced form representations are representations where for every positive digit d+, there exist a corresponding negative digit d− such that f𝒟(d+)=−f𝒟(d−). It follows that b+=b−. For odd bases b, the used digits are −(b−1)/2 to (b−1)/2, and for even bases b, the used digits are −b/2 to b/2, but for even bases b, the digits −b/2 and b/2 may not be followed by an odd digit, the spacial case of b=2 is exactly the non-adjacent form. In balanced form, the negative digits d−∈𝒟− are usually denoted as positive digits with a bar over the digit, as d−=d¯+ for d+∈𝒟+. For example, the digit set of balanced ternary would be 𝒟3={1¯,0,1} with f𝒟3(1¯)=−1, f𝒟3(0)=0, and f𝒟3(1)=1. This convention is adopted in finite fields of odd prime order q:

𝔽q={0,1,1¯=−1,...d=q−12, d¯=1−q2 | q=0}. In the table below, use Z,Y,X,… to represent −1,−2,−3,…

Dual signed-digit representation Every digit set 𝒟 has a dual digit set 𝒟op given by the inverse order of the digits with an isomorphism g:𝒟→𝒟op defined by −f𝒟=g∘f𝒟op. As a result, for any signed-digit representations 𝒩 of a number system ring N constructed from 𝒟 with valuation v𝒟:𝒩→N, there exists a dual signed-digit representations of N, 𝒩op, constructed from 𝒟op with valuation v𝒟op:𝒩op→N, and an isomorphism h:𝒩→𝒩op defined by −v𝒟=h∘v𝒟op, where − is the additive inverse operator of N. The digit set for balanced form representations is self-dual.

For integers Given the digit set 𝒟 and function f:𝒟→ℤ as defined above, let us define an integer endofunction T:ℤ→ℤ as the following:

T(n)={n−f(di)bif n≡imodb,0≤i<b If the only periodic point of T is the fixed point 0, then the set of all signed-digit representations of the integers ℤ using 𝒟 is given by the Kleene plus 𝒟+, the set of all finite concatenated strings of digits dn…d0 with at least one digit, with n∈ℕ. Each signed-digit representation m∈𝒟+ has a valuation v𝒟:𝒟+→ℤ

v𝒟(m)=∑i=0nf𝒟(di)bi. Examples include balanced ternary with digits 𝒟={1¯,0,1}. Otherwise, if there exist a non-zero periodic point of T, then there exist integers that are represented by an infinite number of non-zero digits in 𝒟. Examples include the standard decimal numeral system with the digit set dec⁡={0,1,2,3,4,5,6,7,8,9}, which requires an infinite number of the digit 9 to represent the additive inverse −1, as Tdec(−1)=−1−910=−1, and the positional numeral system with the digit set 𝒟={A,0,1} with f(A)=−4, which requires an infinite number of the digit A to represent the number 2, as T𝒟(2)=2−(−4)3=2.

For decimal fractions

If the integers can be represented by the Kleene plus 𝒟+, then the set of all signed-digit representations of the decimal fractions, or b-adic rationals ℤ[1∖b], is given by 𝒬=𝒟+×𝒫×𝒟∗, the Cartesian product of the Kleene plus 𝒟+, the set of all finite concatenated strings of digits dn…d0 with at least one digit, the singleton 𝒫 consisting of the radix point (. or ,), and the Kleene star 𝒟∗, the set of all finite concatenated strings of digits d−1…d−m, with m,n∈ℕ. Each signed-digit representation q∈𝒬 has a valuation v𝒟:𝒬→ℤ[1∖b]

v𝒟(q)=∑i=−mnf𝒟(di)bi

For real numbers

If the integers can be represented by the Kleene plus 𝒟+, then the set of all signed-digit representations of the real numbers ℝ is given by ℛ=𝒟+×𝒫×𝒟ℕ, the Cartesian product of the Kleene plus 𝒟+, the set of all finite concatenated strings of digits dn…d0 with at least one digit, the singleton 𝒫 consisting of the radix point (. or ,), and the Cantor space 𝒟ℕ, the set of all infinite concatenated strings of digits d−1d−2…, with n∈ℕ. Each signed-digit representation r∈ℛ has a valuation v𝒟:ℛ→ℝ

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Signed-digit representation

Start with the simplest possible case. Write down what Signed-digit representation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Signed-digit representation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Signed-digit representation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Signed-digit representation

In research
Signed-digit representation appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Signed-digit representation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Signed-digit representation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Arithmetic dynamics, Coding theory, Formal languages, so understanding it makes those chapters shorter.
In everyday life
Look for Signed-digit representation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Signed-digit representation” →

How to study Signed-digit representation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Signed-digit representation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Signed-digit representation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Signed-digit representation in simple terms?

In mathematical notation for numbers, a signed-digit representation is a positional numeral system with a set of signed digits used to encode the integers. Signed-digit representation can be used to accomplish fast addition of integers because it can eliminate chains of dependent carries.

Why does Signed-digit representation matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Signed-digit representation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Signed-digit representation.

Tags

  • Arithmetic dynamics
  • Coding theory
  • Formal languages
  • Non-standard positional numeral systems
  • Number theory
  • Ring theory
  • Sign (mathematics)

Keep exploring