chapter 1.4 representing information as bit patterns

14
Chapter 1.4 Representing Information as Bit Patterns

Post on 15-Jan-2016

258 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 1.4 Representing Information as Bit Patterns

Chapter 1.4

Representing Information as Bit Patterns

Page 2: Chapter 1.4 Representing Information as Bit Patterns

Representing Information as Bit Patterns

Representing text Representing Numeric Values Representing Images Representing Sound

Page 3: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Information in the form of text is normally represented by means of a code in which each of the different symbols in the text is assigned a unique bit pattern.

The text is then represented as a long string of bits in which the successive patterns represent the successive symbols in the original text.

Page 4: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

ASCII American Standard Code for

Information Interchange Appendix A shows a portion of ASCII

in an eight-bit-per-symbol format.

Page 5: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Page 6: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Example: Message “Hello” in ASCII

01001000 01100101 01101100 01101100 01101111 H e l l o

Page 7: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Unicode, was developed through the cooperating of several of the leading manufacturers of hardware and software and is rapidly gaining support in the computing community.

It uses a unique pattern of 16 bits to represent each symbol.

It consists of 65,536 different bit patterns Languages as Chinese, Japanese, and

Hebrew can be represented.

Page 8: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Question 1 on page 40 Here is a message encoded in ASCII

using eight bits per symbol. What does it say?

01000011 01101111 01101101 01110000 01110101 01110100 01100101 01110010 00100000 01010011 01100011 01101001 01100101 01101110 01100011 01100101

Page 9: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Look it up in the ASCII Table

Page 10: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

Page 11: Chapter 1.4 Representing Information as Bit Patterns

Representing Text

The answer is: Computer Science.

Page 12: Chapter 1.4 Representing Information as Bit Patterns

Representing Numeric Values

Binary NotationFractions in Binary

Two’s Complement NotationNegative valuesLength of the Bit pattern

Excess notationLength of the bit pattern

Page 13: Chapter 1.4 Representing Information as Bit Patterns

Representing Numeric Values

Floating-Point NotationDifferent fields (sign, exponent,

mantissa)Sign bitIn the book, we only use 1 byte, which

is 8 bits lengthWhere the radix point is

Page 14: Chapter 1.4 Representing Information as Bit Patterns

Representing Numeric Values

Floating-Point NotationExtracting floating point

• How to move the radix point • (+->R, - ->L)