1 Harvard University CSCI E-2a Life, Liberty, and Happiness After the Digital Explosion 3B: Representation.

Slides:



Advertisements
Similar presentations
Data Representation. Units & Prefixes Review kilo, mega, and giga are different in binary! bit (b) – binary digit Byte (B) – 8 binary digits KiloByte.
Advertisements

Base 10 Denary Decimal
Micro optics: Fibers and Butterflies. Total internal reflection.
Binary Representation Introduction to Computer Science and Programming I Chris Schmidt.
February 1,
Data Representation CS105. Data Representation Types of data: – Numbers – Text – Audio – Images & Graphics – Video.
assumes basic arithmetic
Unit 3—Part A Computer Memory
Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
Number Systems & Logic Gates Day 1
Digital Data Patrice Koehl Computer Science UC Davis.
CREATED BY, MS. JENNIFER DUKE BITS, BYTES, AND UNITS OF MEASUREMENT.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
Communications technology Ali Kennedy.  Bit= from a shortening of the words “ bi nary digit”  The basic unit ofinformation for computers  1 or 0 are.
Computer Storage & Representing Numbers CE 311 K - Introduction to Computer Methods Daene C. McKinney.
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Lecture 1. Number Systems Prof. Taeweon Suh Computer Science Education Korea University ECM585 Special Topics in Computer Design.
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,
COMPUTER TECHNOLOGY MRS. SEALE COMPUTER PERFORMANCE.
Computer Systems Nat 4/5 Computing Science Data Representation Lesson 2: Floating Point Representation.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
CS41B MACHINE David Kauchak CS 52 – Fall Admin  Assignment 3  due Monday at 11:59pm  one small error in 5b (fast division) that’s been fixed.
Unit 2—Part A Computer Memory Computer Technology (S1 Obj 2-3)
How We Measure Memory. Learning Goal Today we are going to learn how the computer stores information.
Networking for Home and Small Businesses –.  Explain the binary representation of data.
How We Measure Memory. At the Bottom of things A piece of digital information is always stored as a sequence of binary states. What’s that mean you ask???
Computer Math CPS120: Binary Representations. Binary computers have storage units called binary digits or bits: Low Voltage = 0 High Voltage = 1 all bits.
By Dzuryat Nugroho.  Bit ◦ The smallest size of data in computer 1 bit = 0 or 1  Character (a,b,c,d……z,1,2,3,&,%,?,/….) ◦ 1 character = 8 bit  So,…if.
Units Chapter 0.
Binary Decimal Hexadecimal
Number Systems Part 2. Counting in Binary DecimalBinary
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.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Numerical Representation Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Binary & Hex Review.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Computer basics.
How Computers Store Variables
Data Representation – numbers Binary conversion Hexadecimal Negative numbers Binary addition Binary shifts.
3.1 Denary, Binary and Hexadecimal Number Systems
Computer Memory Digital Literacy.
Numerical Representation
Bits and bytes September 19, 2017.
Memory Parts of a computer
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.
COMP211 Computer Logic Design Lecture 1. Number Systems
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
مهارت اول: مفاهیم پایه فناوری اطلاعات و ارتباطات فصل اول: سخت‌افزار
David Kauchak CS 52 – Spring 2016
Unit 2 Computer Memory Computer Technology (S1 Obj 2-3)
इंट्रस्टिंग बनने के लिए आपको इंट्रस्टेड होना पड़ेगा।
Lecture 3 ISE101: Computing Fundamentals
Unit 3—Part A Computer Memory
Data Representation Numbers
How do computers work? Storage.
Numerical Representation
Unit 3—Part A Computer Memory
Bits, Bytes, and Storage.
Data Representation – Numbers
Information Representation
Numerical Representation
Binary System.
Comp Org & Assembly Lang
Binary & Hex Review.
Computer Systems Nat 4/5 Computing Science Data Representation
Numerical Representation
Presentation transcript:

1 Harvard University CSCI E-2a Life, Liberty, and Happiness After the Digital Explosion 3B: Representation

2 Binary counting 1+1=10, or 1+1=0 and carry

3

4 Positive and Negative Numbers Signed and unsigned numbers Unsigned: 2 8 =256 bit patterns represent 0 … 255 Signed: 2 8 bit patterns represent -128 … +127 Leftmost bit = sign bit: 0 => 0 or pos, 1 => neg Largest 8-bit positive number = = = Most negative negative number = =-128 Signed and unsigned numbers Unsigned: 2 8 =256 bit patterns represent 0 … 255 Signed: 2 8 bit patterns represent -128 … +127 Leftmost bit = sign bit: 0 => 0 or pos, 1 => neg Largest 8-bit positive number = = = Most negative negative number = =-128

5 Negative numbers = so addition works the same for positive and negative numbers

6 Biggest Numbers Biggest positive number = (like on a car odometer) Most negative negative number = Biggest positive number = (like on a car odometer) Most negative negative number =

7 Biggest Positive Number + 1 “=” Most Negative Negative Number

8 The Comair Christmas “Glitch” 16 bits for monthly count of crew changes Biggest positive 16-bit number =32,767 December was a bad month, lots of snowstorms, lots of flights rescheduled As Christmas approached the count went from 32,767 to -32,768 by adding 1 16 bits for monthly count of crew changes Biggest positive 16-bit number =32,767 December was a bad month, lots of snowstorms, lots of flights rescheduled As Christmas approached the count went from 32,767 to -32,768 by adding 1

9 Bytes 1 byte = 8 bits = 2 hex digits = 1 character 2 10 =1024 bytes = 1 kilobyte = 1KB 2 20 =1,048,576 bytes = 1 megabyte = 1MB 2 30 bytes = 1 gigabyte = 1GB = “a billion” 2 40 bytes = 1 terabyte = 1TB = “a trillion” 2 50 bytes = 1 petabyte = 1PB = “a quadrillion” 2 60 bytes = 1 exabyte = 1EB = a quintillion bytes 2 70 = zetta 2 80 = yotta 1 byte = 8 bits = 2 hex digits = 1 character 2 10 =1024 bytes = 1 kilobyte = 1KB 2 20 =1,048,576 bytes = 1 megabyte = 1MB 2 30 bytes = 1 gigabyte = 1GB = “a billion” 2 40 bytes = 1 terabyte = 1TB = “a trillion” 2 50 bytes = 1 petabyte = 1PB = “a quadrillion” 2 60 bytes = 1 exabyte = 1EB = a quintillion bytes 2 70 = zetta 2 80 = yotta

10 K K All this terminology based on the accident that Which is 1K? There are new standard names: 1 kibibyte = 1000 bytes vs. 1 kilobyte = 1024 bytes But almost no one uses “kibi-”, “mebi-”, etc. All this terminology based on the accident that Which is 1K? There are new standard names: 1 kibibyte = 1000 bytes vs. 1 kilobyte = 1024 bytes But almost no one uses “kibi-”, “mebi-”, etc.

11

12

13

14

15

16