Algorithm Visualizer Guideのロゴ

Algorithm Visualizer Guide

コミュニティ
wentorai
algorithm-visualizer-guide

アルゴリズムをインタラクティブに探究するためのAlgorithm Visualizerガイド

Add to TypingMind

概要

公開者wentorai
リポジトリresearch-plugins
スキル名algorithm-visualizer-guide
スター
294
フォーク
42
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    wentoraiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Algorithm Visualizer Guide」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wentorai/research-plugins/tree/main/skills/analysis/dataviz/algorithm-visualizer-guide
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wentorai/research-plugins.git /tmp/research-plugins
mkdir -p .claude/skills
cp -r /tmp/research-plugins/skills/analysis/dataviz/algorithm-visualizer-guide .claude/skills/algorithm-visualizer-guide
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAlgorithm Visualizer Guideを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAlgorithm Visualizer Guideを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Algorithm Visualizer Guideは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Algorithm Visualizer Guide

Overview

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.

Platform Architecture and Setup

Algorithm Visualizer consists of three main components that work together to provide the interactive visualization experience.

Components

  • algorithm-visualizer - The web application frontend (React-based)
  • server - The backend API that compiles and executes code
  • algorithms - The public repository of contributed algorithm visualizations

Running Locally for Research Use

bash
# 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

Self-Hosted Deployment for Lab or Course

bash
# 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

Visualization API for Custom Algorithms

The platform provides tracer objects that researchers use to instrument their algorithm code with visual output.

Array Tracer for Sorting and Searching

javascript
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');

Graph Tracer for Network Algorithms

javascript
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);

Research-Relevant Algorithm Categories

The platform includes visualizations across categories directly relevant to computational research.

Graph Algorithms (Network Analysis)

  • Breadth-First Search / Depth-First Search - Traversing citation networks, dependency graphs
  • Dijkstra / Bellman-Ford - Shortest paths in weighted collaboration networks
  • Minimum Spanning Tree (Kruskal, Prim) - Finding minimum-cost network connections
  • Topological Sort - Ordering tasks in experimental pipelines
  • Strongly Connected Components - Identifying tightly coupled research clusters

Sorting and Searching (Data Processing)

  • Merge Sort / Quick Sort - Efficient sorting of large experimental datasets
  • Binary Search - Fast lookup in ordered measurement arrays
  • Heap Sort - Priority queue operations for scheduling simulations

Dynamic Programming (Optimization)

  • Longest Common Subsequence - Sequence alignment in bioinformatics
  • Knapsack Problem - Resource allocation under constraints
  • Edit Distance - String similarity measures for text analysis

Numerical Methods

  • Newton's Method - Root finding for equation solving
  • Monte Carlo Simulation - Stochastic estimation of integrals and probabilities
  • Gradient Descent - Parameter optimization in model fitting

Creating Custom Visualizations for Teaching

Researchers teaching computational courses can create custom algorithm visualizations and organize them into course-specific collections.

javascript
// 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.');

Integration Tips for Researchers

  • Course websites: Embed Algorithm Visualizer links directly in course syllabi and lab handouts
  • Paper supplements: Create interactive algorithm demonstrations as supplementary material
  • Lab meetings: Use visualizations to explain algorithmic approaches to interdisciplinary collaborators
  • Self-hosted instances: Deploy within university networks for courses with restricted internet access
  • Contributing back: Submit new algorithm visualizations to the public repository to share with the community

References

よくある質問

AIスキル「Algorithm Visualizer Guide」では何ができますか?

アルゴリズムをインタラクティブに探究するためのAlgorithm Visualizerガイド

TypingMindでAlgorithm Visualizer Guideを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Algorithm Visualizer Guideはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAlgorithm Visualizer Guideをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wentorai/research-plugins/tree/main/skills/analysis/dataviz/algorithm-visualizer-guideを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Algorithm Visualizer Guideを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Algorithm Visualizer Guideで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAlgorithm Visualizer Guideを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Algorithm Visualizer Guide」は無料ですか?

はい。wentoraiがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