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

애니메이션

총 383개 · 5 / 16 페이지 · 97–120

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

태그로 필터 (697)
이진 트리 BFS 순회 5.9s

루트에서 시작해 너비 우선 (level order)으로 노드 방문

🔢 알고리즘 simple-tree
19 elements · 8 chapters
#tree #bfs #algorithm #traversal
임의 정밀도 큰 수 덧셈, 자리올림 전파 13.0s

두 큰 수 1234 + 5678 를 일의 자리부터 더하며 자리올림을 전파. O(n) 학교 교과서 방식.

🔢 알고리즘 arbitrary-precision
19 elements · 6 chapters
#arbitrary-precision #big-integer #math #algorithm
자료구조 (Data Structures) 개요 10.0s

배열, 스택, 큐, 트리, 해시 테이블 등 주요 자료구조 비교

🔢 알고리즘 data-structures
11 elements · 4 chapters
#data-structure #overview
자릿수 DP (Digit DP) 13.0s

N=123, K=6. 자릿수 합이 6인 수의 개수. 왼쪽부터 각 자릿수 선택, tight 플래그로 upper bound 관리.

🔢 알고리즘 dp-digit
7 elements · 5 chapters
#dp #digit #counting
재귀, factorial(4) 호출 스택 13.0s

factorial(4) = 4 * factorial(3) ... 호출 스택이 쌓이고 base case 도달 후 unwinding 하며 값 계산.

🔢 알고리즘 recursion
12 elements · 5 chapters
#recursion #foundation #call-stack
전처리, O(N) pre + O(1) query 13.0s

팩토리얼 1..N 을 미리 계산. 이후 nCr 쿼리를 fact[n] * inv_fact[r] * inv_fact[n-r] 으로 O(1).

🔢 알고리즘 precomputation
15 elements · 5 chapters
#precomputation #precalc #combinatorics #algorithm
정규 표현식, Thompson NFA 12.5s

패턴 "a(b|c)*" 를 Thompson construction 으로 NFA 로 변환하고 문자열 "abcc" 매칭.

🔢 알고리즘 regex
18 elements · 4 chapters
#regex #nfa #thompson #string
조합론: nCr 과 Pascal 의 삼각형 13.0s

이항계수 C(n, r) = n! / (r! · (n-r)!) 과 Pascal 의 삼각형 DP

🔢 알고리즘 combinatorics
34 elements · 5 chapters
#math #combinatorics #pascal-triangle #binomial-coefficient
조화수 (Harmonic Number) 9.0s

H_n = 1 + 1/2 + ... + 1/n, 발산하지만 log-growth

🔢 알고리즘 harmonic-number
11 elements · 3 chapters
#harmonic #math #series
좌표 압축, 큰 값 -> 작은 인덱스 12.0s

값 [-5, 10^9, 0, -5, 42] 를 정렬 후 unique -> [-5, 0, 42, 10^9] 로 압축, 각 값에 0..3 인덱스 할당.

🔢 알고리즘 coordinate-compression
26 elements · 5 chapters
#coordinate-compression #compression #query #algorithm
중국인의 나머지 정리 (CRT) 14.0s

x ≡ 2 (mod 3), x ≡ 3 (mod 5), x ≡ 2 (mod 7) → x = 23 (mod 105). 세 조건을 하나로 합친다.

🔢 알고리즘 crt
13 elements · 5 chapters
#math #crt #number-theory
중심 분해 (Centroid Decomposition) 14.0s

재귀적 centroid 분해: O(log N) 깊이, 경로 쿼리 전처리

🔢 알고리즘 centroid-decomposition
16 elements · 5 chapters
#tree #centroid #decomposition #algorithm
차분 배열, 구간 갱신 O(1) 12.0s

길이 5 배열에 [1,3] 구간 +5 갱신. d[1]+=5, d[4]-=5 후 prefix sum 으로 복원.

🔢 알고리즘 difference-array
15 elements · 5 chapters
#difference-array #foundation #algorithm
차분 분석, 4-bit S-box 공격 13.0s

두 평문의 XOR 차이가 S-box를 거치면서 어떻게 변하는지 추적하고, DDT에서 확률을 확인한 후 키를 복구하는 과정.

🔢 알고리즘 differential-cryptanalysis
17 elements · 6 chapters
#algorithm #math #differential-cryptanalysis #cryptography
차수 수열 8.0s

주어진 차수 수열로 단순 그래프를 만들 수 있는지 Erdős-Gallai 정리로 판별

🔢 알고리즘 degree-sequence
10 elements · 4 chapters
#graph #degree-sequence
최단 경로: BFS 9.0s

가중치 1 그래프에서 BFS로 최단 거리를 구합니다

🔢 알고리즘 shortest-path
12 elements · 4 chapters
#shortest-path #bfs #graph
최대 유량 최소 컷 정리 (MFMC) 11.0s

최대 유량의 값은 최소 컷의 용량과 같다. residual graph BFS로 컷 복원.

🔢 알고리즘 mfmc
14 elements · 5 chapters
#mfmc #max-flow #min-cut #flow
최소 공통 조상 (LCA, Lowest Common Ancestor) 12.0s

Binary lifting 으로 O(log N) LCA 쿼리

🔢 알고리즘 lca
11 elements · 4 chapters
#tree #lca #binary-lifting #algorithm
최소 비용 최대 유량 (MCMF) 12.0s

SPFA로 최단 비용 경로를 찾아 반복 증가. 최대 유량을 최소 비용으로 달성.

🔢 알고리즘 mcmf
10 elements · 5 chapters
#mcmf #min-cost-max-flow #spfa #flow
최소 신장 트리 (MST), Kruskal 10.0s

간선을 가중치 순 정렬 후 Union-Find로 사이클 체크. V-1개 선택.

🔢 알고리즘 mst
18 elements · 5 chapters
#mst #kruskal #union-find #spanning-tree
카테시안 트리 (Cartesian Tree) 10.0s

배열에서 빌드, 루트는 최솟값, in-order = 원래 순서

🔢 알고리즘 cartesian-tree
16 elements · 5 chapters
#data-structure #tree #rmq
커넥션 프로파일 DP: Broken Profile 타일링 14.0s

2x4 격자의 도미노 타일링을 broken profile DP 로 계산. profile bitmask (W=4) 가 경계면을 표현.

🔢 알고리즘 dp-connection-profile
14 elements · 5 chapters
#dp-connection-profile #dp #bitmask #tiling +1
케이스 워크, 삼각형 판별 의사결정 트리 14.0s

3개 변 (a, b, c) 로 삼각형 성립 여부 + 종류 (정삼각형, 이등변, 직각, 일반) 판별. 조건 분기 트리.

🔢 알고리즘 case-work
16 elements · 7 chapters
#case-work #foundation #decision-tree
큐, FIFO + BFS 진행 14.0s

기본 push/pop 시퀀스 (FIFO) + BFS 의 큐 진행 예시 (레벨 순서 순회)

🔢 알고리즘 queue
16 elements · 7 chapters
#queue #data-structure #algorithm

사이트 검색 / 명령어

검색

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