Functions
By:) Manheer Dudeja
Motto of this article
j
Who Am I?
Let us Begin!!
Let us decide the list of stuff
Let’s give shorthand notations
Item Name | Short Name |
BrandX Chewing Gum | X |
BrandY Soda Drink | Y |
BrandC Classic Chips | C |
BrandZ WaterBottle | Z |
BrandW Chocolate | W |
BrandV Mango Drink | V |
Laughing Buddha | L |
Note: All items are unique or distinct | |
Create Code
Requirements for code
Let’s write the codes
***More than 6 in case of backup codes
Let us see which code fetches which item
Code FETCHES | Item |
A | X |
B | Y |
C | Z |
D | W |
E | V |
F | C |
| L |
Mapping from Code to Item
A
B
C
D
E
F
C
W
V
X
Y
Z
L
Let us create a backup code
A new backup Code Added
A
B
C
D
E
F
G
C
W
V
X
Y
Z
L
Let us see mappings which are not allowed
A
B
C
D
E
F
G
C
W
V
X
Y
Z
L
Here Code G wants to fetch two items, which we know creates confusion. SO NOT ALLOWED for any code
Let us see mappings which are not allowed
A
B
C
D
E
F
G
C
W
V
X
Y
Z
L
Here Code G wants to have an empty mapping which is also allowed for any code
What do mathematicians see?
Mathematical Terms
Rules for function
Formal Definition of Functions