Why policy drives EV adoption in EV Technology - Performance Analysis
We want to understand how the impact of policies on electric vehicle (EV) adoption grows as more policies are introduced or as the market changes.
How does the effort or effect scale when policies increase or change?
Analyze the time complexity of the following policy impact model.
function calculateEVAdoption(policies, marketSize) {
let adoption = 0;
for (let i = 0; i < policies.length; i++) {
for (let j = 0; j < marketSize; j++) {
adoption += policies[i].effectiveness;
}
}
return adoption;
}
This code calculates total EV adoption by applying each policy's effectiveness across the entire market.
Look at the loops that repeat actions.
- Primary operation: Adding policy effectiveness to adoption count.
- How many times: For each policy, it repeats for every market participant.
The total operations grow as the number of policies and market size increase together.
| Input Size (policies x marketSize) | Approx. Operations |
|---|---|
| 10 policies x 10 market | 100 |
| 100 policies x 100 market | 10,000 |
| 1000 policies x 1000 market | 1,000,000 |
Pattern observation: Doubling both policies and market size causes operations to grow by four times, showing a combined effect.
Time Complexity: O(p * m)
This means the work grows proportionally with both the number of policies and the size of the market.
[X] Wrong: "Adding more policies only adds a little extra work, so it's almost constant."
[OK] Correct: Each policy affects every market participant, so the total work grows with both policies and market size, not just a little.
Understanding how combined factors affect growth helps you explain real-world systems clearly and shows you can think about scaling effects logically.
"What if each policy only affected a fixed small group of the market instead of everyone? How would the time complexity change?"