Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.

Slides:



Advertisements
Similar presentations
Chapter 4: Representation of data in computer systems
Advertisements

Reducing File Sizes. File Formats In this lesson, we will be looking at: How do we measure file size? Why are some files bigger than others? Why should.
Processing Data.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Data Representation CS105. Data Representation Types of data: – Numbers – Text – Audio – Images & Graphics – Video.
1 Chapter Overview Computer Communication The Computer Bus Objectives  Understand how a computer transmits and receives information.  Explain the principles.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Introduction to Information Technology
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
Bits and Bytes.
Representing Information in Binary (Continued)
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
Higher Computing Data Representation.
Abstraction – Number Systems and Data Representation.
Bits & Bytes: How Computers Represent Data
Data and Program Representation
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
Chapter 2 Computer Hardware
Binary Arithmetic & Data representation
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
Hardware Data Storage.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Text and Graphics September 26, Unit 3.
What is a computer? A computer is a device that:
Numerical Representation Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg 1.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Operating Systems Foundation Computing Half the people you know are below average.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
CS 1308 Computer Literacy and the Internet File Systems and Directories.
Data Representation Robin Burke IT 130. Outline Data Representation Binary Numbers Image types.
Data Representation The storage of Text Numbers Graphics.
Networking for Home and Small Businesses –.  Explain the binary representation of data.
Data Representation.
2.1.4 Data Representation Units.
Layer 6 Presentation Layer. Overview Now that you have learned about Layer 5 of the OSI model, it is time to look at Layer 6, the presentation layer.
Chapter 2 In Brief…. Chapter 2 …Is a little boring. Sorry. But it contains material you need to be familiar with.
Computer Fundamental - ITD13821 Lecture 01 Extra Numbering System.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Binary Numbers. Base 10 and Base 2  We normally work with numbers in base 10.  In base 10 we use the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.  Everything.
Once you have been through these notes you will need to complete the workbook.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
1 A Balanced Introduction to Computer Science David Reed, Creighton University ©2005 Pearson Prentice Hall ISBN X Chapter 12 Data Representation.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Numerical Representation Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Understanding binary Understanding Computers.
Storage Hardware This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Numerical Representation
Bits & Bytes How Computers Represent Data
Introduction to Computers
Information Support and Services
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
Intermediate 2 Computing
3 - STORAGE: DATA CAPACITY CALCULATIONS
Data Representation Numbers
Numerical Representation
Information Representation
Numerical Representation
Binary System.
Information Technology Department
WJEC GCSE Computer Science
Numerical Representation
Presentation transcript:

Data Representation and Storage Lecture 5

Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand

Binary Numbers In the binary number system, all values are represented using only the two binary digits 0 and 1 “bit” is a contraction of “binary digit”

Binary Numbers 1-bit numbers can represent 2=2 1 different numbers – 1 2-bit numbers can represent 4=2 2 different numbers

Binary Numbers 3-bit numbers can represent 8=2 3 different numbers

Decimal Numbers Place system 123 = 1x x10 + 3x1 = 1x x x10 0

Binary representation Subscript tells you which representation Put little powers of 2 on top of column

Converting binary to decimal The second line has an error You do some (using little powers of 2 on top)

Representing Integers When an integer value must be saved on a computer, its binary equivalent can be encoded as a bit pattern and stored digitally. Usually, a fixed size (e.g., 32 bits) is used for each integer so that the computer knows where one integer ends and another begins.

Characters Characters have no natural correspondence to binary numbers Computer scientists devised an arbitrary system for representing characters as bit patterns. ASCII (American Standard Code for Information Interchange) maps each character to a specific bit pattern.

ASCII

Bit A bit is the smallest unit of memory in the computer. It can take the value 1 or 0. All data in a computer is represented as a pattern of bits.

Byte A group of 8 bits is called a byte. Since each bit can be either 0 or 1, there are 256 different bit patterns that can be represented using 8 bits. A nybble is 4 bits.

Unicode An extension of ASCII A 16-bit character encoding scheme. Uses 2 bytes for each character Allows more characters from major world languages to be encoded.

ASCII file A document that contains plain text only (such as a Notepad file – even html) is called an ASCII file or a text file. Each character of text is stored as one ASCII pattern, in one byte of memory. So a file containing 20 lines of text, with 100 characters per line, would be stored in 2000 bytes.

SIZE The size of a file = number of bytes stored in the file. For ASCII text files, the size of the file = number of characters.

SIZE 1KB = 1 Kilobyte = 1,024 bytes = 2 10 bytes (a page of 20 lines of text, about 100 chars per line, would be about 2 KB) 1MB = 1 Megabyte = 1,024 KB = 2 20 bytes (about 1,000 pages of text would be about 2MB) 1GB = 1 Gigabyte = 1,024 MB = 2 30 bytes

Binary files Computers are capable of representing much more than numbers and text. If you try to open a Word document in Notepad, sometimes you see garbage characters because those bytes don't correspond to ASCII codes.

Binary Files Files that contain anything except plain text (e.g. formatted Word documents, executable program files or pictures) are not stored as ASCII files. But the information is still stored in a type of binary format. They are called binary files.

Graphics "A picture is worth 1,000 words" - Actually, computer scientists would say that it is worth more! 1,000 words, at an average of 5 chars per word = 5,000 chars = about 5KB. That's enough for a very, very tiny picture. Most graphics on the web are over 30KB! high-resolution vs. low-resolution -> tradeoff of image quality vs. storage space

Compression Graphics (picture), music and video files are very large. File compression techniques are used to reduce the storage requirements for large files

Speed of data transmission Data is transmitted at speeds that are measured in terms of bps- bits per second. The time it takes to download a file depends on the size of the file and the speed of the transmission. Compression reduces file size and thus the time it takes to transmit. Waterpipe analogy- empty tank

Speed of data transmission When you connect to the Internet: Modem (define ?) Kbps, 56Kbps Faster means such as Cable modem- uses part of the capacity of the local cable system to transmit data DSL (Digital Subscriber Line) -a technology that allows high speed data transmission over telephone lines.