본문으로 건너뛰기
김신건의 로그

애니메이션

총 383개 · 4 / 16 페이지 · 73–96

본문 코드 펜스로 삽입: ```anim:<id>

태그로 필터 (697)
순환 플로우 (Circulation) 10.0s

간선에 하한/상한 제약이 있는 플로우, 변환으로 max-flow 활용

🔢 알고리즘 circulation
7 elements · 5 chapters
#graph #flow #circulation #lower-bound
스위핑, 구간 겹침 수 세기 13.0s

4개 구간 [1,4], [2,5], [3,6], [7,8] 의 최대 겹침 수를 이벤트 정렬 + 수평선 스윕으로 O(N log N) 에 계산

🔢 알고리즘 sweeping
14 elements · 5 chapters
#sweeping #foundation #algorithm
스택, LIFO + 단조 스택 14.0s

기본 push/pop 시퀀스 + 단조 감소 스택 (Next Greater Element) 예시

🔢 알고리즘 stack
13 elements · 7 chapters
#stack #data-structure #algorithm
슬라이딩 윈도우, 고정 크기 K=3 13.0s

길이 5 배열 [1,2,3,4,5] 에서 크기 3 윈도우가 슬라이드. 각 윈도우 합 계산.

🔢 알고리즘 sliding-window
10 elements · 4 chapters
#sliding-window #foundation #algorithm
시뮬레이션, 로봇 이동 12.0s

3×3 보드에서 로봇이 명령 RRDD 를 순서대로 실행. 경계를 벗어나면 명령 무시.

🔢 알고리즘 simulation
12 elements · 6 chapters
#simulation #foundation #grid
쌍대성 (LP Duality) 9.0s

선형계획법 primal과 dual의 대칭 관계, 행↔열 변환

🔢 알고리즘 duality
5 elements · 3 chapters
#linear-programming #duality #optimization
애드 혹, 패리티 관찰 트릭 12.0s

체스판 (r, c) 에서 나이트 이동. (r+c) % 2 패리티로 같은 색 / 다른 색 판별 O(1).

🔢 알고리즘 ad-hoc
20 elements · 5 chapters
#ad-hoc #foundation #parity
양방향 BFS, 최단 경로 12.0s

source 와 target 에서 동시에 BFS 진행, 중간 지점에서 만나면 종료

🔢 알고리즘 bidirectional-search
18 elements · 6 chapters
#bidirectional-search #bfs #graph #shortest-path
양자화 (Quantization), 연속에서 이산으로 13.0s

FP32 가중치 분포를 16개 격자에 매핑한다. 균등 격자 (INT4) 와 정규분포 친화 격자 (NF4) 의 차이를 시각화. NF4 는 0 근처에 더 많은 bin 을 배치해 정규분포 데이터에 효율적.

🔢 알고리즘 quantization-process
52 elements · 6 chapters
#quantization #nf4 #int4 #fp32 +1
연결 리스트, 노드 삽입 + 삭제 13.0s

head -> node1 -> node2 -> ... 포인터 구조. 중간 삽입 O(1), 삭제 O(1) (위치 알 때).

🔢 알고리즘 linked-list
17 elements · 5 chapters
#linked-list #data-structure #algorithm
오일러 경로 (Eulerian Path) 10.0s

모든 간선을 정확히 한 번씩 지나는 경로, Hierholzer 알고리즘

🔢 알고리즘 eulerian-path
10 elements · 4 chapters
#graph #eulerian #path
오일러 투어 기법 (Euler Tour Technique) 13.0s

DFS 타임스탬프로 서브트리를 구간으로 변환: [tin, tout]

🔢 알고리즘 euler-tour-technique
15 elements · 4 chapters
#tree #euler-tour #dfs #algorithm
외판원 순회 (TSP), bitmask DP O(2^N N^2) 14.0s

4개 도시, 시작=0. DP[mask][last] 채우며 최소 비용 경로 탐색. 최적 경로: 0->1->3->2->0 = 80.

🔢 알고리즘 tsp
15 elements · 7 chapters
#tsp #dp #bitmask #optimization +1
우선순위 큐 (Priority Queue) 12.0s

Max-Heap: 완전 이진 트리, 부모 ≥ 자식. push (sift-up) 와 pop (sift-down) 시각화.

🔢 알고리즘 priority-queue
13 elements · 5 chapters
#priority-queue #heap #data-structure #algorithm
위상 정렬: Kahn's Algorithm 9.0s

진입 차수 0인 노드를 큐에서 꺼내며 DAG 선형 순서를 만듭니다

🔢 알고리즘 topological-sorting
10 elements · 6 chapters
#topological-sort #kahn #dag
유니온 파인드 (Union-Find)와 경로 압축 5.6s

서로소 집합을 트리 형태로 표현하며, Find 연산 시 경로 압축(Path Compression)을 수행합니다.

🔢 알고리즘 union-find
11 elements · 7 chapters
#tree #union-find #disjoint-set #path-compression
유클리드 호제법 (gcd) 9.0s

gcd(a, b) = gcd(b, a mod b) 반복으로 O(log min(a,b))

🔢 알고리즘 euclidean
8 elements · 5 chapters
#euclidean #gcd #number-theory
유향 비순환 그래프 (DAG) 10.0s

사이클이 없는 방향 그래프, 위상 정렬로 선형 순서 계산

🔢 알고리즘 dag
9 elements · 5 chapters
#graph #dag #topological-sort
이분 그래프 (Bipartite Graph) 10.0s

정점을 두 그룹으로 나눠 같은 그룹 내 간선이 없도록, BFS로 2-coloring 판별

🔢 알고리즘 bipartite-graph
9 elements · 5 chapters
#graph #bipartite #coloring #bfs
이분 매칭 (Bipartite Matching) 10.0s

이분 그래프에서 최대 매칭 찾기, DFS로 augmenting path 탐색

🔢 알고리즘 bipartite-matching
9 elements · 5 chapters
#graph #bipartite #matching #augmenting-path
이산 로그: Baby-step Giant-step 10.0s

a^x ≡ b (mod p) 의 x를 O(√p) 에 찾기

🔢 알고리즘 discrete-log
6 elements · 4 chapters
#discrete-log #BSGS #number-theory
이산 k 제곱근: 원시근 + BSGS + exgcd 로 해 찾기 14.0s

x^3 ≡ 8 (mod 11). 원시근 g=2 로 지표화 → BSGS 로 이산로그 → exgcd 로 모든 해. p=11, k=3, a=8.

🔢 알고리즘 discrete-kth-root
14 elements · 6 chapters
#discrete-kth-root #discrete-root #math #number-theory +1
이중 연결 요소 (BCC) 10.0s

DFS로 low-link 계산, 단절점과 이중 연결 요소 찾기

🔢 알고리즘 bcc
10 elements · 5 chapters
#graph #bcc #biconnected #articulation-point
이진 탐색 (Binary Search) 8.2s

정렬 배열에서 target 을 O(log n) 에 찾는 알고리즘. lo/hi/mid 포인터로 절반씩 좁힘.

🔢 알고리즘 binary-search
31 elements · 5 chapters
#binary-search #algorithm #search

사이트 검색 / 명령어

검색

스크롤 = 확대/축소 · 드래그 = 이동 · 0 = 원래 크기 · ESC = 닫기