(IT ) Week3
(IT ) Week3
Information
Representation
손 우형
whsohn61@cau.ac.kr
Where we are
• Part 1. Hardware • Part 3. Communications
• Computer 구조 • Internet
• Bit, Byte • WWW
• CPU • Security & Privacy
• Easily extended
Digital Data Trends
Analog to Digital Conversion
Encoding sound
• Need to measure intensity/loudness often enough and accurately enough that we can reconstruct
it well enough.
• Higher frequency = higher pitch
• Human ear can hear ~ 20Hz to 20KHz
• Taking samples at twice the highest frequency is good enough (Nyquist)
• MP3 audio compresses by clever encoding and removal of sounds that won't really be heard
• Data rate is ~ 1 MB/minute
ASCII: American Standard Code for
Information Interchange
• An arbitrary but agreed-upon representation for USA.
• Widely used everywhere
• Unicode
• Multiple character-set standards in different geographic or linguistic regions
• Unicode.org
Important Ideas
• Number of items and number of digits are tightly related:
• One determines the other
• Maximum # of different items = base# of digits
• e.g., 9-digit SSN: 109 = 1 billion possible numbers
• e.g., To represent up to 100 “characters”: 2 digits is enough.
• But for 1000 characters, we need 3 digits
• Addition:
• 0+0=0
• 0+1=1
• 1+0=1
• 1 + 1 = 10
• 11012 = 1 x 20 + 0 x 21 + 1 x 22 + 1 x 23
• =1x1+0x2+1x4+1x8
• = 1310
Converting decimal to binary
• Repeat while the number is > 0:
• Divide the number by 2
• Write the remainder (0 or 1)
• Use the quotient as the number and repeat
• The answer is the resulting sequence in reverse (right to left)
order
• e.g. 1310
Divide 13 by 2, write "1", number is 6
Divide 6 by 2, write "0", number is 3
Divide 3 by 2, write "1", number is 1
Divide 1 by 2, write "1", number is 0
Answer is 11012
Hexadecimal notation