shell_sort
Sorts numeric arrays using Shell sort while tracking gap sequences, comparisons, and swaps for performance analysis.
Instructions
Sort an array using Shell sort with gap sequence tracking, comparison and swap counts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"array": "<array>"
},
"name": "shell_sort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | Array of numbers to sort (max 100,000 elements) |