132k views
5 votes
A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB. Unfortunately, your friend set the bit on the wire once every 2 seconds, but you read the wire once every second. Assuming that the first bit was sent and read at the same time, what message did you receive instead?

User Tanishia
by
5.7k points

1 Answer

4 votes

Assuming that the message wire does not reset the bits after each sending cycle done, the message will be AABB read here for first 4 seconds.

Explanation :

As your friend is setting the bit after two seconds so the same message will be read by you when you will check second time expecting new bit set by him.

So...

After first second it will be A.

Second second it will be A again because the friend has not set the bits for new message and same message will be in the wire.

Third second the wire will have B as the bits were set this time considering the message is set by the friend after each 2 seconds.

Forth time it will be same B because no bits are set for new message in the wire.

User Greaka
by
6.0k points