Pseudocode for Probability and Simulation (VCE SSCE Mathematical Methods): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
Pseudocode definition
Pseudocode definition
Informal notation to describe algorithms
Two types of probability algorithms
Two types of probability algorithms
Simulation (estimates) & exact calculation
random() generates what type of number?
random() generates what type of number?
Random real number in
randint(n, m) generates what?
randint(n, m) generates what?
Random integer between and inclusive
randint() for what scenarios?
randint() for what scenarios?
Discrete outcomes (dice, cards); random() for continuous
Probability estimate formula
Probability estimate formula
When to use for loops
When to use for loops
When you know exact number of iterations
When to use while loops
When to use while loops
Until a specific condition is met
Exact probability algorithms do what?
Exact probability algorithms do what?
Systematically check all possible outcomes
Nested loops purpose
Nested loops purpose
One loop layer per independent random event
