SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
CPSC 125A      Introduction to
                                       Discrete Mathematics

                                         Spring 2010
                                         Dr. David Hyland-Wood
                                         University of Mary Washington




Monday, January 11, 2010
Discrete




                                                         Continuous




Monday, January 11, 2010

Discrete systems can be *counted*. Continuous ones can only be *measured*.
Monday, January 11, 2010

The primary goal of this course is to fill your toolbox.
Monday, January 11, 2010

Concepts covered in discrete math are often the “hammers” and “screwdrivers” in the
toolbox. Working programmers use them literally all the time.
Monday, January 11, 2010

Working programmers *need* and *use* discrete math. Notice the white book near this
programmer’s head.
Monday, January 11, 2010

Our goal is to avoid this outcome.
Monday, January 11, 2010

Rage and frustration result from presentation without commitment to understand. You will
have to work at this.
Monday, January 11, 2010

The “problem of induction” asks whether we can ever know anything based solely on what
has happened in the past. David Hume introduced it in the mid-18th century. We cover
inductive logic in Section 2.2 of the text.
Monday, January 11, 2010

In this course, we will study some mathematics of binary systems. They can only ever be “on”
or “off”. Computers are binary all the way down. This course provides mathematical tools to
manipulate binary concepts to help you understand and create computer software.
“On” or “Off”




Monday, January 11, 2010

In this course, we will study some mathematics of binary systems. They can only ever be “on”
or “off”. Computers are binary all the way down. This course provides mathematical tools to
manipulate binary concepts to help you understand and create computer software.
“On” or “Off”




   voltage                                        threshold


                               time



Monday, January 11, 2010

In this course, we will study some mathematics of binary systems. They can only ever be “on”
or “off”. Computers are binary all the way down. This course provides mathematical tools to
manipulate binary concepts to help you understand and create computer software.
“On” or “Off”




                                                                 “On”
   voltage                                        threshold
                                                                 “Off”
                               time



Monday, January 11, 2010

In this course, we will study some mathematics of binary systems. They can only ever be “on”
or “off”. Computers are binary all the way down. This course provides mathematical tools to
manipulate binary concepts to help you understand and create computer software.
“On” or “Off”




                                                                 “On” 1
   voltage                                        threshold
                                                                 “Off” 0
                               time



Monday, January 11, 2010

In this course, we will study some mathematics of binary systems. They can only ever be “on”
or “off”. Computers are binary all the way down. This course provides mathematical tools to
manipulate binary concepts to help you understand and create computer software.
“On” or “Off”




                                                                 “On” 1 True
   voltage                                        threshold
                                                                 “Off” 0 False
                               time



Monday, January 11, 2010

In this course, we will study some mathematics of binary systems. They can only ever be “on”
or “off”. Computers are binary all the way down. This course provides mathematical tools to
manipulate binary concepts to help you understand and create computer software.
Monday, January 11, 2010

Modern electronics, including computing, is based on the transistor. Computer chips contain
millions of transistors. But what are they??
Monday, January 11, 2010

A transistor is a device in which the output depends on the state of its inputs. Typically A is a
high voltage and B can be either high or low.
Input A

                           Input B

                                           Output




Monday, January 11, 2010

A transistor is a device in which the output depends on the state of its inputs. Typically A is a
high voltage and B can be either high or low.
Transistor:                    AND Gate:




                                               A
                                                               Output
                                               B




Monday, January 11, 2010

From transistors, one can build logic gates.
Transistor:                    AND Gate:




         AND Gate “truth table”
                      A    B   Output
                       0   0      0            A
                       0   1      0                            Output
                                               B
                       1   0      0
                       1   1      1



Monday, January 11, 2010

