CSE 20 Discrete Mathematics Instructor CK Cheng, CSE2130 tel: 858 534-6184 Teaching Assistants Jingwei Lu

Slides:



Advertisements
Similar presentations
CSE 20 Discrete Mathematics Instructor CK Cheng, CSE2130, tel: Teaching Assistants Peng Du
Advertisements

Welcome to ENEE244-02xx Digital Logic Design
Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
CS220 : Digital Design. Basic Information Title: Digital Design Code: CS220 Lecture: 3 Tutorial: 1 Pre-Requisite: Computer Introduction (CS201) Ass. Prof.
Number System What’s the most natural way to count?
1 Lecture 1: Introduction to Digital Logic Design CK Cheng CSE Dept. UC San Diego.
1 Lecture 1: Introduction to Digital Logic Design CK Cheng CSE Dept. UC San Diego.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Fall 2006 Lecture 1: Introduction and Numbers.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Slide 1 Instructor: Dr. Hong Jiang Teaching Assistant: Mr. Sheng Zhang Department of Computer Science & Engineering University of Nebraska-Lincoln Classroom:
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
University of Colorado - Dept of Aerospace Engineering Sciences - Introduction to FEM This is ASEN 5007: Introduction to Finite Element Methods.
01 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
CS 103 Discrete Structures Lecture 01 Introduction to the Course
Social Psychology: Attitudes & Persuasion (PSY320)
Introduction to Network Security J. H. Wang Feb. 24, 2011.
CPSC 321 Introduction to Logic Circuit Design Mihaela Ulieru (‘Dr. M’)
ACOE2511 ACOE251/AEEC335 -Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
Introduction to Discrete Mathematics J. H. Wang Sep. 14, 2010.
Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.
1 Lecture 1: Introduction to Digital Logic Design CK Cheng CSE Dept. UC San Diego.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
CE1111 :Digital Logic Design lecture 01 Introduction Dr. Atef Ali Ibrahim.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
1 CPRE210: Introduction to Digital Design Instructor –Arun K. Somani –Tel: – –Office Hours: MWF 10:00-11:00 Teaching Assistant.
Discrete Mathematics CS204 Spring CS204 Discrete Mathematics Instructor: Professor Chin-Wan Chung (Office: Rm 3406, Tel:3537) 1.Lecture 1)Time:
1 Dr. Mohamed Abdur Rahman Office hours Sunday: 10:00- 12:00 & Tuesday: 3:00 - 3:50 Course website: Has been created
Digital Logic Design and Lab School of EECS Seoul National University.
Course Outline Course Code: CIS 111 Course Title: Introduction to computer science Units: 2 Programmes: B.Sc. Computer Science B.Sc. Management Information.
التحليل والتصميم المنطقي DIGITAL DESIGN Instructor : Khalil Alsulbi Mobile : Room : 217.
King Saud UniversityCSC112 - First Semester CSC 112 Java Programming I Introduction.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
1 CSE 20 Lecture 13: Analysis of Recursive Functions CK Cheng.
Digital Systems and Binary Numbers
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Digital Logic Lecture 3 Binary Arithmetic By Zyad Dwekat The Hashemite University Computer Engineering Department.
CEC 220 Digital Circuit Design Binary Codes
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
CSC 205 Lecture 11 CSC205 Jeffrey N. Denenberg Lecture #1 Introduction, Logic Circuits.
ELEN 033 Lecture #5 Tokunbo Ogunfunmi Santa Clara University.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
CEC 220 Digital Circuit Design Wednesday, January 7 CEC 220 Digital Circuit Design Slide 1 of 12.
CSE20 Lecture 2: Number Systems: Binary Numbers and Gray Code CK Cheng 1.
CHAPTER 3: Number Systems
CEC 220 Digital Circuit Design Monday, August 24 CEC 220 Digital Circuit Design Slide 1 of 13.
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
CEC 220 Digital Circuit Design Binary Codes Mon, Aug 31 CEC 220 Digital Circuit Design Slide 1 of 14.
COE 200 Fundamentals of Computer Engineering Instructor: Syed Z. Shazli
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 0: Introduction Mohd ridzuan mohd nor
1 EGR 277 – Digital Logic Syllabus Office Hours No food or drinks in the classrooms Web page (demonstration) Lecture #1 EGR 277 – Digital Logic Reading.
CSE20 Lecture 2: Number Systems: Binary Numbers, Gray Code, and Negative Numbers CK Cheng 1.
Welcome to CSE 370 Introduction to Digital Design Jan 10, 2002.
Chapter 3 Data Representation
Lecture 3: Incompletely Specified Functions and K Maps
Computer Engineering Department Islamic University of Gaza
Digital Systems and Binary Numbers
Syed Sohail Ahmed Assistant Professor, UET Taxila
CHAPTER 1 : INTRODUCTION
Digital Systems and Binary Numbers
CSE 20 Survey CK Cheng UC San Diego
Computer Architecture Syllabus
Number System conversions
Lecture 3: Incompletely Specified Functions and K Maps
CSE 370 – Winter Number syst.; Logic functions- 1
Computer Organization
Presentation transcript:

CSE 20 Discrete Mathematics Instructor CK Cheng, CSE2130 tel: Teaching Assistants Jingwei Lu Office Hours: TBA Rossana Motta Office Hours: TBA Tutors TBA 1

Textbooks A Short Course in Discrete Mathematics – Edward A. Bender and S. Gill Williamson – – Hardcopy published by Dover, 2004 Discrete Mathematics – Seymour Lipschutz and Marc Lipson – Schaum's Outline Series, Third Edition, McGraw Hill,

