A student writes an algorithm that works correctly on small inputs but fails on inputs with 10,000 elements. What should she do next according to computational thinking practices?
-
A
Rewrite the entire program from scratch
-
B
Analyze the algorithm's efficiency and identify bottlenecks
-
C
Reduce the input size permanently
-
D
Switch to a different programming language