From transistors, one can build logic gates.
A   B       Output          A   B   Output
                           0   0         0             0   0     1
               AND                              NAND
                           0   1         0             0   1     1
                           1   0         0             1   0     1
                           1   1         1             1   1     0




                           A   B       Output          A   B   Output
                           0   0         0             0   0     1
                OR                              NOR
                           0   1         1             0   1     0
                           1   0         1             1   0     0
                           1   1         1             1   1     0




                                                       A   B   Output
                           A   Output                  0   0     0
             NOT                                 XOR
                           0       1                   0   1     1
                           1       0                   1   0     1
                                                       1   1     0


Monday, January 11, 2010

There are only a handful of logic gates.
IC7408 Chip




Monday, January 11, 2010

From logic gates (and combinations of logic gates), one can build chips.
Monday, January 11, 2010

From chips, one can build computers.
Monday, January 11, 2010

Determining the right inputs to computers to get a desired output is software.
Monday, January 11, 2010

It may be difficult to see the connection between hardware and software, but looking at a
software conceptual model one can see that it seems similar to a circuit layout - for a reason.
What is Discrete Math?
                • The study of topics that can be COUNTED
                        as opposed to continuous amounts that can
                        only be MEASURED.

                    •      Number Systems         •   Graph Theory
                    •      Counting Techniques    •   Boolean Algebra
                    •      Sets                   •   Probability
                    •      Relations              •   Finite State Machines
                    •      Functions              •   Algorithm Development
                    •      Logic                  •   Recursion

Monday, January 11, 2010

To get to a point where we can study software seriously, we need the vocabulary and
concepts of discrete math. We’ll focus on topics important to computer science, not pure
maths.
What is Discrete Math?
                • The study of topics that can be COUNTED
                        as opposed to continuous amounts that can
                        only be MEASURED.

                    •      Number Systems         •   Graph Theory
                    •      Counting Techniques    •   Boolean Algebra
                    •      Sets                   •   Probability
                    •      Relations              •   Finite State Machines
                    •      Functions              •   Algorithm Development
                    •      Logic                  •   Recursion

Monday, January 11, 2010

To get to a point where we can study software seriously, we need the vocabulary and
concepts of discrete math. We’ll focus on topics important to computer science, not pure
maths.
What is Discrete Math?
                • The study of topics that can be COUNTED
                        as opposed to continuous amounts that can
                        only be MEASURED.
                                                  allocating memory,                    databases,
                                                  compilers,                            filesystems,
                    •      Number Systems         networks      •    Graph Theory       data structures

                    •      Counting Techniques                  •   Boolean Algebra
                    •      Sets               databases
                                              filesystems
                                                                •   Probability
                    •      Relations          data structures   •   Finite State Machines
                    •      Functions                            •   Algorithm Development
                    •      Logic
                                   circuits, compilers,         •   Recursion     languages,
                                                                                  algorithms
                                   coding techniques
Monday, January 11, 2010

To get to a point where we can study software seriously, we need the vocabulary and
concepts of discrete math. We’ll focus on topics important to computer science, not pure
maths.
Syllabus:
 http://people.umw.edu/~dhylandw/courses/cpsc125_spring2010.html


                           See the syllabus for
                           • Lecture titles and readings
                           • Assignments
                           • Test dates
                           • Grading criteria
                           • etc.

Monday, January 11, 2010
Credits - CC Licensed
               Dripping water              http://www.flickr.com/photos/ericsbinaryworld/234133442/


               Toolbox empty               http://www.flickr.com/photos/zakh/337938418/


               Toolbox full                http://www.flickr.com/photos/zakh/337938459/


               David Hume statue           http://www.flickr.com/photos/cmerlo441/2727412708/


               The problem with math       http://www.flickr.com/photos/a2community/3227410472/


               Math rage                   http://www.flickr.com/photos/17165/3705019222/


               Bookshelf                   http://www.flickr.com/photos/tuttletree/3492531613/


               Transistors                 http://en.wikipedia.org/wiki/File:Transistorer_(croped).jpg


               First transistor            http://en.wikipedia.org/wiki/File:Replica-of-first-transistor.jpg


               Sun 3 motherboard           http://www.flickr.com/photos/90557979@N00/757293362/


               Python code                 http://www.flickr.com/photos/markuz/233202327/


               Software conceptual model   http://216.47.173.10/apelcore/images/f/f3/CTS_2_Conceptual_Model_3-20-2009.jpg




