← 返回 Skills 市场
data-structures-algorithms
作者
piuaibot-stack
· GitHub ↗
· v1.0.0
· MIT-0
19
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install data-structures-algorithms
功能描述
Use when solving algorithmic problems, optimizing code, or choosing the right data structure for performance.
使用说明 (SKILL.md)
Data Structures & Algorithms
Complexity Analysis
- Always analyze time AND space complexity
- Big O: O(1) \x3C O(log n) \x3C O(n) \x3C O(n log n) \x3C O(n²) \x3C O(2ⁿ)
- Amortized analysis for dynamic structures
Core Data Structures
| Structure | Access | Search | Insert | Delete | Use When |
|---|---|---|---|---|---|
| Array | O(1) | O(n) | O(n) | O(n) | Random access, cache locality |
| Hash Map | O(1) | O(1) | O(1) | O(1) | Key-value lookup |
| Linked List | O(n) | O(n) | O(1) | O(1) | Frequent insert/delete |
| Binary Search Tree | O(log n) | O(log n) | O(log n) | O(log n) | Sorted data |
| Heap | O(1) top | O(n) | O(log n) | O(log n) | Priority queue |
| Graph | - | O(V+E) | O(1) | O(E) | Relationships, paths |
Algorithm Patterns
- Two Pointers — sorted arrays, palindromes
- Sliding Window — subarray/substring problems
- Binary Search — sorted data, search space reduction
- DFS/BFS — tree/graph traversal
- Dynamic Programming — overlapping subproblems, optimal substructure
- Greedy — locally optimal choices lead to global optimum
- Divide & Conquer — merge sort, quick sort
Choosing the Right Structure
- Need O(1) lookup? → Hash Map
- Need sorted order? → BST / Sorted Array
- Need LIFO? → Stack
- Need FIFO? → Queue
- Need priority? → Heap
- Need relationships? → Graph
- Need prefix search? → Trie
安全使用建议
This skill is low-risk: it only contains educational guidance and does not request credentials or install software. If you plan to rely on it for technical correctness, review its algorithmic claims against authoritative sources (textbook or documentation) because some complexity entries are simplified. No special security precautions are needed before installing, aside from the usual caution about enabling any skill to run autonomously on your agent (this skill is allowed to be invoked by the model by default, which is standard).
功能分析
Type: OpenClaw Skill
Name: data-structures-algorithms
Version: 1.0.0
The skill bundle consists entirely of educational documentation and best practices for data structures and algorithms. It contains no executable code, network activity, or malicious instructions, serving only as a reference for the AI agent to improve problem-solving and complexity analysis in SKILL.md.
能力评估
Purpose & Capability
Name and description match the SKILL.md content: guidance on complexity, data structures, and algorithmic patterns. There are no unrelated requirements (no binaries, env vars, or installs).
Instruction Scope
The runtime instructions are purely educational text and do not direct the agent to read files, call external services, or access environment variables. Some table entries are simplified (e.g., graph insert/delete complexities, or contextual details for array/linked-list operations) but these are content-accuracy notes rather than security concerns.
Install Mechanism
No install spec and no code files — lowest-risk pattern (instruction-only). Nothing will be downloaded or written to disk by the skill itself.
Credentials
The skill requests no environment variables, no credentials, and no config paths. There is no disproportionate access requested.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request elevated or persistent system presence or modify other skills' configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install data-structures-algorithms - 安装完成后,直接呼叫该 Skill 的名称或使用
/data-structures-algorithms触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the data-structures-algorithms skill.
- Provides guidelines for time and space complexity analysis.
- Summarizes access, search, insert, and delete performance for core data structures.
- Lists common algorithmic patterns and when to use them.
- Offers quick-reference tips for selecting the appropriate data structure based on use case.
元数据
常见问题
data-structures-algorithms 是什么?
Use when solving algorithmic problems, optimizing code, or choosing the right data structure for performance. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 19 次。
如何安装 data-structures-algorithms?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install data-structures-algorithms」即可一键安装,无需额外配置。
data-structures-algorithms 是免费的吗?
是的,data-structures-algorithms 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
data-structures-algorithms 支持哪些平台?
data-structures-algorithms 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 data-structures-algorithms?
由 piuaibot-stack(@piuaibot-stack)开发并维护,当前版本 v1.0.0。
推荐 Skills