Please enable JavaScript.
Coggle requires JavaScript to display documents.
Memory and Storage - Coggle Diagram
Memory and Storage
Secondary Storage
-
-
Magnetic storage (HDD)
-
-
Advantages: cheap, large capacity, relatively fast write speed
Disadvantages: mechanical parts, less durable, less portable
-
-
-
Flash memory
Portable, durable, low cost
-
Examples: USB sticks, SD cards and phone storage
-
Compression
-
-
Lossy compression
-
-
-
Can cause digital artefacts, such as noise and block
-
-
-
-
FIle formats
-
-
-
GIF: lossless, images (multiple frames)
-
-
FLAC / ALAC: lossless, music
Primary Storage (Memory)
-
-
-
-
RAM vs ROM
RAM: larger, writable, volatile; stores running programs
ROM: smaller, read-only, non-volatile; stores BIOS and bootstrap
-
Units
-
Binary
-
-
-
Used for numbers, text, images, sound and instructions
-
Maximum values
-
16 bits: 2¹⁶ - 1 = 65,535
32 bits: 2³² - 1 = 4,294,967,295
Maximum = 2ⁿ - 1, where n is the number of bits
Data Storage
Characters
Representing characters
-
Includes uppercase/lowercase letters, numbers and punctuation
-
ASCII
-
-
-
-
Includes letters, numbers, punctuation and spaces
-
Unicode
-
16-bit Unicode: 65,536 combinations (2 bytes)
-
Text vs numbers
-
-
-
-
In Python, convert string input using int()
-
Numbers
Binary and denary
Denary: base 10, digits 0-9
Binary: Base 2, digits 0-1
8-bit column values: 128, 64, 32, 16, 8, 4, 2, 1
-
-
Hexadecimal
-
-
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
-
-
Hex conversions
Hex to denary: multiply left digit by 16, then add right digit
Denary to hex: divide by 16; quotient is first digit, remainder is second
-
-
-
-
Binary shifts
-
-
-
Right shift one place = divide by 2, rounding down
-
Images
Image types
-
-
Formats: BMP, JPG, GIF, PNG, TIFF (bitmap); SVG (vector)
Pixels and resolution
-
-
-
Expressed as width × height, e.g. 1920 × 1080
-
-
RGB
Colours made from red, green and blue
-
-
-
-
Image metadata
Data about the image, rather than the image itself
Includes colour depth, resolution, date created and author
-
-
Sound
-
Sound sampling
-
-
-
-
CDs typically use 44,100 Hz (44.1 kHz)
-
-
-
Compression and formats
-
Lossless examples: FLAC, ALAC, WMA Lossless
-
-