Binary codes Flashcards

1
Q

What is the general formula for the amount of different binary numbers which are required to encode K symbols

A

N = 2^n ≥ K

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

How would one calculate the amount of different ways that K numbers can be encoded

A

N!/( N-K )!

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

How does the BCD code work ? What is the problem with this code ?

A

The BDA code works by encoding numbers from 0 to 9 in 4 digit binary numbers by using the power of two weights.

The problem with BDA code is that it contains zero which can cause problems during transmission

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

How does the Aiken code work ?

A

Aiken code works by using the BDC and changing the value of each weight into 2,4,2,1 still following the 4 digit limit respectively.

What is special about this code is that it contains the 1s complement of both the numbers which were encoded and the binary codes

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

What are forbidden codes ?

A

Forbidden codes are numbers which binary numbers with no assigned symbol to it

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

How does XS - 3 work ?

A

XS - 3 works by taking the BDC binary code and adding 0011 to each code. What this does is that it leaves out the first and the last three numbers those resolving the error detection issues which previous codes had

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

How does the BI-quinary code work ?

A

BI-quinary code works by reserving 7 digits for encoding numbers ranging from 0 to 9. It works by splitting the code in two parts. The first part ( ranging from 0 to 4 ) has 0 as its 7th digit and the rest follow the 4,3,2,1,0 position value rule. Each code in the second part ( encoding the numbers from 5 to 9 ) starts with 1 as its 7th digit and copies the first part

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

What is Hamming distance ?

A

Hamming distance is the number of changed bits moving from one code word to another

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

What is the minimum distance ?

A

It is the smallest amount of changing bits comparing any two codes in some binary code

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

What is Gray code and what are its uses ?

A

Gray code is a binary coded with 1 as the hamming distance and its commonly used in position oriented A/D converters since it eliminates error in sequential change
- non weighted

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

What is ASCII code ? Two types ? How many bits do they use ?

A

ASCII code is a type of binary code which was created for encoding various letters and symbols. There are two different types of ASCII code: Basic and Extended. The basic ASCII code contains 7 bits and the Extended ASCII code contains 8 bits.

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

EBCDIC code ?

A

Extended binary coded decimal interchange code which adds even more symbols compared to the ASCII code but only the IMB machines use it.

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