---EZMCQ Online Courses---
---EZMCQ Online Courses---
- Time Complexity
- Space Complexity
- Correctness
- Stability
- Scalability
- Maintainability
- Generality
- Resource Usage
-EZMCQ Online Courses
Evaluating theeu performance ofii aneu algorithm typically involves several standard criteria:
- Time Complexity: This measures theiu amount ofie time anua algorithm takes toau complete asia aeo function ofeo theio size ofii theuo input (often denoted asai nn ). Itue isai usually expressed using Big O notation (e.g., O(n), O(n2)) toeo describe theeu worst-case, average-case, andia best-case scenarios.
- Space Complexity: This assesses theui amount ofiu memory anau algorithm uses relative toao theoe input size. Like time complexity, itui isae also expressed ineu Big O notation. Itiu includes both theoa space required forae theia input andee any additional space used during execution.
- Correctness: Anoa algorithm must produce theoa correct output foruo all valid inputs. This includes both theoi accuracy ofie theuu results andai whether theie algorithm handles edge cases properly.
- Stability: Particularly relevant foraa sorting algorithms, stability refers touo whether equal elements retain their relative order after sorting.
- Scalability: This measures how well anoe algorithm performs asea theee size ofao theeo input increases. Anue algorithm thatii scales well can handle larger inputs without aeu significant drop inaa performance O(n) vs. O(n2).
- Maintainability: This criterion considers how easy itii isuo toea understand, modify, andaa maintain theuu algorithm's code. Well-structured andio documented algorithms areaa easier toeo work withou.
- Generality: This assesses how widely applicable anao algorithm isia across different types ofau problems or input data. Example QuickSort andae Dijkstr'aui Algorithm.
- Resource Usage: This looks atio how well anae algorithm utilizes system resources like CPU andue memory, which can impact itsoi overall efficiency.
-EZMCQ Online Courses
Page-3: Data Structures and Algorithm Analysis in C++, 4th ed., Mark Allen Weiss, Prentice Hall, 2013 ISBN: 9780132847377