SlideShare a Scribd company logo
Functions
Ms. Rachana Pathak
(rachanarpathak@gmail.com)
Assistant Professor, Dept of Computer Science and Engineering
Walchand Institute of Technology, Solapur
(www.witsolapur.org)
Learning Outcome
2Walchand Institute of Technology, Solapur
At the end of this session,
Students will be able to explain Functions in Discrete Mathematical
Structures.
Definition of a function
• A function takes an element from a set and maps it to a
UNIQUE element in another set
R Z
f
4.3 4
Domain Co-domain
Pre-image of 4
Image of 4.3
f maps R to Z
f(4.3)
Walchand Institute of Technology, Solapur 3
Definition
• Given any sets A, B, a function f from (or “mapping”) A to B
(f:AB) is an assignment of exactly one element f(x)B
to each element xA.
Walchand Institute of Technology, Solapur 4
Graphical Representation
Walchand Institute of Technology, Solapur 5
f
A B
a b
• If f:AB, and f(a)=b (where aA & bB), then:
• A is the domain of f.
• B is the codomain of f.
• b is the image of a under f.
• a is a pre-image of b under f.
• In general, b may have more than one pre-image.
• The range RB of f is {b | a f(a)=b }.
Walchand Institute of Technology, Solapur 6
Terminologies
Domain & Co-Domain
1
2
3
4
5
“a”
“bb“
“cccc”
“dd”
“e”
A string length function
A
B
C
D
F
Rachana
Darshana
Namrata
Priyanka
Rushika
A class grade function
Domain Co-domain
A pre-image
of 1
The image
of “a”
Walchand Institute of Technology, Solapur 7
Think & Write
Walchand Institute of Technology, Solapur 8
• Suppose that: “f is a function mapping students in this class to
the set of grades {A,B,C,D,E}.”
• At this point, you know f’s codomain is: __________, and its
range is ________.
• Suppose the grades turn out all As and Bs.
• Then the range of f is _________, but its codomain is
__________________.
Answer
• Suppose that: “f is a function mapping students in this class to
the set of grades {A,B,C,D,E}.”
• At this point, you know f’s codomain is: __________, and its
range is ________.
• Suppose the grades turn out all As and Bs.
• Then the range of f is _________, but its codomain is
__________________.
Walchand Institute of Technology, Solapur 9
unknown
{A,B,C,D,E}
A,B
{A,B,C,D,E}
Conclusion :
In this session, We have studied all about Functions
Walchand Institute of Technology, Solapur 10
References
• 1. Discrete mathematical structures with applications to computer science -- J. P.
Tremblay & R. Manohar (MGH International)
• Reference Books:
• 1. Discrete Mathematics with combinatorics and graph theory- S. SANTHA
(CENGAGE Learning)
• 2. Discrete Mathematical Structures – Bernard Kolman, Robert C. Busby (Pearson
Education)
• 3. Discrete mathematics -- Liu (MGH)
11Walchand Institute of Technology, Solapur
Thank You !!!
12Walchand Institute of Technology, Solapur

More Related Content

What's hot

Parse Tree
Parse TreeParse Tree
Parse Tree
A. S. M. Shafi
 
Shortest Path in Graph
Shortest Path in GraphShortest Path in Graph
Shortest Path in Graph
Dr Sandeep Kumar Poonia
 
Polish Notation In Data Structure
Polish Notation In Data StructurePolish Notation In Data Structure
Polish Notation In Data Structure
Meghaj Mallick
 
Infix prefix postfix
Infix prefix postfixInfix prefix postfix
Infix prefix postfix
Self-Employed
 
Little o and little omega
Little o and little omegaLittle o and little omega
Little o and little omega
Rajesh K Shukla
 
L19 increasing & decreasing functions
L19 increasing & decreasing functionsL19 increasing & decreasing functions
L19 increasing & decreasing functions
James Tagara
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
Ratnakar Mikkili
 
Finite automata
Finite automataFinite automata
Finite automata
Bipul Roy Bpl
 
Relation matrix & graphs in relations
Relation matrix &  graphs in relationsRelation matrix &  graphs in relations
Relation matrix & graphs in relations
Rachana Pathak
 
Fuzzy arithmetic
Fuzzy arithmeticFuzzy arithmetic
Fuzzy arithmetic
Mohit Chimankar
 
Time complexity
Time complexityTime complexity
Time complexity
Katang Isip
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
Mukesh Tekwani
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
Rabia Khalid
 
context free language
context free languagecontext free language
context free language
khush_boo31
 
Functions in mathematics
Functions in mathematicsFunctions in mathematics
Functions in mathematics
Burhanuddin Shabbir
 
Probability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer ScienceProbability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer Science
Prankit Mishra
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
Rachana Pathak
 
Find Transitive Closure Using Floyd-Warshall Algorithm
Find Transitive Closure Using Floyd-Warshall AlgorithmFind Transitive Closure Using Floyd-Warshall Algorithm
Find Transitive Closure Using Floyd-Warshall Algorithm
Rajib Roy
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
Muhammad Amjad Rana
 
