Receber por email
← Voltar para o catálogo

segment-tree-builder

Gera implementações personalizadas de árvores de segmento.

1.4kestrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add a5c-ai/babysitter

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/segment-tree-builder/svg)](https://www.skillteca.com.br/skills/segment-tree-builder)

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

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

{
  "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 Schema

{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "code": { "type": "string" },
    "complexity": { "type": "object" },
    "usage": { "type": "string" }
  },
  "required": ["success", "code"]
}
Compartilhar X LinkedIn