Skip to main content Accessibility help
×
Hostname: page-component-68945f75b7-77sjt Total loading time: 0 Render date: 2024-09-05T05:23:57.088Z Has data issue: false hasContentIssue false

2 - Basics of coding

from Part I - Coding and information

Published online by Cambridge University Press:  05 July 2012

Jorma Rissanen
Affiliation:
Tampere University of Technology, Finland
Get access

Summary

We begin with the description of the most basic and primitive codes. Let A = a1, …, ak be a finite set: the set is called an alphabet, and its elements are called symbols. The main interest is in the set of finite sequences sn = aiaj … of the symbols of some length n, called messages or for us just data. The problem is to send or store them in a manner that costs the sending device little time and storage space. Again for practical reasons these devices use binary symbols 0 and 1, while the original symbols are represented as a sequence of binary symbols, such as the eight bits long “bytes.” Let for each symbol a in A, C: aC(a) be a one-to-one map, called a code, from the alphabet into the set of binary strings. It is extended to the messages by concatenation C : aiaj … anC(ai)C(aj) … C(an). Both binary strings C(a) and C(ai)C(aj) … C(an) are called codewords.

This will give us an upside down binary tree, with the root on top, whose nodes are the codewords, first of the symbols for n = 1 and then of the length 2 messages, and so on. The left hand tree in Figure 2.1 illustrates the code for the symbols of the alphabet A = {a, b, c}.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2012

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Basics of coding
  • Jorma Rissanen, Tampere University of Technology, Finland
  • Book: Optimal Estimation of Parameters
  • Online publication: 05 July 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511791635.004
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Basics of coding
  • Jorma Rissanen, Tampere University of Technology, Finland
  • Book: Optimal Estimation of Parameters
  • Online publication: 05 July 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511791635.004
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Basics of coding
  • Jorma Rissanen, Tampere University of Technology, Finland
  • Book: Optimal Estimation of Parameters
  • Online publication: 05 July 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511791635.004
Available formats
×