Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- implement
- Binary Search
- Binary Tree
- array
- greedy
- 파이썬
- bit manipulation
- 코딩테스트
- Class
- Method
- hash table
- two pointers
- Number Theory
- java
- dynamic programming
- Matrix
- Math
- Data Structure
- database
- sorting
- 구현
- 코테
- SQL
- Tree
- simulation
- Counting
- 자바
- geometry
- Stack
- string
Archives
- Today
- Total
목록Strategy (2)
코린이의 소소한 공부노트
Dynamic Programming
1. 전략: bottom-up approach 1) 문제의 가장 작은 단위부터 사용할 수 있는 반복문을 작성한다. 2) 가장 작은 문제부터 차례대로 풀어나간다. 3) 저장된 결과를 재사용한다. 3) divide and conquer와의 공통점 - 문제를 작게 쪼개서 해결한다. 4) divide and conquer와의 차이점 - DAC의 경우 top-down 형식이기 때문에 중복 계산이 여러 개 생겨날 수 있다. - DP는 bottom-up 형식이기 때문에 중복 계산이 생기지 않는다. 2. 예시 - binomial coefficient - Floyd's algorithm for shortest paths - traveling salesperson problem - chained matrix multipl..
Back-End/Algorithm
2023. 3. 7. 00:35
Divide and Conquer
1. 전략: top-down approach 1) 문제를 둘 이상의 작은 문제들로 쪼갠다. 2) 쪼갠 문제들을 각각 해결한다. - 쪼갠 문제가 충분히 작지 않다면 다시 쪼갠다. 3) 쪼갠 문제들이 해결되면 그 해답을 합친다. 2. 예시 - binary search - merge sort - quick sort - strassen's matrix multiplication - arithmetic with large numbers; representation, multiplication
Back-End/Algorithm
2023. 2. 23. 00:15