2. Alice wants to send another data stream to Bob over the internet. The data stream is 11110111. Alice adds parity bit to help Bob to identify if the data stream had errors or not. Alice has: 11110111 What will be the message with parity? Bob receives the following data stream, Bob receives: 1111101110 Can he identify that there was an error ?
Answers & Comments
Explanation:
Alice wants to send another data stream to Bob over the internet. The data stream is 11110111. Alice adds a parity bit to help Bob identify if there are any errors. The parity bit is calculated by counting the number of ones in the data stream and adding a 1 or 0 to make the total number of ones even or odd.
In this case, the original data stream 11110111 has 7 ones, which is odd. So, Alice adds a parity bit of 1 to make the total number of ones even. Therefore, the message with parity would be 111101111.
Now, Bob receives the data stream 1111101110. He can identify that there was an error because the total number of ones in the received data stream is 6, which is even. This means that there was a bit error during transmission.