Back to Topic 4.3 — Machine learning approaches
4.3.7Computer Science HL5 flashcards

Genetic algorithms

Practice Flashcards

Flip to reveal answers
Card 1 of 54.3.7
4.3.7
Question

What are the stages of a genetic algorithm?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Genetic algorithms

Sign up free to track progress and get spaced-repetition review schedules.

Card 1process

Question

What are the stages of a genetic algorithm?

Answer

**Population → fitness → selection → crossover → mutation → repeat.**

Card 2concept

Question

When is a genetic algorithm appropriate?

Answer

When the search space is **too large to enumerate**, no formula gives the answer, candidates can be **scored**, and "good enough" is acceptable.

Card 3comparison

Question

Crossover or mutation — which introduces novelty?

Answer

**Mutation.** Crossover only recombines values already in the population; mutation can produce one present in neither parent.

Card 4concept

Question

What happens if the mutation rate is too high?

Answer

It becomes a **random search** — good solutions are destroyed as fast as they are found.

Card 5concept

Question

Does a genetic algorithm find the optimal solution?

Answer

**No** — a good one. There is no optimality guarantee, and two runs can give different answers.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free