<< Chapter < Page Chapter >> Page >
Some subtleties of coding, including self synchronization and a comparison of the Huffman and Morse codes.

In the Huffman code, the bit sequences that represent individual symbols can have differing lengths so the bitstream index m does not increase in lock step with the symbol-valued signal's index n . To capture how often bits must be transmitted to keep up with the source's productionof symbols, we can only compute averages. If our source code averages B A bits/symbol and symbols are produced at a rate R , the average bit rate equals B A R , and this quantity determines the bit interval duration T .

Calculate what the relation between T and the average bit rate B A R is.

T 1 B A R .

Got questions? Get instant answers now!

A subtlety of source coding is whether we need "commas" in the bitstream. When we use an unequal number of bits to representsymbols, how does the receiver determine when symbols begin and end? If you created a source code that required a separation marker in the bitstream between symbols, it would be very inefficient sinceyou are essentially requiring an extra symbol in the transmission stream.

A good example of this need is the Morse Code: Between each letter, the telegrapher needs to insert a pause to inform thereceiver when letter boundaries occur.
As shown in this example , no commas are placed in the bitstream, but you can unambiguously decode the sequence ofsymbols from the bitstream. Huffman showed that his (maximally efficient) code had the prefix property: No code for a symbol began another symbol's code. Once you have theprefix property, the bitstream is partially self-synchronizing: Once the receiver knows where the bitstream starts, we can assign a unique and correct symbol sequence tothe bitstream.

Sketch an argument that prefix coding, whether derived from a Huffman code or not, will provide unique decoding when anunequal number of bits/symbol are used in the code.

Because no codeword begins with another's codeword, the first codeword encountered in a bit stream must be the rightone. Note that we must start at the beginning of the bit stream; jumping into the middle does not guarantee perfectdecoding. The end of one codeword and the beginning of another could be a codeword, and we would get lost.

Got questions? Get instant answers now!

However, having a prefix code does not guarantee total synchronization: After hopping into the middle of a bitstream,can we always find the correct symbol boundaries? The self-synchronization issue does mitigate the use of efficientsource coding algorithms.

Show by example that a bitstream produced by a Huffman code is not necessarily self-synchronizing. Arefixed-length codes self synchronizing?

Consider the bitstream…0110111…taken from the bitstream 0|10|110|110|111|…. We would decode the initial part incorrectly, then would synchronize. If wehad a fixed-length code (say 00,01,10,11), the situation is much worse. Jumping into the middle leads to no synchronization at all!

Got questions? Get instant answers now!

Another issue is bit errors induced by the digital channel; if they occur (and they will), synchronization can easily be losteven if the receiver started "in synch" with the source. Despite the small probabilities of error offered by good signalset design and the matched filter, an infrequent error can devastate the ability to translate a bitstream into a symbolicsignal. We need ways of reducing reception errors without demanding that p e be smaller.

The first electrical communications system—the telegraph—was digital. When first deployed in 1844, it communicated text over wirelineconnections using a binary code—the Morse code—to represent individual letters. To send a message from one placeto another, telegraph operators would tap the message using a telegraph key to another operator, who would relay the messageon to the next operator, presumably getting the message closer to its destination. In short,the telegraph relied on a network not unlike the basics of modern computer networks. To say it presaged modern communications would be anunderstatement. It was also far ahead of some needed technologies, namely the Source Coding Theorem. The Morsecode, shown in , was not a prefix code. To separate codes for each letter, Morsecode required that a space—a pause—be inserted between each letter. In information theory, that space countsas another code letter, which means that the Morse code encoded text with a three-letter source code: dots, dashes andspace. The resulting source code is not within a bit of entropy, and is grossly inefficient (about 25%). shows a Huffman code for English text, which as we know is efficient.

