DATA REPRESENTATION, DATA STRUCTURES AND DATA MANIPULATION TOPIC 4 CONTENT: 4.1. Number systems 4.2. Floating point binary 4.3. Normalization of floating.

Slides:



Advertisements
Similar presentations
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Advertisements

Faculty of Computer Science © 2006 CMPUT 229 Floating Point Representation Operating with Real Numbers.
CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (2)
Floating Point Numbers
Floating Point Numbers. CMPE12cCyrus Bazeghi 2 Floating Point Numbers Registers for real numbers usually contain 32 or 64 bits, allowing 2 32 or 2 64.
Signed Numbers.
Midterm Exam Two Tuesday, November 25 st In class cumulative.
Floating Point Numbers
Floating Point Numbers
PrasadAbstraction1 VEDIC MATHEMATICS : Abstraction T. K. Prasad
Computer Science 210 Computer Organization Floating Point Representation.
Floating Point Numbers.  Floating point numbers are real numbers.  In Java, this just means any numbers that aren’t integers (whole numbers)  For example…
The IEEE Format for storing float (single precision) data type Use the “enter” key to proceed through the show.
Roman Numerals. Roman Numerals - Past and Present  Romans used them for trading and commerce.  When Romans learned to write they needed a way to write.
Binary Number Systems.
Binary Representation and Computer Arithmetic
Chapter3 Fixed Point Representation Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
The Binary Number System
Data Representation Number Systems.
Simple Data Type Representation and conversion of numbers
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
NUMBER REPRESENTATION CHAPTER 3 – part 3. ONE’S COMPLEMENT REPRESENTATION CHAPTER 3 – part 3.
Chapter 1 Data Storage(3) Yonsei University 1 st Semester, 2015 Sanghyun Park.
Computer Architecture
COMPSCI 210 Semester Tutorial 1
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
S. Rawat I.I.T. Kanpur. Floating-point representation IEEE numbers are stored using a kind of scientific notation. ± mantissa * 2 exponent We can represent.
Computer Science Engineering B.E.(4 th sem) c omputer system organization Topic-Floating and decimal arithmetic S ubmitted to– Prof. Shweta Agrawal Submitted.
CH09 Computer Arithmetic  CPU combines of ALU and Control Unit, this chapter discusses ALU The Arithmetic and Logic Unit (ALU) Number Systems Integer.
Binary Fractions. Fractions A radix separates the integer part from the fraction part of a number Columns to the right of the radix have negative.
Floating Point Representations CDA 3101 Discussion Session 02.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
The Teacher CP4 Binary and all that… CP4 Revision.
16. Binary Numbers Programming in C++ Computer Science Dept Va Tech August, 1999 © Barnette ND, McQuain WD, Keenan MA 1 Binary Number System Base.
Integer & Floating Point Representations CDA 3101 Discussion Session 05.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Floating Point Representation.
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
Floating Point Arithmetic
Computation & Machine, Ancient to Modern Review
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Presentation on Number System
Data Representation: Floating Point for Real Numbers Computer Organization and Assembly Language: Module 11.
What is History? Presentation #3 Mr. Bridgeo. How do we measure or retrace the evolution of societies? The unit of time that historians use to measure.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
©Brooks/Cole, 2003 Chapter 3 Number Representation.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.7 Instructor: Lin Chen Sept 2013.
Representation of Data (Part II) Computer Studies Notes: chapter 19 Ma King Man.
Lecture 6: Floating Point Number Representation Information Representation: Floating Point Number Representation Lecture # 7.
Learning Objectives 3.3.1f - Describe the nature and uses of floating point form 3.3.1h - Convert a real number to floating point form Learn how to normalise.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH 2 Number Systems CPIT 201 Introduction.
FLOATING-POINT NUMBER REPRESENTATION
CSCI206 - Computer Organization & Programming
Floating Point Numbers
Nat 4/5 Computing Science Lesson 1: Binary
Fundamentals of Computer Science
Floating Point Number system corresponding to the decimal notation
CSCI206 - Computer Organization & Programming
Data Representation Data Types Complements Fixed Point Representation
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Roman Numerals.
Roman numerals -Rules for writing.
COMS 161 Introduction to Computing
CS 286 Computer Architecture & Organization
Roman Numerals.
Presentation transcript:

DATA REPRESENTATION, DATA STRUCTURES AND DATA MANIPULATION TOPIC 4 CONTENT: 4.1. Number systems 4.2. Floating point binary 4.3. Normalization of floating point binary numbers 4.4. Implementation of data structures, including linked lists, stacks, queues and tress 4.5. Searching and sorting

Counting is one of the first skills you learn as a small child. Many children will be able to count to 10 and understand what that means before they go to school. A child of the Roman Empire 2000 years ago would have learned in the same way, except that the numbers would look different. I, II, III, IV, V, VI, VII, VIII, IX, X XI, XII, XIII, XIV, XV, XVI, XVII, XVIII, XIX, XX The pattern for this numbering system is not as simple as the decimal (or denary) system, but like it, it is based around the number 10 (how many fingers and toes do you have?). A number system can be created, based on any number you choose. The decimal system uses 10 different symbols. The next number in this sequence doesn't have a symbol. As the values increase in size, a second number position on the left of the first is created. The same symbols are used again in position 2. Using 2 number positions, a total of 100 different values can be represented.

Position 2 Position 1 0""99 This number can be derived as follows: 10 symbols using 2 number positions, 102 = 100 Position 2 Position 1 10 Position 2 Position 1 23 The symbol 23 means: The 2 represents 2*10 and the 3 represents 3*1. 2*10 + 3*1 = 23 Data representation and number systems Number systems.htm

Floating-Point Binary The two most common floating-point binary storage formats used by Intel processors were created for Intel and later standardized by the IEEE organization: The Sign The sign of a binary floating-point number is represented by a single bit. A 1 bit indicates a negative number, and a 0 bit indicates a positive number. The Mantissa It is useful to consider the way decimal floating-point numbers represent their mantissa. Using x 105 as an example, the sign is negative, the mantissa is 3.154, and the exponent is 5. The fractional portion of the mantissa is the sum of each digit multiplied by a power of 10:.154 = 1/10 + 5/ /1000 A binary floating-point number is similar. For example, in the number x 23, the sign is positive, the mantissa is , and the exponent is 3. The fractional portion of the mantissa is the sum of successive powers of 2. In our example, it is expressed as:.1011 = 1/2 + 0/4 + 1/8 + 1/16

The Exponent IEEE Short Real exponents are stored as 8-bit unsigned integers with a bias of 127. Let's use the number x 25 as an example. The exponent (5) is added to 127 and the sum (132) is binary Tutorial Floating-Point Binary.htm

Searching and Sorting Algorithms For the Computer Science A exam, you are responsible for knowing the concepts behind the following algorithms, being able to code them or read code utilizing them, and understanding their relative efficiency: Sorting Algorithms : Selection Sort Insertion Sort Merge Sort Quick Sort Searching Algorithms : Sequential (or Linear) Search Binary Search Students taking the Computer Science AB exam are responsible for all of the above, plus: Sorting Algorithms : Heap Sort Searching Algorithms : Hashing