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

애니메이션

총 383개 · 6 / 16 페이지 · 121–144

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

태그로 필터 (697)
통계: 평균, 분산, 중앙값 14.0s

데이터 [5,8,3,9,2,7] 의 평균, 분산(Welford), 중앙값(two-heap) 계산 과정.

🔢 알고리즘 statistics
17 elements · 4 chapters
#algorithm #math #statistics #probability
트라이 (Trie) 접두사 검색 3.8s

접두사 'ca'로 시작하는 모든 단어를 효율적으로 찾습니다. (저장된 단어: cat, car, card)

🔢 알고리즘 trie
15 elements · 5 chapters
#tree #trie #string #prefix
트리 (Tree) 기초 11.0s

트리 구조: 루트, 부모, 자식, 깊이

🔢 알고리즘 trees
16 elements · 4 chapters
#tree #structure #algorithm
트리 동형 판정 (Tree Isomorphism) 12.0s

Canonical 해시로 트리 구조 비교: O(N)

🔢 알고리즘 tree-isomorphism
14 elements · 4 chapters
#tree #isomorphism #hash #algorithm
트리 DP (Tree DP) 12.0s

트리에서 동적 계획법: post-order DFS 로 dp[u] = f(dp[children])

🔢 알고리즘 dp-tree
18 elements · 4 chapters
#tree #dp #algorithm
트리의 중심 (Centroid) 13.0s

트리에서 centroid 를 찾는 과정: 제거 시 모든 서브트리 ≤ N/2

🔢 알고리즘 centroid
17 elements · 4 chapters
#tree #centroid #algorithm
트리의 지름 (Tree Diameter) 13.0s

2번 DFS 로 가장 먼 두 정점 사이 거리

🔢 알고리즘 tree-diameter
11 elements · 5 chapters
#tree #diameter #dfs #algorithm
평면 그래프, Euler 공식 V-E+F=2 14.0s

K_4 의 평면 임베딩, Euler 공식 V-E+F=2 검증, K_5 와 K_{3,3} 의 non-planarity 시각화.

🔢 알고리즘 planar-graph
20 elements · 5 chapters
#planar-graph #geometry #algorithm
포함-배제 원리 (Inclusion-Exclusion) 10.0s

Venn diagram, |A∪B∪C| = Σ|A_i| - Σ|A_i∩A_j| + ...

🔢 알고리즘 inclusion-and-exclusion
6 elements · 4 chapters
#inclusion-exclusion #combinatorics #math
플로이드-워셜, 모든 쌍 최단 경로 11.0s

중간 정점 k를 1부터 V까지 순회하며 dist[i][j] = min(dist[i][j], dist[i][k]+dist[k][j]) DP 갱신

🔢 알고리즘 floyd-warshall
16 elements · 6 chapters
#floyd-warshall #graph #shortest-path #dp
피사노 주기 (Pisano Period) 9.0s

Fibonacci mod m의 주기 탐지

🔢 알고리즘 pisano
7 elements · 3 chapters
#pisano #fibonacci #modulo #period
함수 그래프: 사이클 + 트리 구조 10.0s

각 정점에서 정확히 하나의 간선이 나가며, 트리 꼬리 부분과 사이클 부분으로 구성됩니다.

🔢 알고리즘 functional-graph
15 elements · 5 chapters
#functional-graph #cycle-detection #floyd
해 구성하기, Balanced Parentheses 13.0s

N쌍 괄호로 올바른 괄호 문자열 생성. 단계적으로 ( 와 ) 를 추가하며 조건 유지.

🔢 알고리즘 constructive
10 elements · 6 chapters
#constructive #foundation #greedy
해시 집합 (Hash Set) 14.0s

키를 hash(k) mod M 으로 버킷에 배치. 충돌 시 chaining (연결 리스트) 처리.

🔢 알고리즘 hash-set
15 elements · 6 chapters
#hash-set #data-structure #hash
해시 충돌 (Hash Collision), Chaining 11.6s

5-bucket 해시 테이블에 5개 key 삽입. 같은 bucket 에 들어가는 key 는 연결 리스트로 chain 됨.

🔢 알고리즘 hash-collision
47 elements · 7 chapters
#hash #collision #chaining #data-structure
헝가리안 알고리즘: 최적 할당 10.0s

비용 행렬을 줄이고 0을 커버하여 최소 비용 완전 매칭을 찾습니다

🔢 알고리즘 hungarian
4 elements · 4 chapters
#hungarian #assignment #matching
확률 (Probability) 9.0s

동전 던지기 / 주사위, running probability

🔢 알고리즘 probability
5 elements · 3 chapters
#probability #math #statistics
확장 유클리드: ax + by = gcd(a,b) 10.0s

gcd 계산 + 베주 항등식의 계수 (x, y) 도출

🔢 알고리즘 extended-euclidean
6 elements · 4 chapters
#euclidean #extended-gcd #number-theory
A* 휴리스틱 탐색, f = g + h 13.0s

4개 정점 그래프에서 s=1->t=4 최단 경로. f=g+h 평가로 목표 방향 우선 확장.

🔢 알고리즘 a-star
15 elements · 6 chapters
#a-star #search #heuristic #shortest-path
Aho-Corasick, Trie + failure link 13.0s

패턴 {he, she, his, hers} 를 Trie 에 삽입하고 failure link 로 다중 패턴을 동시에 매칭.

🔢 알고리즘 aho-corasick
21 elements · 4 chapters
#aho-corasick #string #trie #pattern-matching
Aliens Trick (WQS Binary Search) 12.0s

정확히 K개 선택 제약을 lambda 페널티로 완화, f(K) 그래프의 접선을 이분탐색으로 찾아 최적값 계산. Concave 함수의 상단 봉투 추적.

🔢 알고리즘 aliens-trick
15 elements · 4 chapters
#algorithm #dp #binary-search
ArrayDeque, 원형 배열의 head/tail 14.0s

ArrayDeque 가 head/tail 인덱스를 modular arithmetic 으로 관리해 addFirst/addLast/removeFirst/removeLast 모두 O(1) 인 원리.

🔢 알고리즘 java-arraydeque-circular
16 elements · 5 chapters
#java #arraydeque #deque #circular-buffer +1
ArrayList, 동적 배열의 성장과 shift 17.0s

ArrayList 의 내부 배열이 add, capacity 확장, remove 시 어떻게 변하는지 capacity 와 size 를 함께 보여준다.

🔢 알고리즘 java-arraylist-ops
22 elements · 5 chapters
#java #arraylist #dynamic-array #collection
Barrett Reduction으로 나머지 연산 가속 14.0s

느린 나눗셈 명령 대신 사전 계산된 상수와 곱셈, 시프트 연산으로 모듈러 연산을 빠르게 수행하는 방법을 시각화합니다.

🔢 알고리즘 barrett-reduction
15 elements · 5 chapters
#algorithm #optimization

사이트 검색 / 명령어

검색

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