Professional Documents
Culture Documents
Ordonia
Instructor
Chapter III
0+0=0
0+1=1
1+0=1
1 + 1 = 0, and carry 1 to the next more significant bit
Binary Subtraction
Rules of Binary Subtraction
0-0=0
1-0=1
1-1=0
0 - 1 = 0, with borrow 1 from the next more significant
bit = 1
Binary Multiplication
Rules of Binary Multiplication
0x0=0
0x1=0
1x0=0
1x1=1
Binary Division
Binary Equivalents
1 Nybble (or nibble) = 4 bits
1 Byte = 2 nybbles = 8 bits
1 Kilobyte (KB) = 1024 bytes
1 Megabyte (MB) = 1024 kilobytes = 1,048,576 bytes
1 Gigabyte (GB) = 1024 megabytes = 1,073,741,824 bytes
Octal Equivalence
85 84 83 82 81 80 8-1 8-2
32,768 4,096 512 64 8 1 .125 .015625
Hexadecimal Number System
Characteristics
Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
Letters represents numbers starting from 10.
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
Also called base 16 number system
Each position in a hexadecimal number represents a 0
power of the base (16).
Last position in a hexadecimal number represents a x
power of the base (16).
Hexadecimal Equivalence
164 163 162 161 160 16-1 16-2
65,536 4096 256 16 1 0.0625 .00390625
American Standard Code for Information Interchange
(ASCII /ˈæski/ ASS-kee)
The standard code was first proposed by the American
National Standards Institute or ANSI in 1963, and finalized in
1968 as ANSI Standard X3.4. The purpose of ASCII was to allow
compatibility between different types of data processing
equipment including computers and teletype machines.
File size = Time (s) x Sample Rate (Hz) x Bit Depth x Number of Channels
Audio File Size
Example 1
Calculate the size of a 40 second audio file sampled at 44.1KHz using a sample
depth of 16 bit. The audio is mono.
Audio File Size
Example 1
Calculate the size of a 40 second audio file sampled at 44.1KHz using a sample
depth of 16 bit. The audio is mono.
Calculate the size of a 40 second audio file sampled at 44.1KHz using a sample
depth of 16 bit. The audio is mono.
Calculate the size of a 40 second audio file sampled at 44.1KHz using a sample
depth of 16 bit. The audio is mono.
File size = Time (s) x Frames per Second x Pixels per Frame x Bit Depth
Video File Size
Example 1
File Size = Time x Frames per Second x Pixels per Frame x Bit Depth
Video File Size
Example 1
File Size = Time x Frames per Second x Pixels per Frame x Bit Depth
Video File Size
Example 1
File Size = Time x Frames per Second x Pixels per Frame x Bit Depth
= 30 x 24 x 800 x 600 x 16
= 5,529,600,000 bits
File Size = Time x Frames per Second x Pixels per Frame x Bit Depth
Video File Size
Example 2
File Size = Time x Frames per Second x Pixels per Frame x Bit Depth
Video File Size
Example 2
File Size = Time x Frames per Second x Pixels per Frame x Bit Depth