티스토리 뷰

Algorithms: Search, Sort, ….

Linear Search
- check from index 0
- linear time complexity: as input size grows, running time also increase in a linear way

Binary Search
- only works on sorted array
- sorted array: items on an array are sorted. adding items on a sorted array takes more time than one that is not
- searching process starts from the middle of the array

'data structure' 카테고리의 다른 글

Sort  (0) 2022.01.19
Type of Time Complexity (Big O notation)  (0) 2022.01.19
Array  (0) 2022.01.19
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함