CrazyEngineers
  • Why Is Finding Complexity Of Algorithms Important In Practical Scenarios?

    Ankita Katdare

    Administrator

    Updated: Oct 10, 2024
    Views: 853
    The obvious answer that comes is for optimizing the algorithm. Complexity helps us determine how much time & space is utilized by the algorithm for execution.

    Can someone share how complexity of algorithms helps in practical programming situations? Share examples.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Pensu

    MemberDec 13, 2011

    Isn't it obvious. I mean you can make a program using 100kb space, but if it can produce same result in 80kb then its better as it saves space. Using the same thing you can say if a solution can provide the result in 80ms than a solution which generates the result in 100ms, the first one is better. We always want to save space and time, as both of them cost a lot...😉. I think a programmer should try to minimize both of them.
    I guess the main question is how to prioritize them, sometime a better time complexity needs more space. Now its tough decide where to compromise.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register