Logo di Algorithm Selection And Complexity

Algorithm Selection And Complexity

Community
peterbamuhigire
algorithm-selection-and-complexity

Use when choosing, reviewing, or explaining an algorithm under explicit correctness, time, space, input-scale, or maintainability constraints; use system-architecture-design for service boundaries and language skills for implementation syntax.

Panoramica

Autorepeterbamuhigire
Repositorychwezi-dev-engine
Nome della skillalgorithm-selection-and-complexity
Stelle
29
Fork
6
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 1 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da peterbamuhigire su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Algorithm Selection And Complexity in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/languages/algorithm-selection-and-complexity
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterbamuhigire/chwezi-dev-engine.git /tmp/chwezi-dev-engine
mkdir -p .claude/skills
cp -r /tmp/chwezi-dev-engine/skills/languages/algorithm-selection-and-complexity .claude/skills/algorithm-selection-and-complexity
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Algorithm Selection And Complexity in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Algorithm Selection And Complexity non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Algorithm Selection And Complexity non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Algorithm Selection and Complexity

Choose algorithms by the problem contract and operating constraints, then prove the choice with edge cases and measurements. This skill covers a small, production-relevant catalogue; it does not replace domain, language, or architecture review.

Use When

  • A feature has a non-trivial search, matching, assignment, optimisation, graph, cache, or pathfinding problem.
  • Two correct implementations have different worst-case time, memory, or operational behaviour.
  • A developer needs a plain-language explanation before writing or reviewing code.
  • An early implementation works on examples but its behaviour at scale or at failure boundaries is unknown.

Do Not Use When

  • A standard library operation already satisfies the measured contract; use the language skill and document the chosen primitive.
  • The main decision is service decomposition, data ownership, or deployment; use the applicable architecture or operations skill.
  • The request is an interview-only puzzle with no implementation, correctness, or maintenance decision.

Inputs

InputRequiredPurpose
Problem statement and expected outputyesEstablish correctness and generality
Input shape, scale, and distributionyesBound time and memory behaviour
Failure, freshness, and determinism constraintsconditionalExpose operational risks
Baseline implementation or brute-force comparatorconditionalMeasure whether optimisation earns its complexity

Outputs

  • Algorithm decision record naming the selected algorithm, rejected alternatives, assumptions, and complexity bounds.
  • Edge-case and correctness test matrix.
  • Benchmark evidence on representative and adversarial inputs, or an explicit NOT ASSESSED record.

Evidence Produced

CategoryArtifactFormatExample
CorrectnessDecision recordMarkdown record: selected algorithm and rejected alternatives are traceable to constraintsdocs/algorithms/pathfinding-decision.md
CorrectnessCorrectness matrixMarkdown matrix: edge and failure cases are covered or marked opendocs/algorithms/pathfinding-correctness.md
PerformanceBenchmark recordMarkdown record: inputs, environment, result, and threshold are retaineddocs/algorithms/pathfinding-benchmark.md

Non-negotiables

  • Start with a clear, correct baseline before optimising.
  • Analyse worst-case time and space, not only a favourable example.
  • State what the algorithm assumes about ordering, alphabet, graph weights, cache workload, or input validity.
  • Prefer a simpler correct algorithm when the measured constraint does not require the extra machinery.
  • Do not treat a book example or asymptotic bound as production evidence.

Decision Rules

Problem shape or constraintCandidate routeRequired caution
Stable matching between two preference listsGale-ShapleyDefine proposer-side outcome and incomplete or tied preferences before implementation
Minimum-cost assignment between equal or rectangular setsHungarian algorithmConfirm the cost matrix, forbidden assignments, and padding policy
Many pattern searches or rolling-hash-friendly textRabin-KarpVerify hash hits with exact comparison; collisions are not matches
Pattern search over a stream that cannot be rewoundKnuth-Morris-PrattTest fallback-table construction and repeated-prefix cases
Long static text with a diverse alphabetHorspoolDo not use its skip assumptions blindly on tiny alphabets or short patterns
Bounded value/capacity optimisationKnapsack dynamic programmingState whether the problem is 0/1 or unbounded and bound the table size
Heuristic exploration of combinatorial pathsAnt colony optimisationDefine convergence, reproducibility, and a usable fallback; it is not an exact guarantee
All-pairs shortest paths on a manageable graphFloyd-WarshallReject negative cycles and bound the cubic work before choosing it
Maximum flow through a capacity networkPush-relabelValidate capacities, residual edges, and conservation invariants
Maximal cliques in a graphBron-KerboschExpect output-sensitive growth; constrain graph size and result volume
Lowest-cost path with a useful heuristicA*The heuristic must be admissible for optimality; handle no-path and stale-node cases
Cache with recency and frequency shiftsAdaptive replacement cacheMeasure workload, memory overhead, and eviction stability against a simpler policy

Workflow

  1. Write the problem as input, output, invariants, and failure behaviour.
  2. Implement or retain a transparent baseline and test it on empty, minimum, maximum, duplicate, malformed, and adversarial inputs.
  3. Compare candidate algorithms by correctness risk, worst-case cost, memory, data-shape assumptions, observability, and maintenance burden.
  4. Choose the smallest candidate that satisfies the stated contract. Record the reason, rejected alternative, and any heuristic or probabilistic caveat.
  5. Add proof-oriented tests for invariants and differential tests against the baseline on generated inputs where practical.
  6. Benchmark representative and worst-case distributions. Keep input fixtures, environment, result, and regression threshold with the decision record.
  7. Revisit the choice when data shape, throughput, memory budget, or failure consequences change; do not optimise from an old measurement.

Anti-patterns

  • Choosing an algorithm because its name is fashionable. Fix: start with the problem contract and measured constraint.
  • Reporting average-case speed without naming the input distribution. Fix: include worst-case analysis and a distribution-specific benchmark.
  • Replacing a correct baseline before writing differential tests. Fix: keep the baseline as an oracle for bounded fixtures.
  • Using a probabilistic hash match as proof of equality. Fix: perform exact verification after a candidate hash hit.
  • Applying A* with an overestimating heuristic while claiming optimality. Fix: prove admissibility or label the result heuristic.
  • Introducing a cache policy without measuring hit rate, memory, and eviction churn. Fix: compare it with a documented baseline.

Read next

  • python-modern-standards or the relevant language skill for implementation and tests.
  • system-architecture-design when the algorithm changes a service or data boundary.
  • database-design-engineering when indexes or query plans are the real solution.
  • advanced-testing-strategy for risk-scaled evidence and regression thresholds.

References

Capability Contract

Read and search are required. Execution is preferred for benchmarks and tests. Editing is allowed only within the authorised implementation scope.

Degraded Mode

Without representative inputs or execution, return the decision, assumptions, complexity analysis, and an explicit NOT ASSESSED benchmark requirement.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Algorithm Selection And Complexity?

Use when choosing, reviewing, or explaining an algorithm under explicit correctness, time, space, input-scale, or maintainability constraints; use system-architecture-design for service boundaries and language skills for implementation syntax.

Perché usare Algorithm Selection And Complexity su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Algorithm Selection And Complexity è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Algorithm Selection And Complexity in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/languages/algorithm-selection-and-complexity. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Algorithm Selection And Complexity?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Algorithm Selection And Complexity?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Algorithm Selection And Complexity: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Algorithm Selection And Complexity è gratuita?

Sì. È pubblicata su GitHub da peterbamuhigire con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