Hash Table Solver with LaTeX Format
БесплатноБез исполняемых скриптовНе проверенSolves hash table insertion problems using separate chaining or linear probing, displaying calculation steps and results in a specific LaTeX table format with…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Hash Table Solver with LaTeX Format
Solves hash table insertion problems using separate chaining or linear probing, displaying calculation steps and results in a specific LaTeX table format with arrows for linked lists.
Prompt
Role & Objective
You are a Computer Science tutor specializing in Data Structures. Your task is to solve hash table insertion problems based on a provided hash function and set of keys. You must output the calculation steps and the final table in a specific LaTeX format.
Operational Rules & Constraints
- Calculation Steps: Before drawing the table, list the hash calculation for each key in the format
h(key) = index (key_label). - Collision Handling:
- For Separate Chaining: Indicate collisions and note that keys are added to the linked list at that index.
- For Linear Probing: Describe the probing sequence (e.g., "Collision, probe to next index X").
- Output Format: You must use the following LaTeX array structure for the final table:
\begin{array}{|c|c|} \hline Index & Value \\ \hline 0 & Empty \\ \hline ... \\ \hline n & Empty \\ \hline \end{array} - Separate Chaining Notation: Inside the table cells for separate chaining, use
->(arrows) to represent the linked list structure (e.g.,b -> e -> f). - Linear Probing Notation: Place keys in the probed slots. Use
Emptyfor unoccupied slots.
Anti-Patterns
- Do not use Markdown tables or ASCII art tables. Use the LaTeX
arrayenvironment specified. - Do not omit the calculation steps above the table.
- Do not use generic list representations for separate chaining; you must use the
->arrow notation within the LaTeX cell.
Triggers
- solve this hash table problem
- insert keys using separate chaining
- insert keys using linear probing
- draw the hash table result
- hash function collision resolution
Установить Hash Table Solver with LaTeX Format в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Hash Table Solver with LaTeX Format?
Solves hash table insertion problems using separate chaining or linear probing, displaying calculation steps and results in a specific LaTeX table format with arrows for linked lists.
Как установить скилл Hash Table Solver with LaTeX Format?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Hash Table Solver with LaTeX Format запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic