skills/43-wentorai-research-plugins/skills/analysis/dataviz/algorithm-visualizer-guide/SKILL.md
Guide to Algorithm Visualizer for interactive algorithm exploration
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research algorithm-visualizer-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Algorithm Visualizer is an interactive online platform with over 48K stars on GitHub that allows researchers, educators, and students to visualize algorithms through animated graphical representations. The platform provides a web-based environment where algorithm code runs step-by-step alongside a visual canvas that shows data structures being manipulated in real time.
For academic researchers, Algorithm Visualizer serves two primary purposes. First, it is an excellent tool for teaching computational methods in courses and workshops. Complex algorithms in sorting, graph theory, dynamic programming, and numerical methods become immediately intuitive when students can see the step-by-step execution animated on screen. Second, researchers developing new algorithms can use the platform to debug, validate, and communicate their approaches visually, making it easier to explain novel computational contributions in papers and presentations.
The platform supports JavaScript-based algorithm implementations and provides a visualization API with tracer objects for arrays, graphs, logs, and custom 2D canvases. Researchers can create custom visualizations of their own algorithms and share them through the platform's public repository or embed them in course materials.
Algorithm Visualizer consists of three main components that work together to provide the interactive visualization experience.
# Clone the repository
git clone https://github.com/algorithm-visualizer/algorithm-visualizer.git
cd algorithm-visualizer
# Install dependencies
npm install
# Start development server
npm start
# Access at http://localhost:3000
# Clone all required components
git clone https://github.com/algorithm-visualizer/algorithm-visualizer.git
git clone https://github.com/algorithm-visualizer/server.git
# Build and run with Docker
cd server
docker build -t algo-viz-server .
docker run -d -p 8080:8080 algo-viz-server
cd ../algorithm-visualizer
# Set the server URL in environment configuration
echo "REACT_APP_API_URL=http://localhost:8080" > .env.local
npm install && npm run build
npx serve -s build -l 3000
The platform provides tracer objects that researchers use to instrument their algorithm code with visual output.
const { Tracer, Array1DTracer, LogTracer, Layout, VerticalLayout } = require('algorithm-visualizer');
// Set up visualization layout
const arrayTracer = new Array1DTracer('Array');
const logger = new LogTracer('Execution Log');
Layout.setRoot(new VerticalLayout([arrayTracer, logger]));
// Example: Visualizing insertion sort on research ranking data
const impactFactors = [3.2, 1.8, 7.5, 2.1, 5.9, 4.3, 6.7, 0.9];
arrayTracer.set(impactFactors);
Tracer.delay();
for (let i = 1; i < impactFactors.length; i++) {
const key = impactFactors[i];
let j = i - 1;
logger.println(`Inserting element ${key} at position ${i}`);
arrayTracer.select(i);
Tracer.delay();
while (j >= 0 && impactFactors[j] > key) {
arrayTracer.patch(j + 1, impactFactors[j]);
Tracer.delay();
impactFactors[j + 1] = impactFactors[j];
arrayTracer.depatch(j + 1);
j--;
}
impactFactors[j + 1] = key;
arrayTracer.patch(j + 1, key);
Tracer.delay();
arrayTracer.depatch(j + 1);
arrayTracer.deselect(i);
}
logger.println('Sorting complete: journals ranked by impact factor');
const { Tracer, GraphTracer, LogTracer, Layout, VerticalLayout } = require('algorithm-visualizer');
const graphTracer = new GraphTracer('Citation Network');
const logger = new LogTracer('BFS Traversal');
Layout.setRoot(new VerticalLayout([graphTracer, logger]));
// Adjacency matrix representing citation relationships
const citations = [
[0, 1, 1, 0, 0, 0],
[0, 0, 1, 1, 0, 0],
[0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 1],
[0, 0, 0, 0, 0, 1],
[0, 0, 0, 0, 0, 0]
];
const paperNames = ['Paper A', 'Paper B', 'Paper C', 'Paper D', 'Paper E', 'Paper F'];
graphTracer.set(citations);
Tracer.delay();
// BFS to find citation chains
function bfs(startNode) {
const visited = new Set();
const queue = [startNode];
visited.add(startNode);
logger.println(`Starting BFS from ${paperNames[startNode]}`);
graphTracer.visit(startNode);
Tracer.delay();
while (queue.length > 0) {
const current = queue.shift();
for (let neighbor = 0; neighbor < citations.length; neighbor++) {
if (citations[current][neighbor] === 1 && !visited.has(neighbor)) {
visited.add(neighbor);
queue.push(neighbor);
logger.println(`${paperNames[current]} cites ${paperNames[neighbor]}`);
graphTracer.visit(neighbor, current);
Tracer.delay();
}
}
}
logger.println(`BFS complete. Visited ${visited.size} papers.`);
}
bfs(0);
The platform includes visualizations across categories directly relevant to computational research.
Researchers teaching computational courses can create custom algorithm visualizations and organize them into course-specific collections.
// Template for a custom research algorithm visualization
const {
Tracer, Array1DTracer, Array2DTracer,
LogTracer, Layout, VerticalLayout
} = require('algorithm-visualizer');
// Initialize tracers for your algorithm
const matrixTracer = new Array2DTracer('Distance Matrix');
const logger = new LogTracer('Algorithm Steps');
Layout.setRoot(new VerticalLayout([matrixTracer, logger]));
// Set initial data
const data = [
[0, 3, 8, Infinity, -4],
[Infinity, 0, Infinity, 1, 7],
[Infinity, 4, 0, Infinity, Infinity],
[2, Infinity, -5, 0, Infinity],
[Infinity, Infinity, Infinity, 6, 0]
];
matrixTracer.set(data);
logger.println('Floyd-Warshall: Computing all-pairs shortest paths');
Tracer.delay();
// Floyd-Warshall algorithm with visualization
for (let k = 0; k < data.length; k++) {
logger.println(`Intermediate vertex: ${k}`);
for (let i = 0; i < data.length; i++) {
for (let j = 0; j < data.length; j++) {
if (data[i][k] + data[k][j] < data[i][j]) {
data[i][j] = data[i][k] + data[k][j];
matrixTracer.patch(i, j, data[i][j]);
Tracer.delay();
matrixTracer.depatch(i, j);
}
}
}
}
logger.println('All-pairs shortest paths computed.');
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.