Morse and huffman code table
% Morse Code Huffman Code
A 6.22 .- 1011
B 1.32 -... 010100
C 3.11 -.-. 10101
D 2.97 -.. 01011
E 10.53 . 001
F 1.68 ..-. 110001
G 1.65 --. 110000
H 3.63 .... 11001
I 6.14 .. 1001
J 0.06 .--- 01010111011
K 0.31 -.- 01010110
L 3.07 .-.. 10100
M 2.48 -- 00011
N 5.73 -. 0100
O 6.06 --- 1000
P 1.87 .--. 00000
Q 0.10 --.- 0101011100
R 5.87 .-. 0111
S 5.81 ... 0110
T 7.68 - 1101
U 2.27 ..- 00010
V 0.70 ...- 0101010
W 1.13 .-- 000011
X 0.25 -..- 010101111
Y 1.07 -.-- 000010
Z 0.06 --.. 0101011101011
Morse and Huffman Codes for American-Roman Alphabet. The % column indicates the average probability (expressed inpercent) of the letter occurring in English. The entropy H A of the this source is 4.14 bits. The average Morse codewordlength is 2.5 symbols. Adding one more symbol for the letter separator and converting to bits yields an average codewordlength of 5.56 bits. The average Huffman codeword length is 4.35 bits.
Got questions? Get instant answers now!

Questions & Answers

What are the factors that affect demand for a commodity
Florence Reply
differentiate between demand and supply giving examples
Lambiv Reply
differentiated between demand and supply using examples
Lambiv
what is labour ?
Lambiv
how will I do?
Venny Reply
how is the graph works?I don't fully understand
Rezat Reply
information
Eliyee
devaluation
Eliyee
t
WARKISA
hi guys good evening to all
Lambiv
multiple choice question
Aster Reply
appreciation
Eliyee
explain perfect market
Lindiwe Reply
In economics, a perfect market refers to a theoretical construct where all participants have perfect information, goods are homogenous, there are no barriers to entry or exit, and prices are determined solely by supply and demand. It's an idealized model used for analysis,
Ezea
What is ceteris paribus?
Shukri Reply
other things being equal
AI-Robot
When MP₁ becomes negative, TP start to decline. Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of lab
Kelo
Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of labour (APL) and marginal product of labour (MPL)
Kelo
yes,thank you
Shukri
Can I ask you other question?
Shukri
what is monopoly mean?
Habtamu Reply
What is different between quantity demand and demand?
Shukri Reply
Quantity demanded refers to the specific amount of a good or service that consumers are willing and able to purchase at a give price and within a specific time period. Demand, on the other hand, is a broader concept that encompasses the entire relationship between price and quantity demanded
Ezea
ok
Shukri
how do you save a country economic situation when it's falling apart
Lilia Reply
what is the difference between economic growth and development
Fiker Reply
Economic growth as an increase in the production and consumption of goods and services within an economy.but Economic development as a broader concept that encompasses not only economic growth but also social & human well being.
Shukri
production function means
Jabir
What do you think is more important to focus on when considering inequality ?
Abdisa Reply
any question about economics?
Awais Reply
sir...I just want to ask one question... Define the term contract curve? if you are free please help me to find this answer 🙏
Asui
it is a curve that we get after connecting the pareto optimal combinations of two consumers after their mutually beneficial trade offs
Awais
thank you so much 👍 sir
Asui
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities, where neither p
Cornelius
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities,
Cornelius
Suppose a consumer consuming two commodities X and Y has The following utility function u=X0.4 Y0.6. If the price of the X and Y are 2 and 3 respectively and income Constraint is birr 50. A,Calculate quantities of x and y which maximize utility. B,Calculate value of Lagrange multiplier. C,Calculate quantities of X and Y consumed with a given price. D,alculate optimum level of output .
Feyisa Reply
Answer
Feyisa
c
Jabir
the market for lemon has 10 potential consumers, each having an individual demand curve p=101-10Qi, where p is price in dollar's per cup and Qi is the number of cups demanded per week by the i th consumer.Find the market demand curve using algebra. Draw an individual demand curve and the market dema
Gsbwnw Reply
suppose the production function is given by ( L, K)=L¼K¾.assuming capital is fixed find APL and MPL. consider the following short run production function:Q=6L²-0.4L³ a) find the value of L that maximizes output b)find the value of L that maximizes marginal product
Abdureman
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Fundamentals of electrical engineering i. OpenStax CNX. Aug 06, 2008 Download for free at http://legacy.cnx.org/content/col10040/1.9
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Fundamentals of electrical engineering i' conversation and receive update notifications?

Ask