일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- BOJ
- Greedy
- 완전탐색
- 수능
- 2020
- Recursive
- benefits
- 알고리즘
- coding
- 영화
- 추천
- 리뷰
- 카카오
- Movie
- 넷플릭스
- 영어
- 코딩 테스트
- usaco
- parametric search
- silver
- 나는솔로
- review
- Algorithm
- BFS
- 해설
- array
- health
- 백준
- Netflix
- kakao
Archives
- Today
- Total
목록nlogn (1)
Young
LIS(longest increasing sequence) - O(NlogN)
오늘은 DP의 특별한 문제 형태라고 할 수 있는 LIS를 알아보겠습니다.보통의 DP로 풀게 되면 O(N^2)으로 풀게 됩니다. 하지만 N의 값이 커지면 O(NlogN)의 알고리즘이 필요합니다. 우선 LIS 문제 정의 부터 알아보겠습니다. The Longest Increasing Subsequence (LIS) problem is to find the length of the longest subsequence of a given sequence such that all elements of the subsequence are sorted in increasing order. For example, the length of LIS for {10, 22, 9, 33, 21, 50, 41, 60, 80} is..
algorithm
2019. 2. 14. 17:20