danielpohlmann/ia-marktplace/dev-algorithms-sorting-searching

Claude Code and agent skill by danielpohlmann/ia-marktplace

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when selecting or implementing sorting or searching algorithms. USE FOR: quicksort/mergesort/heapsort/timsort, counting/radix/bucket sort, stability, binary search variants, two pointers, sliding window. DO NOT USE FOR: graph search (use dev-algorithms-graph-algorithms), data structure selection (use dev-algorithms-data-structures).

Install

npx vskill@latest install danielpohlmann/ia-marktplace/dev-algorithms-sorting-searching

SKILL.md

The same SKILL.md was published earlier as danielpohlmann/ia-marktplace/dev-algorithms-sorting-searching.

Sorting & Searching Algorithms

Overview

Sorting and searching are among the most fundamental operations in computer science. Knuth dedicated the entirety of The Art of Computer Programming, Volume 3: Sorting and Searching to these topics, reflecting their importance and depth. This skill covers the major algorithms in both categories, their complexities, and guidance on when to use each.

Stability in Sorting

A sort is stable if elements with equal keys retain their original relative order after sorting. Stability matters when:

  • Sorting by multiple keys (sort by secondary key first, then by primary key with a stable sort).
  • Preserving meaningful insertion order.
  • Composing sorts for multi-level ordering.

Best Practices

  • Use your language's built-in sort (typically Timsort or Introsort) unless you have a specific reason not to -- they are highly optimized.
  • For searching in a sorted collection, always prefer binary search over linear search.
  • Consider the two pointers technique before reaching for nested loops on sorted data.
  • The sliding window technique converts many O(n^2) brute-force subarray problems into O(n).
  • When data has bounded integer keys, consider counting or radix sort for linear-time performance.
  • Reference Knuth's TAOCP Vol. 3 for rigorous analysis of any sorting or searching method.

Detailed reference

Load only the file that matches the task — each is self-contained.

FileContents
references/sorting-algorithms.mdSorting Algorithms — Comparison Sorts, Linear Sorts, Sorting Complexity Comparison, When to Use Which Sort
references/searching-algorithms.mdSearching Algorithms — Binary Search, Interpolation Search, Two Pointers Technique, Sliding Window Technique, Searching Complexity Comparison

References

See references/rules.md for the full rule catalog.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/danielpohlmann/ia-marktplace/dev-algorithms-sorting-searching/badge)](https://verified-skill.com/skills/danielpohlmann/ia-marktplace/dev-algorithms-sorting-searching)

Something wrong with this skill or its page? Tell us.