Download presentation

Presentation is loading. Please wait.

Published byAlyssa Hudson Modified over 2 years ago

1
Looking Inside the Black Box Input Output CPU Storage –Secondary - Hard Drives –Primary - RAM, ROM

2
Storing Data Computers store Digital Data Two type of data –Digital – can be compressed –Analog Digital data – stored as digital data Text data – stored as ASCII codes (digital) Analog data – converted to digital

3
Storing Data – Binary Numbers Binary Numbers

4
Storing Data – Binary Numbers

5
Storing Data – Binary Numbers 8 bits 0 = = = = = bits 0 = = = = = Used to store digital data

6
Storing Data – Hexadecimal Base 16 0 = = = = = = = = = = 1001 A = 1010 B = 1011 C = 1100 D = 1101 E = 1110 F = 1111 Easy way to represent binary numbers Easy to convert between hex and binary

7
Storing Data – ASCII DIGIT ASCII REPRESENTATION LETTER A B C D E F G H I ASCII REPRESENTATION Used to store text based

8
32 blank A B C D E F G I I J K L M N O P Q R S T a b c d e f g h i j k l m n o p q r s t u

9
ASCII Full ASCII Table F o u r a n d s e v e n

10
Storing Data – Analog Data Must be converted to Digital Sample demo

11
Converting Between Number Systems Binary to Decimal Decimal to Binary Binary to Hex Hex to Binary

12
Converting Between Number Systems Decimal Binary

13
Converting Between Number Systems Binary >Decimal > decimal > decimal Decimal > Binary 128 > binary 100 > binary Hex > Binary 1A > binary 0F > binary Binary > Hex > hex > hex ASCII > Decimal A > decimal a > decimal Decimal > ASCII > ascii > ascii

14
Coding Data for Processing by a Computer Pixels Data Compression –Lossy - examples –Lossless - examples –?Examples of file types

15
Data Compression Binary Data \ 12 bytes Compressed Data 4,0 16 7,255 5 bytes

16
Compression Examples BMP (422kb)

17
Compression Examples JPG 10% (66kb)

18
Compression Examples JPG 85% (15kb)

19
Compression - LZ Lempel – Ziv WinZip Dictionary to eliminate redundancy From - HowStuffWorks.com

20
Compression - LZ Example –"Ask not what your country can do for you -- ask what you can do for your country. = 79 chrs –Dictionary: 1.ask 2.what 3.your 4.country 5.can 6.do 7.for 8.you u 1 not " = 37 chrs From - HowStuffWorks.com

21
Compression - LZ Plus Dictionary = 37, Total = 74 vs 79 Real LZ uses patterns not words 1.ask__ 2.what__ 3.you 4.r__country 5.__can__do__for__you u "1not__ " = 16 chrs Dictionary = 41, Total = 57 From - HowStuffWorks.com

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google