Supply chain challenges (lithium, cobalt) in EV Technology - Time & Space Complexity
When we look at supply chains for materials like lithium and cobalt, we want to understand how delays or difficulties grow as demand increases.
We ask: How does the effort to get these materials change when more electric vehicles are made?
Analyze the time complexity of the following simplified supply chain process.
for each vehicle in demand_list:
find lithium source
find cobalt source
process materials
assemble battery
deliver battery
This code shows steps repeated for each vehicle needing lithium and cobalt for its battery.
Look at what repeats as demand grows.
- Primary operation: Looping through each vehicle to secure and process materials.
- How many times: Once for every vehicle in the demand list.
As the number of vehicles increases, the supply chain steps repeat for each one.
| Input Size (n) | Approx. Operations |
|---|---|
| 10 | About 10 sets of supply steps |
| 100 | About 100 sets of supply steps |
| 1000 | About 1000 sets of supply steps |
Pattern observation: The work grows directly with the number of vehicles; doubling vehicles doubles the work.
Time Complexity: O(n)
This means the effort to supply materials grows in a straight line with the number of vehicles.
[X] Wrong: "Adding more vehicles won't increase supply effort much because materials come in bulk."
[OK] Correct: Each vehicle needs its own materials processed and delivered, so more vehicles mean more repeated work.
Understanding how supply effort scales with demand helps you think clearly about real-world challenges in electric vehicle production.
"What if multiple vehicles could share a single batch of processed materials? How would the time complexity change?"