Algorithm Thinking Assignment
Algorithm Thinking Assignment
Design Principles
2. List and briefly explain the four main characteristics of a good algorithm.
[4 marks]
3.Explain the difference between a linear and a non-linear algorithm. Provide one
example of each.
[4 marks]
total = 0
for i from 1 to n
total = total + i
print total
11. Explain how time complexity influences the choice of algorithm. Give one
practical example. [3 marks]
13.Bonus (Optional): Research and write a short paragraph on any one famous
algorithm (e.g., Dijkstra's Algorithm, Binary Search, Merge Sort).
[Up to 5 bonus marks]
End of Assignment