Biblioteca
Biblioteca de algoritmos, estruturas de dados e primitivas para Maratona de Programação (ICPC) da UFMG.
Install / Use
/learn @brunomaletta/BibliotecaREADME
Biblioteca de algoritmos, estruturas de dados e primitivas para Maratona de Programação (ICPC) da UFMG.
Códigos em C++, em maior parte implementados pelos alunos da universidade. Mantida desde 2018.
<details> <summary>Hash</summary>No PDF, a coluna de hash é o hash de cada linha, exceto se a linha contem um caractere }. Nesse caso, o hash da linha é o hash a partir da linha que fecha o último } da linha atual.
Para ver o hash no vim, seleciona as linhas com Shift+v, e aperta Ctrl+h.
📚 Conteúdo
🧠 Programação Dinâmica
- Divide and Conquer DP
- Longest Common Subsequence - O(n+m) de memória
- Mochila - O(n+cap) de memória
- SOS DP
- Subset Sum
🗂️ Estruturas de Dados
- Segment Tree
- Segtree Padrão (soma)
- Segtree 2D (iterativa)
- Segtreap (equivalente a seg 2D esparsa)
- Segtree Beats
- Segtree Colorida (lê os comentários pra saber o que faz)
- Segtree Esparsa - Lazy
- Segtree Esparsa - O(q) Memória
- Segtree Iterativa
- Segtree Iterativa com Lazy Propagation
- Segtree de PA
- Segtree Persistente
- Segtree Persistente com Lazy
- BIT (Fenwick Tree)
- BIT 2D
- BIT com Soma em Range
- BIT-Sort Tree
- Convex Hull Trick
- Convex Hull Trick Dinâmico
- DSU (e variações)
- Li-Chao Tree
- Li-Chao Tree Lazy
- MergeSort Tree
- Minqueue - Deque
- Minqueue - Stack
- Priority Queue DS
- Order Statistic Set (GCC)
- Range Color
- RMQ <O(n), O(1)>
- Slope Trick
- Sparse Table
- Sparse Table Disjunta
- Splaytree
- Splaytree Implicita
- Split-Merge Set
- Split-Merge Set - Lazy
- SQRT Tree
- Treap
- Treap Implícita
- Treap Implícita Persistente
- Wavelet Tree
🌳 Grafos
- LCA/HLD
- LCT
- AGM Direcionada (arborescência)
- Articulation Points
- Bellman-Ford
- Block-Cut Tree
- Blossom
- Centro/Diâmetro em Árvore
- Centroid (encontra os centroids da árvore)
- Centroid Decomposition
- Centroid Tree
- Dijkstra
- Dinitz
- Dominator Tree
- [Euler Path / Euler Cycle Linear](https://github.com/brunomaletta/Biblioteca/blo
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
