알고리즘
상위 문서: ROOT
알고리즘의 특성
- Input. An algorithm has input values from a specified set.
- Output. From each set of input values an algorithm produces output values from a spec- ified set. The output values are the solution to the problem.
- Definiteness. The steps of an algorithm must be defined precisely.
- Correctness. An algorithm should produce the correct output values for each set of input values.
- Finiteness. An algorithm should produce the desired output after a finite (but perhaps large) number of steps for any input in the set.
- Effectiveness. It must be possible to perform each step of an algorithm exactly and in a finite amount of time.
- Generality. The procedure should be applicable for all problems of the desired form, not just for a particular set of input values.
- 입력. 알고리즘은 명시된 집합으로부터 입력값을 갖는다.
- 출력. 알고리즘은 입력값의 각 집합을 받아 명시된 집합의 출력값을 만든다. 알고리즘의 출력값은 문제의 해이다.
- 명확성. 알고리즘의 각 단계는 명확히 정의되어야 한다.
- 정확성. 알고리즘은 입력값의 각 집합에 대해 정확한 출력값을 만들어야 한다.
- 유한성. 알고리즘은 집합에 있는 어떤 입력에 대해서도 유한한 수의 단계를 거친 후 원하는 출력을 만들어 내야 한다.
- 효율성. 알고리즘의 각 단계를 반드시 유한한 시간 내에 수행하는 것이 가능해야 한다.
- 일반성. 프로시저는 단지 특정한 집합의 입력값에 대해서만 아니라 요구되는 형태의 모든 문제에 적용할 수 있어야 한다.
참고문헌
- Rosen의 이산수학 / Kenneth H. Rosen 저 / 공은배 등저 / 한국맥그로힐(McGraw-Hill KOREA) / 2017년 01월 06일
Documents
- 평균 계산 복잡도 구하기- Average Case Computational Complexity
- B-Tree- 보편적인 색인 구조
- Base 64 인코딩
- 이진 탐색 (Binary Search)
- 계수 정렬 (Counting Sort)
- 고대 이집트 곱셈법- EGYPTIAN MULTIPLICATION
- 그레이 코드(Gray code)- reflected binary Gray code
- 병합 정렬 (Merge Sort)
- MurmurHash
- 퀵 정렬 (Quick Sort)- 빠른정렬
- 선택 정렬 (Selection Sort)- O(N^2)의 매우 단순한 정렬 알고리즘
- 셸 정렬 (Shell Sort)
- 정렬 안정성 (Stability)- 정렬 후에도 같은 키들의 상대적인 순서가 정렬 이전과 같게 유지되는 정렬 방법
- 폰 노이만식 난수 생성법(Basic von Neumann extractor)- 0과 1이 발생할 확률이 다른 경우 사용하자
- 빅 오 표기법(Big O notation)- 알고리즘의 효율성을 나타내는 표기법이다
- 산술 표현식 계산을 위한 2중 스택 알고리즘- Dijkstra's Two-Stack Algorithm for Expression Evaluation
- 더프의 장치 (Duff's device)- 1983년에 고안된 C 언어 루프 풀기 기법
- 힙 정렬 (Heap Sort)- 그리고 우선순위 큐 (Priority Queue)
- 삽입 정렬 (Insertion Sort)- 최선 O(N), 평균 O(N^2), 최악 O(N^2)
- 마스터 정리 (Master Theorem)
- P-NP 문제
- 틸다 근사 (Tilde approximations)- 틸다 표기법
- 하노이의 탑 (The Tower of Hanoi)