Λογότυπο Algorithm Selection And Complexity

Algorithm Selection And Complexity

Κοινότητα
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.

Επισκόπηση

Εκδότηςpeterbamuhigire
Αποθετήριοchwezi-dev-engine
Όνομα δεξιότηταςalgorithm-selection-and-complexity
Αστέρια
29
Forks
6
Συνοδευτικά αρχεία
1
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 1 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από peterbamuhigire στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Algorithm Selection And Complexity στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/languages/algorithm-selection-and-complexity
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

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
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Algorithm Selection And Complexity σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Algorithm Selection And Complexity μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Algorithm Selection And Complexity δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

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.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI 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.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Algorithm Selection And Complexity στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Algorithm Selection And Complexity είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Algorithm Selection And Complexity στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/languages/algorithm-selection-and-complexity. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Algorithm Selection And Complexity;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Algorithm Selection And Complexity;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Algorithm Selection And Complexity με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Algorithm Selection And Complexity;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη peterbamuhigire με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