Simulation
Also known as: model, modeling
Using a computer program to model and experiment with a real-world system or process. Test scenarios too dangerous, expensive, or slow to do in reality.
💡 Intuition
A virtual experiment—test ideas without real-world consequences.
Core Idea
Simulations simplify reality by choosing which variables to model and which details to ignore.
🔬 Example
🎯 Why It Matters
Test scenarios too dangerous, expensive, or slow to do in reality.
⚠️ Common Confusion
Simulations are only as good as their underlying assumptions—garbage in, garbage out.
Related Concepts
Prerequisites
How Simulation Connects to Other Ideas
To understand simulation, you should first be comfortable with algorithm and abstraction.
Go Deeper
Frequently Asked Questions
What is Simulation in CS Thinking?
Using a computer program to model and experiment with a real-world system or process.
Why is Simulation important?
Test scenarios too dangerous, expensive, or slow to do in reality.
What do students usually get wrong about Simulation?
Simulations are only as good as their underlying assumptions—garbage in, garbage out.
What should I learn before Simulation?
Before studying Simulation, you should understand: algorithm, abstraction.