segment-tree-builder
SolidGenerate customized segment tree implementations
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 92/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Segment Tree Builder Skill
## Purpose
Generate customized segment tree implementations for various merge functions, with support for lazy propagation and advanced variants.
## Capabilities
- Generate segment tree for custom merge functions
- Lazy propagation template generation
- Persistent segment tree variants
- 2D segment tree generation
- Segment tree beats for complex updates
- Iterative vs recursive implementations
## Target Processes
- segment-tree-implementation
- range-query-optimization
- data-structure-implementation
## Segment Tree Variants
1. **Basic**: Point update, range query
2. **Lazy Propagation**: Range update, range query
3. **Persistent**: Version history preservation
4. **2D Segment Tree**: 2D range queries
5. **Segment Tree Beats**: Complex range updates (chmin, chmax)
6. **Merge Sort Tree**: Range order statistics
## Input Schema
```json
{
"type": "object",
"properties": {
"mergeFunction": { "type": "string" },
"identity": { "type": "string" },
"updateType": {
"type": "string",
"enum": ["point", "range", "both"]
},
"lazyPropagation": { "type": "boolean" },
"variant": {
"type": "string",
"enum": ["basic", "lazy", "persistent", "2d", "beats"]
},
"language": {
"type": "string",
"enum": ["cpp", "python", "java"]
},
"style": {
"type": "string",
"enum": ["recursive", "iterative"]
}
},
"required": ["mergeFunction", "identity"]
}
```
## Output Schem...
Details
- Author
- a5c-ai
- Repository
- a5c-ai/babysitter
- Created
- 4 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
advanced-ds-library
Provide implementations of advanced data structures
1,160 Updated today
a5c-ai AI & Automation Solid
tree-sitter
Expert skill for creating tree-sitter grammars for incremental parsing and syntax highlighting
1,160 Updated today
a5c-ai AI & Automation Solid
decision-tree-builder
Automated decision tree construction skill for structuring complex decisions with probabilities, payoffs, and expected value calculations
1,160 Updated today
a5c-ai AI & Automation Solid
behavior-trees-skill
Behavior tree design and implementation for robot decision making
1,160 Updated today
a5c-ai AI & Automation Solid
ast-manipulation
Expert skill for abstract syntax tree design, traversal, transformation, and manipulation patterns
1,160 Updated today
a5c-ai