Edge computing in SCADA in SCADA systems - Time & Space Complexity
When using edge computing in SCADA systems, we want to know how the processing time changes as more devices or data points are added.
We ask: How does the system's work grow when the number of edge devices increases?
Analyze the time complexity of the following code snippet.
# Process data from multiple edge devices
for device in edge_devices:
data = device.collect_data()
processed = process_data(data)
send_to_central(processed)
This code collects data from each edge device, processes it locally, and sends the result to the central system.
Identify the loops, recursion, array traversals that repeat.
- Primary operation: Loop over all edge devices to collect and process data.
- How many times: Once for each device in the list.
As the number of edge devices increases, the total work grows in direct proportion.
| Input Size (n) | Approx. Operations |
|---|---|
| 10 | 10 data collections and processings |
| 100 | 100 data collections and processings |
| 1000 | 1000 data collections and processings |
Pattern observation: Doubling the devices doubles the work needed.
Time Complexity: O(n)
This means the time to process data grows linearly with the number of edge devices.
[X] Wrong: "Processing data from all devices happens instantly regardless of device count."
[OK] Correct: Each device adds its own processing time, so total time grows as more devices are added.
Understanding how processing scales with device count helps you design efficient SCADA edge systems and shows you can think about system growth clearly.
"What if data processing was done in parallel on all devices? How would the time complexity change?"