Pseudocode for Probability and Simulation (VCE SSCE Mathematical Methods): Flashcards

📚Flashcards
Pseudocode for Probability and Simulation
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Pseudocode definition

Informal notation to describe algorithms

Two types of probability algorithms

Simulation (estimates) & exact calculation

random() generates what type of number?

Random real number in (0,1)(0, 1)

randint(n, m) generates what?

Random integer between nn and mm inclusive

randint() for what scenarios?

Discrete outcomes (dice, cards); random() for continuous

Probability estimate formula

counttotal\frac{\text{count}}{\text{total}}

When to use for loops

When you know exact number of iterations

When to use while loops

Until a specific condition is met

Exact probability algorithms do what?

Systematically check all possible outcomes

Nested loops purpose

One loop layer per independent random event

Join 100,000+ SSCE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.