ACTIVITY : CODING
Suppose the following messages are source encoded given by the table.
Message Encoded Bits
UP 00
DOWN 01
LEFT 10
RIGHT 11
I. Complete the given table by writing the source encoded message of the following set of directions.
Set of Directions Source Encoding
LEFT - UP - RIGHT - DOWN 1.)
UP - DOWN - UP - RIGHT 2.)
DOWN - DOWN - RIGHT - LEFT 3.)
UP - DOWN - LEFT - RIGHT 4.)
RIGHT - LEFT - RIGHT - UP 5.)
II. Decode the set of directions given by the message received.
Message Received Decoded Message
10010011 1.)
01010010 2.)
11000110 3.)
01100111 4.)
00101111 5.)
III. Complete the given table by writing the channel encoded message by using parity check of adding 1 bit in the message.
Message Source Encoding Channel Encoding
ALLY 000 1.)
ENEMY 011 2.)
ATTACK 100 3.)
RETREAT 111 4.)
SURRENDER 101 5.)
IV. Encode the following messages using the given message and the value of r.
Source Encoding r Channel Encoding
101 2 1.)
100 3 2.)
001 2 3.)
011 2 4.)
110 3 5.)
V. Decode the following messages that encounter noises in the channel where the channel encoding uses repetition code where .
1.) 101101011100110 __________________________
2.) 010010001010011 __________________________
3.) 111110110010100 __________________________
4.) 100100001010010 _________________________
5.) 101111101111110 _________________________