Conditional Statement in C Language
Conditional Statement in C LanguageConditional Statement in C Language
Conditional Statement in C Language
Shaina Arora
 

What's hot (20)

Parse Tree
Parse TreeParse Tree
Parse Tree
 
Shortest Path in Graph
Shortest Path in GraphShortest Path in Graph
Shortest Path in Graph
 
Polish Notation In Data Structure
Polish Notation In Data StructurePolish Notation In Data Structure
Polish Notation In Data Structure
 
Infix prefix postfix
Infix prefix postfixInfix prefix postfix
Infix prefix postfix
 
Little o and little omega
Little o and little omegaLittle o and little omega
Little o and little omega
 
L19 increasing & decreasing functions
L19 increasing & decreasing functionsL19 increasing & decreasing functions
L19 increasing & decreasing functions
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
Finite automata
Finite automataFinite automata
Finite automata
 
Relation matrix & graphs in relations
Relation matrix &  graphs in relationsRelation matrix &  graphs in relations
Relation matrix & graphs in relations
 
Fuzzy arithmetic
Fuzzy arithmeticFuzzy arithmetic
Fuzzy arithmetic
 
Time complexity
Time complexityTime complexity
Time complexity
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
context free language
context free languagecontext free language
context free language
 
Functions in mathematics
Functions in mathematicsFunctions in mathematics
Functions in mathematics
 
Probability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer ScienceProbability In Discrete Structure of Computer Science
Probability In Discrete Structure of Computer Science
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
Find Transitive Closure Using Floyd-Warshall Algorithm
Find Transitive Closure Using Floyd-Warshall AlgorithmFind Transitive Closure Using Floyd-Warshall Algorithm
Find Transitive Closure Using Floyd-Warshall Algorithm
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
 
Conditional Statement in C Language
Conditional Statement in C LanguageConditional Statement in C Language
Conditional Statement in C Language
 

Similar to Functions in discrete mathematics

Classes and Nested Classes in Java
Classes and Nested Classes in JavaClasses and Nested Classes in Java
Classes and Nested Classes in JavaRavi_Kant_Sahu
 
Discrete mathamatic by adeel
Discrete mathamatic by adeelDiscrete mathamatic by adeel
Discrete mathamatic by adeel
Goodthingbetter
 
Functions and applications
Functions and applicationsFunctions and applications
Functions and applications
NamanLodha3
 
Methods and constructors
Methods and constructorsMethods and constructors
Methods and constructorsRavi_Kant_Sahu
 
Normmmalizzarion.ppt
Normmmalizzarion.pptNormmmalizzarion.ppt
Normmmalizzarion.ppt
Deependra35
 
Differentiated instruction
Differentiated instructionDifferentiated instruction
Differentiated instruction
Nicole Muth
 
316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex
abhaysonone0
 
Teaching algebra through functional programming
Teaching algebra through functional programmingTeaching algebra through functional programming
Teaching algebra through functional programming
Robert Lee
 
Project Lambda: To Multicore and Beyond
Project Lambda: To Multicore and BeyondProject Lambda: To Multicore and Beyond
Project Lambda: To Multicore and BeyondDmitry Buzdin
 
Normalisation
NormalisationNormalisation
Normalisation
Soumyajit Dutta
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
Pavithra Thippanaik
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
Algebra 1 _ LP_1.docx
Algebra 1 _ LP_1.docxAlgebra 1 _ LP_1.docx
Algebra 1 _ LP_1.docx
Marjo DeLa Cruz
 

Similar to Functions in discrete mathematics (14)

Classes and Nested Classes in Java
Classes and Nested Classes in JavaClasses and Nested Classes in Java
Classes and Nested Classes in Java
 
Discrete mathamatic by adeel
Discrete mathamatic by adeelDiscrete mathamatic by adeel
Discrete mathamatic by adeel
 
Functions and applications
Functions and applicationsFunctions and applications
Functions and applications
 
Methods and constructors
Methods and constructorsMethods and constructors
Methods and constructors
 
Normmmalizzarion.ppt
Normmmalizzarion.pptNormmmalizzarion.ppt
Normmmalizzarion.ppt
 
Differentiated instruction
Differentiated instructionDifferentiated instruction
Differentiated instruction
 
316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex
 
Operators in java
Operators in javaOperators in java
Operators in java
 
Teaching algebra through functional programming
Teaching algebra through functional programmingTeaching algebra through functional programming
Teaching algebra through functional programming
 
Project Lambda: To Multicore and Beyond
Project Lambda: To Multicore and BeyondProject Lambda: To Multicore and Beyond
Project Lambda: To Multicore and Beyond
 
Normalisation
NormalisationNormalisation
Normalisation
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
 