Grading iCliker (ramp function saturates at 80% clicks) Discussion Session Attendance CK Office Hrs Visits Midterm 1 Th 4/19/2012 Midterm 2 Th 5/10/2012 Final Exam – (comprehensive with emphasis on the contents after Midterm 2) M 6/11/2012, 3-5:59PM 7% 25% 40% 3 3% 2%

Expectation Class participation and group discussion Discussion session attendance Office hour visits Class notes Exercises 4

Administrative Schedule – Lectures: 3:30-4:50PM TTh, Center 214. – Discussion: 2:00-2:50PM M, Center 109. TBA F, TBA First Discussion Section: 4/9 – CK Cheng Office Hours: CSE2130 2:00-2:50PM T, 11:00-11:50AM Th 5

Course Outline Part 1. Numbers: choice of number systems, binary, Gray code, one's complement, two's complement, residual number system, and coding. Part 2. Boolean Algebra: manipulation of logic and gates, laws and theorems, tautology, SAT, multiple elements, minimization. Part 3. Functions and Recursion: function definition and calculation, induction process, k'th order series, Factorial, Fibonacci, Ackerman, division, square root iterations. 6

Overall View Numbers, Texts Images Control signals 7 Function InputOutput Hardware or Program Arithmetic: +,-,x,/ Logic: AND, OR, NOT Permutation: Ordering Goal: Cost, Performance, Power, Reliability

Part I. Number Systems 1.Introduction (Why binary system?) 2.Binary Number B.F. Section 2 3.Gray Code (Variations of binary system) 4.Negative Numbers B.F. Section 2 (Hardware implementation) 5.Residual Numbers N.T. Section 1, Shaum Ch Cryptography N.T. Section 2 8

I. Introduction (Why binary number?) 1.Numbers in general 2.Radix number systems 3.Efficiency of the systems 4.Remarks 9

1.1 iClicker Usage of number systems for computers is: A. to represent a set of numbers B. to provide a unique index for every object C. to reflect the algebraic and arithmetic structure of the numbers D. All of the above. 10

1.1 Numbers in General Symbols and Positions Roman numeral – Symbols: I, V, X, L, C, D, M – Positions: I, II, III, IV, V, VI, …, IX, X, XI, Time – Symbols: 0-11 month, 0-29 day, 0-23 hour, 0-59 min, second – Positions: e.g. 3 hrs 45 minutes Arabic numeral – Symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 – Positions: 1, 2, …, 9, 10, 11, 12, …, 20, 21 11

1.2 Radix Number Systems Decimal number: – E.g. (1026) 10 Binary number: 01 – E.g. ( ) 2 Octal number: – E.g. (2002) 8 Hexadecimal: ABCDEF – E.g. (402) 16 Hybrid radix number – Varies on weights of the positions and range of symbols per position – Example: time 12

1.2 Radix Number Systems Definition: A number system of radix r and n digits uses the format: (b n-1, …,b 1, b 0 ) r where 0<= b i <r for 0<=i< n. Value: b n-1 r n-1 + …+b 1 r 1 +b 0 r 0 Range: r n [0, r n -1] # tokens: rxn 13

1.2 Radix Number Systems Decimal (radix r=10) – Each digit belongs to the set {0,1,2,3,4,5,6,7,8,9} – Example:(250) 10 =2* *10 – An n digit decimal number system covers 10 n numbers from 0 to 10 n -1 Binary (radix r= 2) – Each digit belongs to the set {0,1} – Example: (10111) 2 = = 23 – An n digit binary number system covers 2 n numbers from 0 to 2 n -1 Ternary (radix r=3) – Each digit belongs to the set {0,1,2} – Example: (1202) 3 = x3 2 +2x3 0 = =47 – An n digit ternary number system covers 3 n numbers from 0 to 3 n -1 14

iClicker The value of a binary number (1011) 2 is A. 3 B. 7 C. 11 D. None of the above 15

iClicker The value of a ternary number (211) 3 is A. 3 B. 4 C. 22 D. None of the above 16

1.3 Efficiency of Number Systems Efficiency: #tokens vs. range of the numbers Binary (r=2): With n digits, we use 2n tokens to represent 2 n numbers Ternary (r=3): With n digits, we use 3n tokens to represent 3 n numbers Octal (r=8): With n digits, we use 8n tokens to represent 8 n numbers Decimal (r=10): With n digits, we use 10n tokens to represent 10 n numbers 17

1.3 Efficiency of Number Systems Given 30 tokens, how many numbers can we represent? Binary: The length of the number n=15 (2n=30). – 2 15 =~33,000 Ternary: The length of the number is n=10 (3n=30). – 3 10 =~60,000 Radix 5: The length of the number is n=6 (5n=30). – 5 6 =~16,000 Decimal: The length of the number is n=3 (10n=30). – 10 3 =~1,000 18

Which is The Most Expressive? Given radix r with n digits, #tokens t= r x n range of the numbers: r n =r t/r We fix t to maximize the range max r r t/r In real space, the solution is r=e (2.718…) In VLSI technology, binary is a convenient choice. – Switch (off, on) or Voltage (0, Vdd) 19

1.4 Remarks We design number systems according to the usages and technologies. For VLSI designs, binary number system is consistent with the technology. Various number systems are possible for different goals and technologies, e.g. low power, reliability, security, bandwidth. 20

iClicker The range of a binary number system with 32 digits is around A. 4x10 6 B C. 4x10 9 D. 4x