Monday, January 11, 2010
Credits - Fair Use
               Software conceptual model         http://216.47.173.10/apelcore/images/f/f3/CTS_2_Conceptual_Model_3-20-2009.jpg




Monday, January 11, 2010

Contenu connexe

En vedette

Mathematics in our daily life
Mathematics in our daily lifeMathematics in our daily life
Mathematics in our daily lifeMartin Xavier
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematicsblaircomp2003
 
Discrete Structures. Lecture 1
 Discrete Structures. Lecture 1  Discrete Structures. Lecture 1
Discrete Structures. Lecture 1 Ali Usman
 
Discovering Computers: Chapter 01
Discovering Computers: Chapter 01Discovering Computers: Chapter 01
Discovering Computers: Chapter 01Anna Stirling
 
Applications of mathematics in our daily life
Applications of mathematics in our daily lifeApplications of mathematics in our daily life
Applications of mathematics in our daily lifeAbhinav Somani
 
Lec 02 logical eq (Discrete Mathematics)
Lec 02   logical eq (Discrete Mathematics)Lec 02   logical eq (Discrete Mathematics)
Lec 02 logical eq (Discrete Mathematics)Naosher Md. Zakariyar
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Omnia A. Abdullah
 

En vedette (8)

Mathematics in our daily life
Mathematics in our daily lifeMathematics in our daily life
Mathematics in our daily life
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematics
 
Discrete Structures. Lecture 1
 Discrete Structures. Lecture 1  Discrete Structures. Lecture 1
Discrete Structures. Lecture 1
 
Discovering Computers: Chapter 01
Discovering Computers: Chapter 01Discovering Computers: Chapter 01
Discovering Computers: Chapter 01
 
Applications of mathematics in our daily life
Applications of mathematics in our daily lifeApplications of mathematics in our daily life
Applications of mathematics in our daily life
 
Lec 02 logical eq (Discrete Mathematics)
Lec 02   logical eq (Discrete Mathematics)Lec 02   logical eq (Discrete Mathematics)
Lec 02 logical eq (Discrete Mathematics)
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters
 

Similaire à Course Intro CPSC125

Similaire à Course Intro CPSC125 (20)

Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuits
 
LIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aLIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2a
 
logic gates By ZAK
logic gates By ZAKlogic gates By ZAK
logic gates By ZAK
 
Bca i sem de lab
Bca i sem  de labBca i sem  de lab
Bca i sem de lab
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates 1
Logic gates 1Logic gates 1
Logic gates 1
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
boolean-logic.pptx
boolean-logic.pptxboolean-logic.pptx
boolean-logic.pptx
 
Chapter 5 boolean algebra
Chapter 5 boolean algebraChapter 5 boolean algebra
Chapter 5 boolean algebra
 
LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 
nand2tetris 舊版投影片 -- 第一章 布林邏輯
nand2tetris 舊版投影片 -- 第一章 布林邏輯nand2tetris 舊版投影片 -- 第一章 布林邏輯
nand2tetris 舊版投影片 -- 第一章 布林邏輯
 
logic gates functions.pptx
logic gates functions.pptxlogic gates functions.pptx
logic gates functions.pptx
 
Topological quantumcomputation
Topological quantumcomputationTopological quantumcomputation
Topological quantumcomputation
 
Logic gates
Logic gatesLogic gates
Logic gates
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 

Plus de David Wood

Internet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchainInternet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchainDavid Wood
 
Returning to Online Privacy?
Returning to Online Privacy?Returning to Online Privacy?
Returning to Online Privacy?David Wood
 
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...David Wood
 
