transforming data into information this lesson includes the following sections: how computers...

17
Transforming Data into Information

Upload: johnathan-hensley

Post on 29-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Transforming Datainto Information

Page 2: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

This lesson includes the following sections:

• How Computers Represent Data

• How Computers Process Data

Page 3: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

• Binary Numbers

• The Binary Number System

• Bits and Bytes

• Text Codes

How Computers Represent Data

Page 4: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

How Computers Represent Data– Binary Numbers

• Computer processing is performed by transistors, which are switches with only two possible states: on and off.

• All computer data is converted to a series of binary numbers – 1 and 0. For example, you see a sentence as a collection of letters, but the computer sees each letter as a collection of 1s and 0s.

• If a transistor is assigned a value of 1, it is on. If it has a value of 0, it is off. A computer's transistors can be switched on and off millions of times each second.

Page 5: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data
Page 6: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Base 10 Base 2

0 0

1 1

2 10

3 11

4 100

5 101

6 110

7 111

8 1000

9 1001

10 1010

• To convert data into strings of numbers, computers use the binary number system.

• Humans use the decimal system (“deci” stands for “ten”).

• The binary number system works the same way as the decimal system, but has only two available symbols (0 and 1) rather than ten (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9).

The Binary Number System

Page 7: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

• Algorithms are central to computing, and are well defined procedures for solving problems.

• Any algorithm involves operations on symbols (representations) over some domain.

• There can be NO operation without a representation.

• Our adopted number notation has (1) a base of 10 (determines the magnitude of a place). (2) the value of a digit depends on its position (digit x Baseposition) (3) is restricted to 10 re-usable digits

the 5 in 25 = 5 x 100 = 5the 5 in 51 = 5 x 101 = 50the 5 in 4538 = 5 x 102 = 500

Different Number Representations

Page 8: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Given the adoption of the Hindu-Arabic representation of numbers, this defines the algorithms for performing operations.

For instance the addition of 2 digits which overflows the representation, causes a "carry" to occur, and this is an increment of the digit in the next place value.

Representations and Operations

the Roman number system doesn't use place value

• relies on a repetition of symbols, eg. CCLXXXII for 282.

• the order of the digits had no meaning (originally).

With this representation what was the operation of addition?

Page 9: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

The representation in binary follows the same rules as decimal.

110(binary) = 1 x 22 + 1 x 21 + 0 x 20 = 6(decimal)

Binary Representations and Operations

Binary Arithmetic

Operation using binary are the same as decimal, but with the following simple rules.

0 + 0 = 0 0 + 1 = 1

1 + 0 = 1 1 + 1 = 0 with a carry of 1

Page 10: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Binary Addition

1 1 0

1 1 1

11

1

0

1

1

= 6

= 13

= 7

Why use a binary system in a computer?

Decimal Addition

Page 11: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Reliability and Binary Systems

We use binary because we can more reliably engineer computer systems.

Binary data is represented by the state of a electrical switches. Switches have only two states, on or off, measured as a high voltage or a low voltage.

Decimal data would require an electrical device capable of consistently differentiating between ten states. A less reliable system.

Babbage had the same problems with his “mechanical” computers. Precision machining of “decimal” cogs was difficult.

Page 12: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

• A single unit of data is called a bit, having a value of 1 or 0.

• Computers work with collections of bits, grouping them to represent larger pieces of data, such as letters of the alphabet.

• Eight bits make up one byte. A byte is the amount of memory needed to store one alphanumeric character.

• With one byte, the computer can represent one of 256 different symbols or characters.

.

How Computers Represent Data - Bits and Bytes

Page 13: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

1 0 1 1 0 0 1 01 0 0 1 0 0 1 01 0 0 1 0 0 1 11 1 1 1 1 1 1 1

Page 14: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

• A text code is a system that uses binary numbers (1s and 0s) to represent characters understood by humans (letters and numerals).

• An early text code system, called EBCDIC, uses eight-

bit codes, but is used primarily in older mainframe systems.

• In the most common text-code set, ASCII, each character consists of eight bits (one byte) of data. ASCII is used in nearly all personal computers.

• In the Unicode text-code set, each character consists of 16 bits (two bytes) of data.

How Computers Represent Data - Text Codes

Page 15: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Code Character

00110000 0

00110001 1

00110010 2

00110011 3

00110100 4

00110101 5

01000001 A

01000010 B

01000011 C

01000100 D

01000101 E

Examples from theASCII Text Code

Page 16: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

Where Processing Occurs:

• The Control Unit

• The Arithmetic Logic Unit

• Machine Cycles

How Computers Process Data

Page 17: Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data

• Processing takes place in the PC's central processing unit (CPU).

• The system's memory also plays a crucial role in processing data.

• Both the CPU and memory are attached to the system's motherboard, which connects all the computer's devices together, enabling them to communicate.

How Computers Process Data – Where Processing Occurs