danielpohlmann/ia-marktplace/dev-algorithms-combinatorial
Claude Code and agent skill by danielpohlmann/ia-marktplace
- community
Checking that the SKILL.md file is still in the repository.
Use when solving permutation, combination, backtracking, branch-and-bound, or constraint-satisfaction problems. USE FOR: subset enumeration, N-Queens/Sudoku-style search, pruning strategies, generating functions. DO NOT USE FOR: graph traversal (use dev-algorithms-graph-algorithms), overlapping subproblems (use dev-algorithms-dynamic-programming).
Install
npx vskill@latest install danielpohlmann/ia-marktplace/dev-algorithms-combinatorialSKILL.md
The same SKILL.md was published earlier as danielpohlmann/ia-marktplace/dev-algorithms-combinatorial.
Combinatorial Algorithms
Overview
Combinatorial algorithms deal with counting, generating, and optimizing discrete structures -- permutations, combinations, subsets, partitions, and arrangements subject to constraints. Knuth devoted The Art of Computer Programming, Volume 4A: Combinatorial Algorithms, Part 1 entirely to this topic, calling combinatorics "the mathematics of choice." This skill covers the core techniques for systematic enumeration, backtracking search, and constraint satisfaction.
Subset Generation
Iterative (Bitmask) Approach
Generate all 2^n subsets by iterating from 0 to 2^n - 1, where each bit indicates inclusion/exclusion.
Recursive Approach
For each element, recursively generate subsets that include it and subsets that exclude it.
Best Practices
- Always add pruning to backtracking -- even simple feasibility checks can reduce runtime by orders of magnitude.
- For optimization problems, consider branch and bound before exhaustive enumeration.
- Use constraint propagation (forward checking, arc consistency) for CSPs to reduce the effective search space.
- Choose variable and value ordering heuristics carefully -- MRV and LCV are strong general-purpose strategies.
- Consider whether the problem has symmetries that can be exploited to avoid redundant exploration.
- For problems with overlapping subproblems (e.g., subset sum, TSP), combine backtracking with dynamic programming.
- Reference Knuth's TAOCP Vol. 4A for the most rigorous and comprehensive treatment of combinatorial generation and backtracking, including Algorithm X and dancing links for exact cover problems.
Detailed reference
Load only the file that matches the task — each is self-contained.
| File | Contents | |
|---|---|---|
| references/details.md | Fundamental Counting; Backtracking; Classic Backtracking Problems; Branch and Bound; Constraint Satisfaction Problems (CSP); Generating Functions (Conceptual); Pruning Strategies; Complexity of Combinatorial Problems; Knuth's TAOCP Vol. 4A: Key Topics |
References
- The Art of Computer Programming, Vol. 4A: Combinatorial Algorithms — Donald Knuth
- Combinatorial Optimization — Wikipedia
See references/rules.md for the full rule catalog.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdev/skills/dev-algorithms-combinatorial/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/danielpohlmann/ia-marktplace/dev-algorithms-combinatorial)