AutonomousVehicleControlBeginnersGuide
Python sample codes and documents about Autonomous vehicle control algorithm. This project can be used as a technical guide book to study the algorithms and the software architectures for beginners.
翻訳待ち
No updates detected yet. GitHub releases will appear here.
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