DAA Assignment Answers (2)
DAA Assignment Answers (2)
(Module)
1) Explain the complexity of an algorithm with
its types
Ans: Algorithm complexity is a measure of the
resources an algorithm requires to execute as a
function of the size of the input. These
resources include time (execution time) and
space (memory). Evaluating complexity helps
understand the efficiency and scalability of an
algorithm.
Time Complexity:
Space Complexity: