Skip to main content
Run any Skill in Manus
with one click

algorithm-optimization

Stars4
Forks0
UpdatedMarch 31, 2026 at 01:56

Analyze given algorithms for optimization opportunities and implement performance improvements. Start by identifying the computational complexity of the original algorithm and pinpointing inefficiencies such as repeated calculations, redundant operations, or suboptimal data structures. Apply appropriate optimization techniques: implement memoization for recursive functions with overlapping subproblems, use dynamic programming for problems with optimal substructure, add caching layers for expensive operations, or replace inefficient data structures. Provide before/after complexity analysis using Big O notation, benchmark performance improvements when possible, and explain the trade-offs between time and space complexity. Document the optimization strategy clearly, including when and why the chosen approach is most effective.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly