일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Android
- androidstudio
- bitmap
- BOJ
- Canvas
- CS
- Database
- DBeaver
- DP
- Ecilpse
- Eclipse
- firebase
- git
- github
- GooglePlayServices
- gradle
- IDE
- IntelliJ
- java
- json
- kotlin
- level2
- linux
- mariadb
- MYSQL
- Paint
- permission
- python
- Sorting
- sourcetree
Archives
목록빅오표기법 (1)
will come true

정렬된 리스트에서 사용할 수 있는 알고리즘들 단순 탐색 리스트에 존재하는 요소들과 아이템을 하나씩 차례대로 비교하며 찾고자 하는 대상을 찾는 방식. 비교 아이템과 일치하는 요소를 찾을 때까지 반복. 한 번의 연산으로 하나의 요소가 비교 대상에서 제외됨 단순 탐색 알고리즘 (Python) #list내에서 item을 탐색하여 index값을 반환해주는 함수 def simple_search(list, item): for i in range(0, len(list)): guess = list[i] if guess == item: return i return None my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] print(simple_search(my_list, 6))#5 print(s..
Algorithm
2021. 9. 7. 18:15