In a computer game, 65 different control commands are recognized. How many bits are required in the memory block to encode

In a computer game, 65 different control commands are recognized. How many bits are required in the memory block to encode each instruction? Are there enough allotted bits to encode 120 instructions?

Let’s use Hartley’s formula and choose such an exponent of two so that the result of the construction is greater than or equal to 65. The minimum possible number in this case is 7 (since 2 ^ 7 = 128).
Answer: 7 bits; yes, 7 bit praises for encoding 120 commands.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.