Lecture 10: Binary Representation Intro to IT COSC1078 Introduction to Information Technology Lecture 10 Binary Representation James Harland

Slides:



Advertisements
Similar presentations
Lecture # 7. Topics Storage Techniques of Bits Storage Techniques of Bits Mass Storage Mass Storage Disk System Performance Disk System Performance File.
Advertisements

Lecture 9: Data Storage Devices Intro to IT COSC1078 Introduction to Information Technology Lecture 9 Data Storage Devices James Harland
James Harland COSC1078 Introduction to Information Technology Lecture 12 System Fundamentals James Harland
Lecture 12: Machine Processing Intro to IT COSC1078 Introduction to Information Technology Lecture 12 Machine Processing James Harland
Lecture 7: Video Intro to IT COSC1078 Introduction to Information Technology Lecture 7 Video James Harland
Lecture 8: Video Intro to IT COSC1078 Introduction to Information Technology Lecture 8 Video James Harland
Lecture 10: System Fundamentals Intro to IT COSC1078 Introduction to Information Technology Lecture 10 System Fundamentals James Harland
Lecture 14: Review Intro to IT COSC1078 Introduction to Information Technology Lecture 14 Revision and Review James Harland
Lecture 6: Audio Intro to IT COSC1078 Introduction to Information Technology Lecture 6 Audio James Harland
Representing Information as Bit Patterns
James Tam Computer Hardware: A Quick Overview In this section of notes you will learn/relearn about the basic parts of a computer and how they work.
Chapter 1: Data Storage.
Storage of Bits Computers represent information as patterns of bits
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Lecture 16: Operating Systems Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Operating Systems James Harland
Lecture 7: Audio Intro to IT COSC1078 Introduction to Information Technology Lecture 7 Video James Harland
Lecture 9: System Fundamentals Intro to IT COSC1078 Introduction to Information Technology Lecture 9 System Fundamentals James Harland
Lecture 24: Review Intro to IT COSC1078 Introduction to Information Technology Lecture 24 Review James Harland
Lecture 4: ImagesIntro to IT COSC1078 Introduction to Information Technology Lecture 4 Images James Harland
Computer SCIENCE Data Representation and Machine Concepts Section 1.3
Bits and Data Storage. Basic Hardware Units of a Computer.
Lecture 8: Video Intro to IT COSC1078 Introduction to Information Technology Lecture 8 Video James Harland
1 Part I: Machine Architecture 4 A major process in the development of a science is the construction of theories that are confirmed or rejected by experimentation.
CSCE 106 Fundamentals of Computer Science Assisting Slides The American University in Cairo Computer Science and Engineering Department.
Topics Introduction Hardware and Software How Computers Store Data
 Memory Memory  Types of Memory Types of Memory  Memory Representation Memory Representation  Random Access Memory Random Access Memory  Read Only.
Lecture 11: Machine Processing Intro to IT COSC1078 Introduction to Information Technology Lecture 11 Machine Processing James Harland
HARDWARE: CPU & STORAGE How to Buy a Multimedia Computer System.
Lecture 4: ImagesIntro to IT COSC1078 Introduction to Information Technology Lecture 4 Images James Harland
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
Pengantar Teknologi Informasi dan Ilmu Komputer Information Technology and Data Representation PTIIK- UB.
Lecture 8: Video Intro to IT COSC1078 Introduction to Information Technology Lecture 8 Video James Harland
Hardware Data Storage.
Lecture 10: Binary Representation Intro to IT COSC1078 Introduction to Information Technology Lecture 10 Binary Representation James Harland
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Lecture 7: Video Intro to IT COSC1078 Introduction to Information Technology Lecture 7 Video James Harland
Computer Systems Organization CS 1428 Foundations of Computer Science.
Chapter 1: Data Storage.
How Computers Work … and how you can work them. Art 315 Lecture 03 Dr. J Parker Fall 2010.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Computer Data Storage (Internal Representation) Fall 2011.
Revision Lecture Intro to IT COSC1078 Introduction to Information Technology Extra Lecture Review James Harland
Lecture 11: System Fundamentals Intro to IT COSC1078 Introduction to Information Technology Lecture 11 System Fundamentals James Harland
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Lecture 16: Operating Systems Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Operating Systems James Harland
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Encoding COSC Computers and Data Computers store information as sequences of bits Computers store many types of data: numbers text audio images.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Lecture 5: Audio Intro to IT COSC1078 Introduction to Information Technology Lecture 5 Audio James Harland
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
Chapter 1: Data Storage.
Computer Science: An Overview Eleventh Edition
Chapter 1: An Overview of Computers and Programming Languages
Topics Introduction Hardware and Software How Computers Store Data
Processor/Memory Chapter 3
Storage Hardware This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Chapter 1 Data Storage.
Topics Introduction Hardware and Software How Computers Store Data
Storing Negative Integers
2.C Memory GCSE Computing Langley Park School for Boys.
Presentation transcript:

Lecture 10: Binary Representation Intro to IT COSC1078 Introduction to Information Technology Lecture 10 Binary Representation James Harland

Lecture 10: Binary RepresentationIntro to IT Introduction to IT 1 Introduction 2 Images 3 Audio 4 Video 5 Binary Representation WebTest 1, Assignment 1 6 Data Storage 7 Machine Processing 8 Operating Systems WebLearn Test 2 9 Processes Assignment 2 10 Internet 11 Internet Security WebLearn Test 3 12 Future of ITAssignment 3, Peer and Self Assessment

Lecture 10: Binary RepresentationIntro to IT Overview  Questions?  WebLearn Test 1  Binary Representation  Questions?

Lecture 10: Binary RepresentationIntro to IT Web Test 1  Week 5  Quizzes (practice tests) up now  Due by 11.59pm Sunday 22 nd August  Content will be on weeks 2-4 Images Audio Video

