Pengantar Teknologi Informasi dan Ilmu Komputer Information Technology and Data Representation PTIIK- UB.

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

The Binary Numbering Systems
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third & Fourth Edition Spring 2008:
Representing Information as Bit Patterns
Chapter 3 Data Representation.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Chapter 1: Data Storage.
Chapter 3 Data Representation. Chapter goals Describe numbering systems and their use in data representation Compare and contrast various data representation.
Storage of Bits Computers represent information as patterns of bits
Figure 0.3: Jacquard’s loom. Figure 0.4: The Mark I computer.
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.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Chapter 1 Data Storage(1) Yonsei University 1 st Semester, 2015 Sanghyun Park.
Bits and Data Storage. Basic Hardware Units of a Computer.
Copyright © 2015 Pearson Education, Inc. Chapter 1: Data Storage.
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.
Simple Data Type Representation and conversion of numbers
Lecture 5.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
CMPT 120 How computers run programs Summer 2012 Instructor: Hassan Khosravi.
Computers Organization & Assembly Language
CSCE 106 Fundamentals of Computer Science Assisting Slides The American University in Cairo Computer Science and Engineering Department.
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
INTRODUCTION TO COMPUTING Course Instructor: Asma Sanam Larik.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
Chapter 1: Data Storage.
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
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.
Copyright © 2015 Pearson Education, Inc. Chapter 1: Data Storage.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
More on data storage and representation CSC 2001.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Systems Architecture, Fourth Edition 1 Data Representation Chapter 3.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Copyright © 2012 Pearson Education, Inc. Chapter 1: Data Storage Computer Science: An Overview Eleventh Edition by J. Glenn Brookshear.
Chapter 1: Data Storage.
Department of Computer Science Georgia State University
Computer Science: An Overview Eleventh Edition
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Invitation to Computer Science, C++ Version, Fourth Edition
COMPUTER SCIENCE AN OVERVIEW.
Invitation to Computer Science, Java Version, Third Edition
Chapter 1 Data Storage.
Figure 0.3: Jacquard’s loom
CS149D Elements of Computer Science
Computer Science An Overview
Presentation transcript:

Pengantar Teknologi Informasi dan Ilmu Komputer Information Technology and Data Representation PTIIK- UB

DEFINITION: Information Technology (IT) describes any technology that helps to produce, manipulate, store, communicate, and/or disseminate information. Part 1: Computer Technology Part 2: Communications Technology Information Technology Adopted and Adapted from Williams and Sawyer (2012) "Using IT"

Problem of Information Adopted and Adapted from Gonnick and Wheelis (1984)

Adopted and Adapted from Williams and Sawyer (2012) "Using IT" Adopted and Adapted from Gonnick and Wheelis (1984)

Bits and their meaning  Bit = Binary Digit = a symbol whose meaning depends on the application at hand.  Some possible meanings for a single bit –Numeric value (1 or 0) –Boolean value (true or false) –Voltage (high or low) Adopted and Adapted from Brookshear (2012)

Bit patterns  All data stored in a computer are represented by patterns of bits: –Numbers –Text characters –Images –Sound –Anything else… Adopted and Adapted from Brookshear (2012)

Boolean operations  Boolean operation = any operation that manipulates one or more true/false values –Can be used to operate on bits  Specific operations –AND –OR –XOR –NOT Adopted and Adapted from Brookshear (2012)

The Boolean operations AND, OR, and XOR (exclusive or) Adopted and Adapted from Brookshear (2012)

Gates  Gates = devices that produce the outputs of Boolean operations when given the operations’ input values –Often implemented as electronic circuits –Provide the building blocks from which computers are constructed Adopted and Adapted from Brookshear (2012)

A pictorial representation of AND, OR, XOR, and NOT gates Adopted and Adapted from Brookshear (2012)

Hexadecimal notation  Hexadecimal notation = a shorthand notation for streams of bits. –Stream = a long string of bits. –Long bit streams are difficult to make sense of. –The lengths of most bit streams used in a machine are multiples of four. –Hexadecimal notation is more compact.  Less error-prone to manually read, copy, or write Adopted and Adapted from Brookshear (2012)

The hexadecimal coding system Adopted and Adapted from Brookshear (2012)

