반응형
컴퓨터 공학에서의 여러 알고리즘들. 사용할 일이 자주 있지는 않지만, 그래서 잊어버리기 쉬운 것들이라 가끔씩 되새겨줘야한다. 기초는 언제나 튼튼하게.
EKAlgorithms ( https://github.com/EvgenyKarkan/EKAlgorithms )
Array
- Index of maximum element in array.
- Find longest string in array of strings.
- Find shortest string in array of strings.
- Array reverse.
- Intersection of two arrays.
- Union of two arrays (with remove duplicates).
- Find duplicates.
- Array with N unique/not unique random objects.
Search
- Linear search.
- Binary search.
Sort
- Bubble sort.
- Shell sort.
- Merge sort.
- Quick sort.
- Insertion sort.
- Selection sort.
- Heap sort.
String
- Palindrome or not.
- String reverse.
- Words count.
- Permutations of string.
- Occurrences of each character (a - z).
- Count "needles" in a "haystack".
- Random string.
- Concatenation of two strings.
- Find 1st occurrence of "needle" in a "haystack".
- Last occurrence of "needle" in a "haystack".
Number
- Sieve of Eratosthenes.
- Great common divisor (GCD).
- Least common multiple (LCM).
- Factorial.
- Fibonacci numbers.
- Sum of digits.
- Binary to decimal conversion.
- Decimal to binary conversion.
- Fast exponentiation.
- Number reverse.
- Even/odd check.
- Leap year check.
- Armstrong number check.
- Prime number check.
- Swap the value of two NSInteger pointers.
Data structures
- Stack (LIFO).
- Queue (FIFO).
- Deque.
- Linked list.
- Graph
- DFS (depth-first search);
- BFS (breadth-first search).
- Binary search tree (BST).
반응형
'기술' 카테고리의 다른 글
[링크] 'Git 배우기'가 데모와 함께 잘 설명 된 사이트. (0) | 2013.08.21 |
---|---|
Google Analytics App. 메뉴 간략 설명. (0) | 2013.07.22 |
[링크] "크로스플랫폼 앱 프레임워크 선택의 기준" (0) | 2012.04.24 |
잘 돌던 시뮬레이터에서 App 실행이 안될 때. (0) | 2011.11.15 |
Windows 환경의 MySQL에서 Microsoft Office Access로 DB 옮기기 (0) | 2010.05.18 |