Lecture 10: Binary RepresentationIntro to IT Assignment 1  Use GIMP (or a similar tool) to perform some manipulations on an image  Address six issues in relation to this  Main emphasis is on process, not result!  SUBMIT VIA WEBLEARN  Due by 11.59pm Sunday 3 rd April JUST DO IT!

Lecture 10: Binary RepresentationIntro to IT Introduction

Lecture 10: Binary RepresentationIntro to IT Overview …

Lecture 10: Binary RepresentationIntro to IT What do computers do?  Compute!  Input/Output  Processing  Memory

Lecture 10: Binary RepresentationIntro to IT History ……  Babbage’s Difference Engine (1849)  Babbage’s Analytical Engine ( , never built)  Turing’s Universal Machine (1936, mathematical model)  Turing digital Boolean-logic multiplier (1937)  Colossus (1943, destroyed 1945)  ENIAC (1946)  Von Neumann architecture (c. 1945)  EDVAC (1949)  CSIRAC (1949)

Lecture 10: Binary RepresentationIntro to IT Computer Memory Cells of 8 bits each (one byte) Most significant bit Least significant bit … … address

Lecture 10: Binary RepresentationIntro to IT Random Access Memory (RAM)  Random access means any cell can be accessed at any time (and in any order)  Volatile – contents cleared when machine is switched off  Very fast compared to other forms of memory  DRAM: dynamic RAM (replenishes charges constantly)  SDRAM: synchronous DRAM – faster still  Often have small very fast caches and registers

Lecture 9: Data Storage DevicesIntro to IT Magnetic Disk  Thin spinning metal disk with magnetic coating  Each disk contains a number of circular tracks  Often several disks stacked on top of each other  Cylinders made up of tracks made up of sectors  Can have very large storage this way  Slow access time!

Lecture 9: Data Storage DevicesIntro to IT Magnetic Disk (Hard Disk) Seek time: move heads from one track to another Latency time: half time for complete disk rotation Access time: seek time + latency time Transfer rate: rate data can be read from disk `Typical’ Hard disk Seek time: 2ms to 15ms Latency time: 8ms to 20ms Transfer rate: 0.5 GB per second Sounds fast, but is actually quite slow …

Lecture 9: Data Storage DevicesIntro to IT Optical Disks (CDs, DVDs) Laser readers rather than magnetic ones Disks more error-tolerant than magnetic ones TypeFeaturesDateStorage CD“compact disk” MB DVDMultiple layers199515GB Blu-ray`blue laser’ (405 vs 650 nm) GB

Lecture 9: Data Storage DevicesIntro to IT Flash Drives  Disks of all sorts are slow compared to other circuits  Flash drives ‘write’ small electronic circuits  Eventually decay after many changes of data  Suitable for slow-changing data, not main memory  Portable and much more resilient than disks

Lecture 9: Data Storage DevicesIntro to IT Older Storage Types Magnetic tape `Floppy’ disk (5.25’’ disk) 3.5’’ disk

Lecture 10: Binary Representation Intro to IT Binary Codes “Meet me at Fred’s”

Lecture 10: Binary RepresentationIntro to IT ASCII  American Standard Code for Information Interchange  7-bit patterns to represent  letters (upper and lower case)  numbers ,., ; “ $ * & ! ? …  Total of 128 different characters

Lecture 10: Binary RepresentationIntro to IT ASCII H e l o Hello! Unicode: uses 16 bits, can do Chinese, Japanese & Hebrew characters

Lecture 10: Binary RepresentationIntro to IT Numbers Represented in binary notation 25 in ASCII is bits per digit seems too much! Can represent 256 different numbers in 8 bits … Don’t want to add, multiply etc. in ASCII … Remember that = 10 …

Lecture 10: Binary RepresentationIntro to IT Two’s Complement How do you store negative numbers? Bit patternValue

Lecture 10: Binary RepresentationIntro to IT Two’s Complement Bit patternValue first means +ve (sign bit) 1 first means –ve +ve: Count from 0 up to 01 n-1 -ve: Start from 1 n down to 10 n-1 3 is 011, -3 is is 010, -2 is is 001, -1 is 111

Lecture 10: Binary RepresentationIntro to IT Two’s Complement Bit patternValue : add in obvious way 3 – 1: calculate as 3 + (-1) = 1010 Answer is 010, ie 2. Can add and subtract with the same circuits

Lecture 10: Binary RepresentationIntro to IT Excess Notation Bit patternValue A different encoding of the numbers “naive” bit pattern encodes 4 more than actual value 100 (looks like 4) encodes (looks like 5) encodes (looks like 6) encodes 2

Lecture 10: Binary RepresentationIntro to IT Floating Point sign bit Mantissa exponent 1 bit for sign 3 bits for exponent 4 bits for mantissa

Lecture 10: Binary RepresentationIntro to IT Floating Point means +ve shifted 101 place =  Mantissa: digit sequence (1 st digit always 1)  Exponent: where to put the.  This is generally given in ‘excess’ notation  Binary form of x 10 4

Lecture 10: Binary RepresentationIntro to IT Truncation Errors Beware adding small numbers to large ones! Finite length of encoding means that sometimes digits are lost Not often a problem, but can be …

Lecture 10: Binary RepresentationIntro to IT Parity Bits  Add a ‘parity bit’ to each byte  Odd parity: make total of 1s in all 9 bits odd  Even parity: make total of 1s in all 9 bits even  If parity is wrong, then an error has occurred

Lecture 10: Binary RepresentationIntro to IT Conclusion  Get Assignment and WebTest done this week  Do online quizzes later this week  Keep reading! (book particularly)