Lexiverse
Lexiverse - AI contextual reading engine for English learners. Your next article is your next review.
配列探索アルゴリズム アニメーション (Linear/Binary Search visualization)
Translation pending
EducationJavaScript · PythonGitHub @HirotakaUoiOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗配列探索アルゴリズムをブラウザ上でリアルタイムにアニメーション表示する可視化ツールです。
FastAPI + WebSocket によるサーバーサイド生成と Canvas 2D API による描画を組み合わせ、 各アルゴリズムの動作を縦棒グラフ形式でステップごとに可視化します。
target) の高さを示します| アルゴリズム | 説明 |
|---|---|
| 線形探索(基本) | 先頭から順に比較 |
| 線形探索(番兵法) | 末尾に番兵を追加して終端チェックを省略 |
| 線形探索(整列済み配列) | ソート済み配列で data[i] > target なら早期終了 |
| 二分探索(反復) | 探索範囲を半分ずつ絞り込む反復版 |
| 二分探索(再帰) | 同じ二分探索の再帰版 |
# リポジトリをクローン
git clone https://github.com/HirotakaUoi/SearchBarAnimation.git
cd SearchBarAnimation
# 依存パッケージをインストール
pip install -r requirements.txt
# サーバーを起動
uvicorn main:app --reload --port 8004
ブラウザで http://localhost:8004 を開いてください。
SearchBarAnimation/
├── main.py # FastAPI サーバー・WebSocket エンドポイント
├── algorithms.py # 各探索アルゴリズムのジェネレータ
├── requirements.txt
└── static/
├── index.html
├── css/
│ └── style.css
└── js/
├── array_canvas.js # Canvas 描画ユーティリティ
├── ws_client.js # WebSocket クライアント
└── app.js # パネル管理・メインアプリ
MIT