Algebra 1 _ LP_1.docx
Algebra 1 _ LP_1.docxAlgebra 1 _ LP_1.docx
Algebra 1 _ LP_1.docx
 

More from Rachana Pathak

Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagram
Rachana Pathak
 
Relations in Discrete Mathematical Structures
Relations in Discrete Mathematical StructuresRelations in Discrete Mathematical Structures
Relations in Discrete Mathematical Structures
Rachana Pathak
 
Wordpress
Wordpress Wordpress
Wordpress
Rachana Pathak
 
Open Source Content Management System
Open Source Content Management System Open Source Content Management System
Open Source Content Management System
Rachana Pathak
 
GIT
GIT GIT
Installation of Joomla using Xampp server Part-2
 Installation of Joomla using Xampp server Part-2 Installation of Joomla using Xampp server Part-2
Installation of Joomla using Xampp server Part-2
Rachana Pathak
 
Installation of Joomla using Xampp server Part-1
 Installation of Joomla using Xampp server Part-1 Installation of Joomla using Xampp server Part-1
Installation of Joomla using Xampp server Part-1
Rachana Pathak
 

More from Rachana Pathak (7)

Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagram
 
Relations in Discrete Mathematical Structures
Relations in Discrete Mathematical StructuresRelations in Discrete Mathematical Structures
Relations in Discrete Mathematical Structures
 
Wordpress
Wordpress Wordpress
Wordpress
 
Open Source Content Management System
Open Source Content Management System Open Source Content Management System
Open Source Content Management System
 
GIT
GIT GIT
GIT
 
Installation of Joomla using Xampp server Part-2
 Installation of Joomla using Xampp server Part-2 Installation of Joomla using Xampp server Part-2
Installation of Joomla using Xampp server Part-2
 
Installation of Joomla using Xampp server Part-1
 Installation of Joomla using Xampp server Part-1 Installation of Joomla using Xampp server Part-1
Installation of Joomla using Xampp server Part-1
 

Recently uploaded

Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 

Recently uploaded (20)

Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 

Functions in discrete mathematics

  • 1. Functions Ms. Rachana Pathak (rachanarpathak@gmail.com) Assistant Professor, Dept of Computer Science and Engineering Walchand Institute of Technology, Solapur (www.witsolapur.org)
  • 2. Learning Outcome 2Walchand Institute of Technology, Solapur At the end of this session, Students will be able to explain Functions in Discrete Mathematical Structures.
  • 3. Definition of a function • A function takes an element from a set and maps it to a UNIQUE element in another set R Z f 4.3 4 Domain Co-domain Pre-image of 4 Image of 4.3 f maps R to Z f(4.3) Walchand Institute of Technology, Solapur 3
  • 4. Definition • Given any sets A, B, a function f from (or “mapping”) A to B (f:AB) is an assignment of exactly one element f(x)B to each element xA. Walchand Institute of Technology, Solapur 4
  • 5. Graphical Representation Walchand Institute of Technology, Solapur 5 f A B a b
  • 6. • If f:AB, and f(a)=b (where aA & bB), then: • A is the domain of f. • B is the codomain of f. • b is the image of a under f. • a is a pre-image of b under f. • In general, b may have more than one pre-image. • The range RB of f is {b | a f(a)=b }. Walchand Institute of Technology, Solapur 6 Terminologies
  • 7. Domain & Co-Domain 1 2 3 4 5 “a” “bb“ “cccc” “dd” “e” A string length function A B C D F Rachana Darshana Namrata Priyanka Rushika A class grade function Domain Co-domain A pre-image of 1 The image of “a” Walchand Institute of Technology, Solapur 7
  • 8. Think & Write Walchand Institute of Technology, Solapur 8 • Suppose that: “f is a function mapping students in this class to the set of grades {A,B,C,D,E}.” • At this point, you know f’s codomain is: __________, and its range is ________. • Suppose the grades turn out all As and Bs. • Then the range of f is _________, but its codomain is __________________.
  • 9. Answer • Suppose that: “f is a function mapping students in this class to the set of grades {A,B,C,D,E}.” • At this point, you know f’s codomain is: __________, and its range is ________. • Suppose the grades turn out all As and Bs. • Then the range of f is _________, but its codomain is __________________. Walchand Institute of Technology, Solapur 9 unknown {A,B,C,D,E} A,B {A,B,C,D,E}
  • 10. Conclusion : In this session, We have studied all about Functions Walchand Institute of Technology, Solapur 10
  • 11. References • 1. Discrete mathematical structures with applications to computer science -- J. P. Tremblay & R. Manohar (MGH International) • Reference Books: • 1. Discrete Mathematics with combinatorics and graph theory- S. SANTHA (CENGAGE Learning) • 2. Discrete Mathematical Structures – Bernard Kolman, Robert C. Busby (Pearson Education) • 3. Discrete mathematics -- Liu (MGH) 11Walchand Institute of Technology, Solapur
  • 12. Thank You !!! 12Walchand Institute of Technology, Solapur