15. (a) How many data bits are required to store one of the decimal digits 0 thr
ID: 3729980 • Letter: 1
Question
15.
(a) How many data bits are required to store one of the decimal digits 0 through 9? 4bits
(b) How many parity bits are required to correct a single error? 8
(c) Write a single-error correction code using even parity. Underline the parity bits.
(d) What is the code distance of your code?
16. A set of eight data bits is transmitted with the single-error correction code of Figure 9.25. For each of the received bit patterns below, state whether an error occured. If it did, correct the error.
(b) 1 1 0 1 0 0 1 1 0 0 1 0
(c) 0 0 0 0 1 0 1 1 0 1 0 0
(d) 1 0 1 1 0 0 1 0 0 1 0 0
link to figure 9.25 (since images don't seem to work): https://drive.google.com/file/d/1BlUPxCn4iF___7HQMwAWWqhW7G1MxxtY/view?usp=sharing
(a) Figure 9.28 shows the RAID level 01 and RAID level 10 systems with eight physical disks. Draw the equivalent systems for level 01 and level 10 with four physical disks.
(b) Assume that two disks go bad. The sequence BBGG means that the first and second disks are bad and the third and fourth disks are good. With this scenario, the RAID level 01 disk is good because the two bad disks are in the same first striped disk, but the RAID level 10 disk is bad because the two bad disks are in the same first mirrored disk. How many permutations of four letters with two B’s and two G’s are there?
(c) Tabulate each permutation, and for each one determine whether the RAID disk is good or bad for levels 01 and 10.
link to figure 9.28: https://drive.google.com/file/d/1amIXERmLb_LQ8ILQn3STSmH1hw01RKxl/view?usp=sharing
Explanation / Answer
15)
a) How many data bits are required to store one of the decimal digits 0 through 9?
Ans) 4 bits needed to represent decimal 0-9
Explanation:-
0 --> 0000 1 --> 0001 2--> 0010 3 -->>0011 4 -->0100 5-->0101
6 --> 0110 7 --> 0111 8 --> 1000 9 -->1001
-----------------------------------------------------------------------------------------------------------------
b) How many parity bits are required to correct a single error?
Ans) 3 bit
Explanation:-
we are using formulae 2r >=d+r+1
where,r=number of parity bit and d=number of data bits
Here, 23 >= 4+3+1
-----------------------------------------------------------------------------
c) Write a single-error correction code using even parity. Underline the parity bits.
Ans) Conside decimal number 1,
0001 is the data to be transmitting.
Then we need 3 parity bits for detection(23 >= 4+3+1),
P1 P2 D1 P3 D2 D3 D4
1 0 0 0 0 0 1
Using even parity hamming.
If data change into 0000 while transmitting,then
receiving end it detect and correct by following way,
actual data 100001
CorreptedData 1000000
XOR 0000001
So, last bit error detected and correct it .
--------------------------------------------------------------------------------------------------------------------------
d) What is the code distance of your code?
Ans) 2
Explanation:-
Distance-1=error detection
So,1 bit error=2-1
Eg:-
0001 data
00011 parity added message
00000 changed data
so there is 2 bit change , meand distance=2
----------------------------------------------------------------------------------------------------------------------
16) A set of eight data bits is transmitted with the single-error correction code .Check error occured or
not
Ans)
a) 1 1 0 1 0 0 1 1 0 0 1 0 -->yes error occured
We transmit following,
11 0 1 1 0 01 0 1 1 0 0
1110 is the transmitting parity bit
but we get 1111 parity bit so correct 1 bit
it will get
1 1 0 1 0 0 1 1 0 0 0 0
--------------------------------------------------------------------------------
b)0 0 0 0 1 0 1 1 0 1 0 0 -->yes error occure
We transmit following,
11 0 1 1 0 01 0 1 1 0 0
1110 is the transmitting parity bit
but we get 0001 parity bit so correct 1 bit
we get
0 0 0 0 1 0 1 1 0 1 1 0
----------------------------------------------------------------------------------------------------------------------
c) 1 0 1 1 0 0 1 0 0 1 0 0 --->error occure
We transmit following,
11 0 1 1 0 01 0 1 1 0 0
1110 is the transmitting parity bit
but we get 0001 parity bit so correct 1 bit
we get,
1 0 1 1 0 0 1 0 1 1 0 0
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.