MATM FINALS: CODING THEORY AND MODULAR ARITHMETIC Flashcards

1
Q

____________-is the study of the properties ofcodesand their respective fitness for specific applications. Codes are used fordata compression,cryptography,error detection and correction,data transmissionanddata storage.

A

Coding theory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

__________ are studied by various scientific disciplines, such asinformation theory,electrical engineering,mathematics,linguistics, andcomputer science—for the purpose of designing efficient and reliabledata transmissionmethods.

This typically involves the removal of redundancy and the correction or detection of errors in the transmitted data.

A

Codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

PROCESS OF CODING

A

SENDER > SOURCE ENCODER > COMMUNICATION CHANNEL > SOURCE DECODER > RECEIVER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Is the physical medium through which information is transmitted.

Ex: telephone lines, internet cables, fiber-optic lines, and air. Some storage data can be considered channels (CD-ROMS, hard drives).

A

Communication Channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It alters the message in the channel that will cause disruption and error in the messages.

A

Noises

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In transmitting messages, coding is defined as source coding and channel coding.

A

Source Coding and Channel Coding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Two Processes in Coding
__________ - is transforming messaged into bits of message that is Suitable in communication.

___________ - is the opposite process of encoding.

A

Encoding

Decoding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

is defined as converting the message from the sender into bits suitable to the communication channel.

A

DATA COMPRESSION OR SOURCE ENCODING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

_______________- is the smallest unit of measurement used to quantify computer data. It contains a single binary value of 0 or 1.

An example of this is the ASCII (AMERICAN STANDARD CODE) that converts each character int the message to a byte of 8 bits.

A

bit(short for “binary digit”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

a____- is a unit of data that is eight binary digits long.

is the unit most computers use to represent a character such as a letter, number or typographic symbol.

A

byte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

With this problem at hand, additional process of encoding is required known as _______________

Is defined as adding some form of redundancy to the source encoded message so that the errors can be detected or even corrected.

A

Channel Coding.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

is also called as “Vertical Redundancy Check (VRC)”

Where in single bit is added to the message as redundancy bit.

The goal in doing parity check is to end up with an even parity.

A bit string is said to have an________ if there is an odd number of 1s.

Even parity if there is an even number of 1s. We add redundancy bit to message such that it will become an ___________.

A

Parity Check

odd parity

even parity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

“Perform the channel encoding by adding a redundancy bit of size 3.”

A

it is where you repeat the very last number to the given redundancy bit + while making sure it’s even

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In coding theory, therepetition codeis one of the most basic error-correctingcodes.

In order to transmit a message over a noisy channel that may corrupt the transmission in a few places, the idea of therepetition codeis to just repeat the message several times.

Suppose that the source encoding is already done and that the encoded message is of fix length k. The channel encoding by repetition is performed by taking the k bits then repeating it 2r + 1, where r is greater than or equal to 1 is a fixed integer.

formula: 2r + 1 <— this is what you’ll use to get how many times you’ll repeat the message (input r value)

“source encoded message”
“k” is how many you’ll divide it in

(final answer is the 110110110110)

A

Repetition Code: ENCODING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Example: Assume that the message transmitted through a noisy channel and distorted. The received message is 111001101110010 .The channel encoding uses repetition code where k= 3. Decode the received message.

Solution: 111 001 101 110 010

First Bit - Consider the most frequent bit in positions 1,4,7,10, and 13
Second Bit – Consider the most frequent bit in positions 2,5,8,11,and 14
Third Bit – Consider the most frequents bit in positions 3, 6, 9, 12, and 15

111/001/101/110/010
1 2 3 / 4 5 6/7 8 9 /10 11 12 /13 14 15
Decoded Message : 111

do it like:
1st 2nd 3rd
1s:
0s:
then count how many

A

Repetition Code: DECODING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Also called as Clock Arithmetic.
Is a system of arithmetic forintegers, which considers theremainder .
In modular arithmetic, numbers “wrap around” upon reaching a given fixed quantity (this given quantity is known as the modulus) to leave a remainder.

A

MODULAR ARITHMETIC

17
Q

Let a and b are integers and n is a natural counting number.

formula: a≡b(modn)
(a is congruent to b modulo n)

If the difference of a and b is divisible by n.
In addition, if n >0, and r is the remainder when b is divided by n, the integer r is referred to as the least residue.

EXAMPLE: 12≡36(mod 4)
To verify: 36-12=24 and 24 is divisible by 4

1st: subtract 36 to 12 = 24
2nd: 24 divided by 4 (mod 4)
3rd: identify if congruent or not

  • it’s congruent if it isn’t decimal

Therefore, the expression is a congruence.

A

CONGRUENCE

18
Q

To determine the least residue is to simply get the remainder when b is divided by m.

b(mod m) means b divided by m.

m is referred to as the modulus (divisor)

Finding the least Residue
1. Determine the least residue of 89 (mod 9)
89/9 = Quotient of 9 and remainder of 8
Therefore, 89 (mod 9) =8

  1. Determine the least residue of 120 (mod 10)
    120 is exactly divisible by 10.
    Therefore, 120 (mod 10) = 0
A

LEAST RESIDUE

19
Q

A) Modulo addition is defined (a+b)mod n
B) Modulo subtraction is defined as (a-b) mod n
C) Modulo multiplication is defined as (a*b) mod n
D) Modulo division is defined as (a/b) mod n

– + – (mod –)

A

OPERATIONS IN MODULAR ARITHMETIC