Matm Finals
Matm Finals
Matm Finals
bit (short for "binary digit") is the smallest unit of measurement used to quantify
computer data. It contains a single binary value of 0 or 1
Channel Coding -With this problem at hand, additional process of encoding is required.
Is defined as adding some form of redundancy to the source encoded message so that
the errors can be detected or even corrected
Parity Check -Parity check is also called as “Vertical Redundancy Check (VRC)”
Where in single bit is added to the message as redundancy bit.
A bit string is said to have an odd parity if there is an odd number of 1s.
There are two types of parity bits in error detection, they are
Even parity if there is an even number of 1s. We add redundancy bit to message such
that it will become an even parity.
Odd Parity -If the data has even number of 1’s, the parity bit is 0.
Repetition Code: ENCODING -In coding theory, the repetition code is one of the most
basic error-correcting codes. In order to transmit a message over a noisy channel that
may corrupt the transmission in a few places, the idea of the repetition code is to just
repeat the message several times.
Repetition Code
In coding theory, the repetition code is one of the most basic error-correcting
codes.
In order to transmit a message over a noisy channel that may corrupt the
transmission in a few places, the idea of the repetition code is 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.
Example
Suppose that the source encoded message is 101 where k=3. If you choose r=
2, the message must be repeated 2r +1 = 2(2) + 1 or 5 times. This will result to
101101101101101
MODULAR ARITHMETIC -Is a system of arithmetic for integers, which considers the
remainder
-Modular arithmetic, numbers "wrap around" upon reaching a given fixed quantity (this
given quantity is known as the modulus) to leave a remainder.
CHECK CODES AND CHECK DIGITS -There are several methods in producing
identification numbers which are unique. In the following methods, modular arithmetic is
used to produce and verify identification numbers. The examples are; the Universal
Product Code (UPC), United States Postal Services (USPS), the Credit Card, and the
International Standard Book Number.
Universal Product Code (UPC) -is mainly used in products sold in department stores
and groceries. The UPC consists of barcodes with 12 digits where the last one is the
check digit.
International Standard Book Number (ISBN) -is used on books where usually found
at the last page of the book. ISBN can be ISBN-10 or ISBN-13 where they used 10
digits or 13 digits string of number respectively with the last digit as the check digit.
United States Postal Services (USPS) -is consist of 11 digits, while the Credit Card
uses 16 digits where both of them uses their last digits as the check digits.
*NOTE(For Credit Card): ADD ALL THE DIGITS, TREATING THE TWO-DIGIT
NUMBERS AS TWO SINGLE DIGITS.
-Originated from two Greek words such as “KRYPTO” which means hidden and
“GRAPHENE” which means writing.
ENCRYPTION -is the process of transforming plain text into codes form using a certain
algorithm. It is the process of changing plain text to coded message.
DECRYPTION -is the process of returning/converting back the coded message into
plain text. It is the process of returning/converting back the coded message into plain
text.
KEY - refers to the strings of information that is used to reveal the encryted message
into readable form.
SHIFT CIPHER (CEASAR CIPHER) -it is the simple type of substitution cipher.
MODULO OPERATOR -the sender of the uses the key K to encrypt and to
decrypt the secret message.
The key K may have any integer value from 0-25 and this will be shared to
the person/s who will be receiving the secret message.
To encrypt the message:
1. Express the letters of the alphabet into an integer from 0 to 25, that matches its
order,
for example A = 0, B = 1, C = 3 ….., then label them as C
2. Calculate Y = (C+ K) mod 26 , for every letter of the message.
3. Convert the number Y into a letter following the order of the letter of the
alphabet.
-It means that the numbers of representative (the seat) is proportion to the population
size being represented.
Note:
The Jefferson Plan -This method uses a modified standard divisor the arrives at the
correct or exact numbers of representative using trial and error. The modified uses an
assume value always smaller than the standard divisor
Huntington – Hill apportioned method -The method that make use of equal
proportion. The new additional representative to a sub – group must have the highest
Huntington number.
Methods of voting
Majority Voting -over 50 % of the people voting must vote for the candidate
PLURALITY METHOD -Each voter votes for one candidates, and the candidate with
the most votes wins.
-It is a preferential voting method and candidates that have the least first place votes get
eliminated until one candidate has majority of first place votes.
MAJORITY VOTING
Majority Vote: over 50 % of the people voting must vote for the candidate
PLURALITY METHOD
Voting Method in which the candidate with the most first-place vote is the
winner.
BALLOT
POINTS
ST
B gets 3 points
1 B
ND
D gets 2 points
2 D A gets 1 point
PLURALITY BY ELIMINATION METHOD
The plurality with elimination voting method is also known as an instant run-
off voting and sequential run-off voting. It is a preferential voting method and
candidates that have the least first place votes get eliminated until one candidate
has majority of first place votes.
PAIRWISE COMPARISON VOTING METHOD
Compare each two candidates head-to-head.
Award each candidate one point for each head-to-head victory.
The candidate with the most points wins.