A small question

Source: Internet
Author: User
1?
0 ~~ 1 m

 

2) a computer has 16 characters in length and 2 MB in size. How can this problem be solved?
0 ~~ 2 m

Is there any relationship between the word length and the Word Length? What is the difference between the half-character and the word length? How can this problem be solved?

==========================================

Solution 1) 8 m/16 = 2 ^ 3*2 ^ 10*2 ^ 10/2 ^ 3 = 2 ^ 20 = 1 m, so the IP address of the hosts region is 0 ~ 1 m.

The solution is to use one address for each word, so that each address can contain eight characters. The word population is 8 Mb, so the formula is above.

 

Solution 2) the word length is 16, and the half-Address is used, that is, 8 storage units (just a word token) are used together with one address. The formula is as follows:
Capacity/number of characters that each address can access = maximum Address (2 m/1 = 2 m .......

 

//////////////////////////////////////// ///////

However, it was suggested that the word always belongs to 16 bits, and the character always belongs to the old man's family. If this method is used for calculation, it is:

One address is used for every two words, so one address is 16/8*2 = 4 characters, 16 Mb/4B = 4 m

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.