sethdford/claude-skills/data-structure-selection
Claude Code and agent skill by sethdford/claude-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Choosing optimal data structures based on access patterns and performance requirements.
Install
npx vskill@latest install sethdford/claude-skills/data-structure-selectionSKILL.md
The same SKILL.md was published earlier as sethdford/claude-skills/data-structure-selection.
Data Structure Selection
Matching data structures to your performance requirements.
Context
You are selecting data structures. Understand tradeoffs: access time, insertion, deletion, memory.
Domain Context
- Array: O(1) random access; O(n) insertion
- Linked List: O(n) random access; O(1) insertion (if you have pointer)
- Hash Table: O(1) average access; O(n) worst case
- Tree: O(log n) balanced access; O(n) unbalanced
- Heap: O(1) min/max; O(log n) insertion
Instructions
- Analyze Access Patterns: Read-heavy? Write-heavy? Random access? Ordered?
- Identify Bottleneck: Insertion? Lookup? Iteration?
- Compare Options: List pros/cons of 2-3 structures
- Benchmark: If unclear, measure with realistic data
- Choose: Select structure with best worst-case for bottleneck
- Monitor: Track performance; be ready to change if patterns shift
Anti-Patterns
- Choosing structure based on familiarity not performance
- Not considering space overhead; 10x lookup speedup doesn't matter if memory explodes
- Using unbalanced trees; always use balanced (AVL, Red-Black, B-Tree)
- Ignoring cache locality; array beats linked list even with worse complexity
- Micro-optimizing data structures while algorithmic cost dominates
Further Reading
- Donald Knuth, _The Art of Computer Programming_
- MIT OpenCourseWare, _Introduction to Algorithms_
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingengineer/implementation-patterns/skills/data-structure-selection/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/sethdford/claude-skills/data-structure-selection)