Computer Science, asked by BishBeBack2769, 1 year ago

A sender sends a series of packets to the same destination using 5-bit sequence numbers. if the sequence numbers start with 0, what is the sequence number of the 100th packet?

Answers

Answered by writersparadise
8
The sequence number of the 100th packet is 344.

Five bit sequence indicates that each digit has five possible values, ranging from zero to four in the packet address.

The sequence number of the 100th packet is 300 because the sequence starts with 000 and increments 1 at the right-most digit. Hence in each iteration, it will go through five values (0 - 4) in the unit place and therefore 20 iterations will take place. Similarly the successive places will increment.

After 20 iterations, the last sequence will be 344.
Similar questions