1-17 Main memory: cells  Cells = manageable units (typically 8 bits) into which a computer’s main memory is arranged.  Byte = a string of 8 bits.  High-order end = the left end of the conceptual row in which the contents of a cell are laid out.  Low-order end = the right end of the conceptual row in which the contents of a cell are laid out. –Least significant bit = the last bit at the low-order end.

The organization of a byte-size memory cell Adopted and Adapted from Brookshear (2012)

1-19 Main memory addresses  Address = a “name” to uniquely identify one cell in the computer’s main memory  The names for cells in a computer are consecutive numbers, usually starting at zero  Cells have an order: “previous cell” and “next cell” have reasonable meanings  Random Access Memory = memory where any cell can be accessed independently

Memory cells arranged by address Adopted and Adapted from Brookshear (2012)

Measuring memory capacity: Not quite like the metric system  “Kilo-” normally means 1,000; Kilobyte = 2 10 = 1024  “Mega-” normally means 1,000,000; Megabyte = 2 20 = 1,048,576  “Giga-” normally means 1,000,000,000; Megabyte = 2 30 = 1,073,741,824 Adopted and Adapted from Brookshear (2012)

Mass Storage Systems  Non-volatile; data remains when computer is off  Usually much bigger than main memory  Usually rotating disks –Hard disk, floppy disk, CD-ROM –Much slower than main memory  Data access must wait for seek time (head positioning)  Data access must wait for rotational latency Adopted and Adapted from Brookshear (2012)

A disk storage system Adopted and Adapted from Brookshear (2012)

CD storage format Adopted and Adapted from Brookshear (2012)

A magnetic tape storage mechanism Adopted and Adapted from Brookshear (2012)

Files  File = the unit of data stored on a mass storage system. –Logical record and Field = natural groups of data within a file  Physical record = a block of data conforming to the physical characteristics of the storage device.  Buffer = main memory area sometimes set aside for assembling logical records or fields of a file Adopted and Adapted from Brookshear (2012)

Logical records versus physical records on a disk Adopted and Adapted from Brookshear (2012)

The message “Hello.” in ASCII Adopted and Adapted from Brookshear (2012)

Representing text  Each printable character (letter, punctuation, etc.) is assigned a unique bit pattern. –ASCII = 7-bit values for most symbols used in written English text –Unicode = 16-bit values for most symbols used in most world languages today –ISO proposed standard = 32-bit values Adopted and Adapted from Brookshear (2012)

1-30 Representing numeric values  Binary notation – uses bits to represent a number in base two  Limitations of computer representations of numeric values –Overflow – happens when a number is too big to be represented –Truncation – happens when a number is between two representable numbers

The sound wave represented by the sequence 0, 1.5, 2.0, 1.5, 2.0, 3.0, 4.0, 3.0, 0 Adopted and Adapted from Brookshear (2012)

The base ten and binary systems Adopted and Adapted from Brookshear (2012)

Decoding the binary representation Adopted and Adapted from Brookshear (2012)

An algorithm for finding the binary representation of a positive integer Adopted and Adapted from Brookshear (2012)

Applying the algorithm to obtain the binary representation of thirteen Adopted and Adapted from Brookshear (2012)

The binary addition facts Adopted and Adapted from Brookshear (2012)

Decoding the binary representation Adopted and Adapted from Brookshear (2012)

Representing Integers  Unsigned integers can be represented in base two  Signed integers = numbers that can be positive or negative –Two’s complement notation = the most popular representation –Excess notation = another less popular representation Adopted and Adapted from Brookshear (2012)

Two’s complement notation systems Adopted and Adapted from Brookshear (2012)

Coding the value -6 in two’s complement notation using four bits Adopted and Adapted from Brookshear (2012)

Addition problems converted to two’s complement notation Adopted and Adapted from Brookshear (2012)

References  Williams, B.K., and Sawyer, S.C. (2007). Using Information Technology: A Practical Introduction to Computers & Communications. 10 th Edition, McGraw- Hill, New York.  Brookshear, J.G. (2012) Computer Science: an Overview. 12 th edition. Addison-Wesley.  Gonick, L., and Wheelis, M. (1983) The Cartoon Guide to the Computer. Barnes and Noble Books.