BlockSW 2019 Keynote
BlockSW 2019 KeynoteBlockSW 2019 Keynote
BlockSW 2019 KeynoteDavid Wood
 
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221David Wood
 
Privacy in the Smart City
Privacy in the Smart CityPrivacy in the Smart City
Privacy in the Smart CityDavid Wood
 
Controlling Complexities in Software Development
Controlling Complexities in Software DevelopmentControlling Complexities in Software Development
Controlling Complexities in Software DevelopmentDavid Wood
 
Privacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable ClaimsPrivacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable ClaimsDavid Wood
 
Implementing the Verifiable Claims data model
Implementing the Verifiable Claims data modelImplementing the Verifiable Claims data model
Implementing the Verifiable Claims data modelDavid Wood
 
So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301David Wood
 
Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601David Wood
 
When Metaphors Kill
When Metaphors KillWhen Metaphors Kill
When Metaphors KillDavid Wood
 
Secularism in Australia
Secularism in AustraliaSecularism in Australia
Secularism in AustraliaDavid Wood
 
Meditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and PleonasmsMeditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and PleonasmsDavid Wood
 
Building a writer's platform with social media
Building a writer's platform with social mediaBuilding a writer's platform with social media
Building a writer's platform with social mediaDavid Wood
 
Summary of the Hero's Journey
Summary of the Hero's JourneySummary of the Hero's Journey
Summary of the Hero's JourneyDavid Wood
 
Open by Default
Open by DefaultOpen by Default
Open by DefaultDavid Wood
 
Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926David Wood
 
Linked Data ROI 20110426
Linked Data ROI 20110426Linked Data ROI 20110426
Linked Data ROI 20110426David Wood
 
Introduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesIntroduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesDavid Wood
 

Plus de David Wood (20)

Internet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchainInternet of Things (IoT) two-factor authentication using blockchain
Internet of Things (IoT) two-factor authentication using blockchain
 
Returning to Online Privacy?
Returning to Online Privacy?Returning to Online Privacy?
Returning to Online Privacy?
 
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
Methods for Securing Spacecraft Tasking and Control via an Enterprise Ethereu...
 
BlockSW 2019 Keynote
BlockSW 2019 KeynoteBlockSW 2019 Keynote
BlockSW 2019 Keynote
 
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
Returning to Online Privacy - W3C/ANU Future of the Web Roadshow 20190221
 
Privacy in the Smart City
Privacy in the Smart CityPrivacy in the Smart City
Privacy in the Smart City
 
Controlling Complexities in Software Development
Controlling Complexities in Software DevelopmentControlling Complexities in Software Development
Controlling Complexities in Software Development
 
Privacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable ClaimsPrivacy Concerns related to Verifiable Claims
Privacy Concerns related to Verifiable Claims
 
Implementing the Verifiable Claims data model
Implementing the Verifiable Claims data modelImplementing the Verifiable Claims data model
Implementing the Verifiable Claims data model
 
So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301So You Wanna be a Startup CTO 20170301
So You Wanna be a Startup CTO 20170301
 
Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601Functional manipulations of large data graphs 20160601
Functional manipulations of large data graphs 20160601
 
When Metaphors Kill
When Metaphors KillWhen Metaphors Kill
When Metaphors Kill
 
Secularism in Australia
Secularism in AustraliaSecularism in Australia
Secularism in Australia
 
Meditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and PleonasmsMeditations on Writing in Paradoxes, Oxymorons, and Pleonasms
Meditations on Writing in Paradoxes, Oxymorons, and Pleonasms
 
Building a writer's platform with social media
Building a writer's platform with social mediaBuilding a writer's platform with social media
Building a writer's platform with social media
 
Summary of the Hero's Journey
Summary of the Hero's JourneySummary of the Hero's Journey
Summary of the Hero's Journey
 
Open by Default
Open by DefaultOpen by Default
Open by Default
 
Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926Lod Then, Now and Next 20110926
Lod Then, Now and Next 20110926
 
