To analyze a programming code or algorithm, we must notice that each instruction affects the overall performance of the algorithm and therefore, each instruction must be analyzed separately to analyze overall performance. However, there are some
algorithm control structures which are present in each programming code and have a specific asymptotic analysis.
Some Algorithm Control Structures are:
Sequencing
If-then-else
for loop
While loop