SlideShare a Scribd company logo
Fundamental Principle ofFundamental Principle of
CountingCounting
• Definition:Definition: Let A and B be two events. SayLet A and B be two events. Say
event A can occur inevent A can occur in mm different ways. After Adifferent ways. After A
has occurred, say event B can occur inhas occurred, say event B can occur in nn
different ways. Then the number of ways thatdifferent ways. Then the number of ways that
the two events can occur isthe two events can occur is mm··nn..
Basic Counting ProblemBasic Counting Problem
• Say that I have a jar with 7 balls in it numbered 1
through 7. How many ways can 10 be made (by
addition of the numbers on the balls) if I pull a ball
out of the jar, put it back, and then draw out a
second ball.
FUNDAMENTALFUNDAMENTAL
PRINCIPLE OFPRINCIPLE OF
COUNTINGCOUNTING
• EXAMPLE: (like #9,11 on HW)EXAMPLE: (like #9,11 on HW)
• You want to redesign your FacebookYou want to redesign your Facebook
profile and change the layout to seeprofile and change the layout to see
only 3 applications. You want oneonly 3 applications. You want one
application that pertains to yourapplication that pertains to your
friends, one that pertains to music,friends, one that pertains to music,
and one that pertains toand one that pertains to
pictures/videos.pictures/videos.
• If these are the applications you haveIf these are the applications you have
available in each category, how manyavailable in each category, how many
layouts are possible:layouts are possible:
– MusicMusic: 1. iLike: 1. iLike
2. My Band2. My Band
3. Profile Song3. Profile Song
– FriendsFriends: 1. Top Friends: 1. Top Friends
2. Compare Friends2. Compare Friends
– Pictures/VideosPictures/Videos: 1. My Flickr: 1. My Flickr
2. Slideshows2. Slideshows
3. Graffiti3. Graffiti
4. Animoto4. Animoto
VideosVideos
– Answer: 3x2x4=24Answer: 3x2x4=24
• EXAMPLE:EXAMPLE: (like #19 on HW)(like #19 on HW)
• Your little brother just broke into your Facebook account andYour little brother just broke into your Facebook account and
now you need to change your password. You want it to be 5now you need to change your password. You want it to be 5
characters long. The first 3 characters are to be letters andcharacters long. The first 3 characters are to be letters and
the last 2 characters are to be numbers. How many passwordsthe last 2 characters are to be numbers. How many passwords
are possible? What if you don’t want to repeat letters andare possible? What if you don’t want to repeat letters and
numbers?numbers?
• Answer: 26x26x26x10x10=1,757,600Answer: 26x26x26x10x10=1,757,600
• Answer: 26x25x24x10x9=1,404,000Answer: 26x25x24x10x9=1,404,000
II. Fundamental Principle of Counting
• EXAMPLE:
– Say that you have 42 friends
on Facebook. Any time you
access your profile, 6 of your
friends will appear in a box
below your picture. Each
time these friends are
randomly generated out of
your 42 friends. How many
different arrangements of 6
people can show up?
– Answer:
• 42x41x40x39x38x37=
3,776,965,920
II. Fundamental Principle of Counting
• EXAMPLE: (like #15,19 on HW)
– What if your friend Ally or
boyfriend Bobby must be in
position one, that is, they
are your only 2 choices for
that first spot?
(note: you still have 42 friends)
– Answer:
• 2x41x40x39x38x37=
179,855,520
Just to note…
• This can also be thought of as: nPr
• Permutations of n objects taken r at a time.
• For this example we would have 42P6 which
would get you the same answer
Just to note…
• This can also be thought of as: nPr
• Permutations of n objects taken r at a time.
• For this example we would have 42P6 which
would get you the same answer

More Related Content

Similar to Counting principles lesson

Gateway Review
Gateway ReviewGateway Review
Gateway Review
Bo Chamberlain
 
Math Gateway
Math GatewayMath Gateway
Math Gateway
Topher1979
 
Wise Ones take steps to keep the brain and mind healthy.ppt
Wise Ones take steps to keep the brain and mind healthy.pptWise Ones take steps to keep the brain and mind healthy.ppt
Wise Ones take steps to keep the brain and mind healthy.ppt
OH TEIK BIN
 
It's Time to Exercise Thinking.pptx
It's Time to Exercise Thinking.pptxIt's Time to Exercise Thinking.pptx
It's Time to Exercise Thinking.pptx
OH TEIK BIN
 
Integrated Math 2 Section 4-2
Integrated Math 2 Section 4-2Integrated Math 2 Section 4-2
Integrated Math 2 Section 4-2
Jimbo Lamb
 
counting techniques
counting techniquescounting techniques
counting techniques
Unsa Shakir
 

Similar to Counting principles lesson (6)

Gateway Review
Gateway ReviewGateway Review
Gateway Review
 
Math Gateway
Math GatewayMath Gateway
Math Gateway
 
Wise Ones take steps to keep the brain and mind healthy.ppt
Wise Ones take steps to keep the brain and mind healthy.pptWise Ones take steps to keep the brain and mind healthy.ppt
Wise Ones take steps to keep the brain and mind healthy.ppt
 
It's Time to Exercise Thinking.pptx
It's Time to Exercise Thinking.pptxIt's Time to Exercise Thinking.pptx
It's Time to Exercise Thinking.pptx
 
Integrated Math 2 Section 4-2
Integrated Math 2 Section 4-2Integrated Math 2 Section 4-2
Integrated Math 2 Section 4-2
 
counting techniques
counting techniquescounting techniques
counting techniques
 

Recently uploaded

Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
UiPathCommunity
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 

Recently uploaded (20)

Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 

Counting principles lesson

  • 1.
  • 2. Fundamental Principle ofFundamental Principle of CountingCounting • Definition:Definition: Let A and B be two events. SayLet A and B be two events. Say event A can occur inevent A can occur in mm different ways. After Adifferent ways. After A has occurred, say event B can occur inhas occurred, say event B can occur in nn different ways. Then the number of ways thatdifferent ways. Then the number of ways that the two events can occur isthe two events can occur is mm··nn..
  • 3. Basic Counting ProblemBasic Counting Problem • Say that I have a jar with 7 balls in it numbered 1 through 7. How many ways can 10 be made (by addition of the numbers on the balls) if I pull a ball out of the jar, put it back, and then draw out a second ball.
  • 5. • EXAMPLE: (like #9,11 on HW)EXAMPLE: (like #9,11 on HW) • You want to redesign your FacebookYou want to redesign your Facebook profile and change the layout to seeprofile and change the layout to see only 3 applications. You want oneonly 3 applications. You want one application that pertains to yourapplication that pertains to your friends, one that pertains to music,friends, one that pertains to music, and one that pertains toand one that pertains to pictures/videos.pictures/videos. • If these are the applications you haveIf these are the applications you have available in each category, how manyavailable in each category, how many layouts are possible:layouts are possible: – MusicMusic: 1. iLike: 1. iLike 2. My Band2. My Band 3. Profile Song3. Profile Song – FriendsFriends: 1. Top Friends: 1. Top Friends 2. Compare Friends2. Compare Friends – Pictures/VideosPictures/Videos: 1. My Flickr: 1. My Flickr 2. Slideshows2. Slideshows 3. Graffiti3. Graffiti 4. Animoto4. Animoto VideosVideos – Answer: 3x2x4=24Answer: 3x2x4=24
  • 6. • EXAMPLE:EXAMPLE: (like #19 on HW)(like #19 on HW) • Your little brother just broke into your Facebook account andYour little brother just broke into your Facebook account and now you need to change your password. You want it to be 5now you need to change your password. You want it to be 5 characters long. The first 3 characters are to be letters andcharacters long. The first 3 characters are to be letters and the last 2 characters are to be numbers. How many passwordsthe last 2 characters are to be numbers. How many passwords are possible? What if you don’t want to repeat letters andare possible? What if you don’t want to repeat letters and numbers?numbers? • Answer: 26x26x26x10x10=1,757,600Answer: 26x26x26x10x10=1,757,600 • Answer: 26x25x24x10x9=1,404,000Answer: 26x25x24x10x9=1,404,000
  • 7. II. Fundamental Principle of Counting • EXAMPLE: – Say that you have 42 friends on Facebook. Any time you access your profile, 6 of your friends will appear in a box below your picture. Each time these friends are randomly generated out of your 42 friends. How many different arrangements of 6 people can show up? – Answer: • 42x41x40x39x38x37= 3,776,965,920
  • 8. II. Fundamental Principle of Counting • EXAMPLE: (like #15,19 on HW) – What if your friend Ally or boyfriend Bobby must be in position one, that is, they are your only 2 choices for that first spot? (note: you still have 42 friends) – Answer: • 2x41x40x39x38x37= 179,855,520
  • 9. Just to note… • This can also be thought of as: nPr • Permutations of n objects taken r at a time. • For this example we would have 42P6 which would get you the same answer
  • 10. Just to note… • This can also be thought of as: nPr • Permutations of n objects taken r at a time. • For this example we would have 42P6 which would get you the same answer