Linked Data ROI 20110426
Linked Data ROI 20110426Linked Data ROI 20110426
Linked Data ROI 20110426
 
Introduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF VocabulariesIntroduction to Linked Data: RDF Vocabularies
Introduction to Linked Data: RDF Vocabularies
 

Dernier

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Dernier (20)

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

Course Intro CPSC125

  • 1. CPSC 125A Introduction to Discrete Mathematics Spring 2010 Dr. David Hyland-Wood University of Mary Washington Monday, January 11, 2010
  • 2. Discrete Continuous Monday, January 11, 2010 Discrete systems can be *counted*. Continuous ones can only be *measured*.
  • 3. Monday, January 11, 2010 The primary goal of this course is to fill your toolbox.
  • 4. Monday, January 11, 2010 Concepts covered in discrete math are often the “hammers” and “screwdrivers” in the toolbox. Working programmers use them literally all the time.
  • 5. Monday, January 11, 2010 Working programmers *need* and *use* discrete math. Notice the white book near this programmer’s head.
  • 6. Monday, January 11, 2010 Our goal is to avoid this outcome.
  • 7. Monday, January 11, 2010 Rage and frustration result from presentation without commitment to understand. You will have to work at this.
  • 8. Monday, January 11, 2010 The “problem of induction” asks whether we can ever know anything based solely on what has happened in the past. David Hume introduced it in the mid-18th century. We cover inductive logic in Section 2.2 of the text.
  • 9. Monday, January 11, 2010 In this course, we will study some mathematics of binary systems. They can only ever be “on” or “off”. Computers are binary all the way down. This course provides mathematical tools to manipulate binary concepts to help you understand and create computer software.
  • 10. “On” or “Off” Monday, January 11, 2010 In this course, we will study some mathematics of binary systems. They can only ever be “on” or “off”. Computers are binary all the way down. This course provides mathematical tools to manipulate binary concepts to help you understand and create computer software.
  • 11. “On” or “Off” voltage threshold time Monday, January 11, 2010 In this course, we will study some mathematics of binary systems. They can only ever be “on” or “off”. Computers are binary all the way down. This course provides mathematical tools to manipulate binary concepts to help you understand and create computer software.
  • 12. “On” or “Off” “On” voltage threshold “Off” time Monday, January 11, 2010 In this course, we will study some mathematics of binary systems. They can only ever be “on” or “off”. Computers are binary all the way down. This course provides mathematical tools to manipulate binary concepts to help you understand and create computer software.
  • 13. “On” or “Off” “On” 1 voltage threshold “Off” 0 time Monday, January 11, 2010 In this course, we will study some mathematics of binary systems. They can only ever be “on” or “off”. Computers are binary all the way down. This course provides mathematical tools to manipulate binary concepts to help you understand and create computer software.
  • 14. “On” or “Off” “On” 1 True voltage threshold “Off” 0 False time Monday, January 11, 2010 In this course, we will study some mathematics of binary systems. They can only ever be “on” or “off”. Computers are binary all the way down. This course provides mathematical tools to manipulate binary concepts to help you understand and create computer software.
  • 15. Monday, January 11, 2010 Modern electronics, including computing, is based on the transistor. Computer chips contain millions of transistors. But what are they??
  • 16. Monday, January 11, 2010 A transistor is a device in which the output depends on the state of its inputs. Typically A is a high voltage and B can be either high or low.
  • 17. Input A Input B Output Monday, January 11, 2010 A transistor is a device in which the output depends on the state of its inputs. Typically A is a high voltage and B can be either high or low.
  • 18. Transistor: AND Gate: A Output B Monday, January 11, 2010 From transistors, one can build logic gates.
  • 19. Transistor: AND Gate: AND Gate “truth table” A B Output 0 0 0 A 0 1 0 Output B 1 0 0 1 1 1 Monday, January 11, 2010 From transistors, one can build logic gates.
  • 20. A B Output A B Output 0 0 0 0 0 1 AND NAND 0 1 0 0 1 1 1 0 0 1 0 1 1 1 1 1 1 0 A B Output A B Output 0 0 0 0 0 1 OR NOR 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 A B Output A Output 0 0 0 NOT XOR 0 1 0 1 1 1 0 1 0 1 1 1 0 Monday, January 11, 2010 There are only a handful of logic gates.
  • 21. IC7408 Chip Monday, January 11, 2010 From logic gates (and combinations of logic gates), one can build chips.
  • 22. Monday, January 11, 2010 From chips, one can build computers.
  • 23. Monday, January 11, 2010 Determining the right inputs to computers to get a desired output is software.
  • 24. Monday, January 11, 2010 It may be difficult to see the connection between hardware and software, but looking at a software conceptual model one can see that it seems similar to a circuit layout - for a reason.
  • 25. What is Discrete Math? • The study of topics that can be COUNTED as opposed to continuous amounts that can only be MEASURED. • Number Systems • Graph Theory • Counting Techniques • Boolean Algebra • Sets • Probability • Relations • Finite State Machines • Functions • Algorithm Development • Logic • Recursion Monday, January 11, 2010 To get to a point where we can study software seriously, we need the vocabulary and concepts of discrete math. We’ll focus on topics important to computer science, not pure maths.
  • 26. What is Discrete Math? • The study of topics that can be COUNTED as opposed to continuous amounts that can only be MEASURED. • Number Systems • Graph Theory • Counting Techniques • Boolean Algebra • Sets • Probability • Relations • Finite State Machines • Functions • Algorithm Development • Logic • Recursion Monday, January 11, 2010 To get to a point where we can study software seriously, we need the vocabulary and concepts of discrete math. We’ll focus on topics important to computer science, not pure maths.
  • 27. What is Discrete Math? • The study of topics that can be COUNTED as opposed to continuous amounts that can only be MEASURED. allocating memory, databases, compilers, filesystems, • Number Systems networks • Graph Theory data structures • Counting Techniques • Boolean Algebra • Sets databases filesystems • Probability • Relations data structures • Finite State Machines • Functions • Algorithm Development • Logic circuits, compilers, • Recursion languages, algorithms coding techniques Monday, January 11, 2010 To get to a point where we can study software seriously, we need the vocabulary and concepts of discrete math. We’ll focus on topics important to computer science, not pure maths.
  • 28. Syllabus: http://people.umw.edu/~dhylandw/courses/cpsc125_spring2010.html See the syllabus for • Lecture titles and readings • Assignments • Test dates • Grading criteria • etc. Monday, January 11, 2010
  • 29. Credits - CC Licensed Dripping water http://www.flickr.com/photos/ericsbinaryworld/234133442/ Toolbox empty http://www.flickr.com/photos/zakh/337938418/ Toolbox full http://www.flickr.com/photos/zakh/337938459/ David Hume statue http://www.flickr.com/photos/cmerlo441/2727412708/ The problem with math http://www.flickr.com/photos/a2community/3227410472/ Math rage http://www.flickr.com/photos/17165/3705019222/ Bookshelf http://www.flickr.com/photos/tuttletree/3492531613/ Transistors http://en.wikipedia.org/wiki/File:Transistorer_(croped).jpg First transistor http://en.wikipedia.org/wiki/File:Replica-of-first-transistor.jpg Sun 3 motherboard http://www.flickr.com/photos/90557979@N00/757293362/ Python code http://www.flickr.com/photos/markuz/233202327/ Software conceptual model http://216.47.173.10/apelcore/images/f/f3/CTS_2_Conceptual_Model_3-20-2009.jpg Monday, January 11, 2010
  • 30. Credits - Fair Use Software conceptual model http://216.47.173.10/apelcore/images/f/f3/CTS_2_Conceptual_Model_3-20-2009.jpg Monday, January 11, 2010