Space complexicty:memory
Time complexity:execution time
Algorithm's efficiency:#of basic operations executed as a function of input size
Basic operation
-single or group instructions
-execution time is independent of n
n:input size
Input size
-배열의 키들의 갯수
->sequential search, binary search, add array members, exchange sort
-#of rows and columns
->Matrix multiplication
-#of nodes and edges
->graph:n,e n-1<=e<=n(n-1)/2
-logn(floor처리)+1
->피보나치
#:number
'cs > 알고리즘' 카테고리의 다른 글
[알고리즘] 모듈러 연산(나머지 연산) (0) | 2021.09.08 |
---|---|
알고리즘 문제에서의 시간 복잡도(빅오 표기법) (0) | 2021.09.08 |
Time complexity Analysis (0) | 2021.05.09 |
Space Complexity Analysis (0) | 2021.05.09 |
알고리즘 문제해결과정 (0) | 2021.01.16 |