a13n
AI 에이전트를 만들고 클라우드에서 실행합니다
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Shortest-path routing and food-delivery dispatch on the real road network of Chandigarh, Mohali and Panchkula, built around one algorithm: Dijkstra's algorithm with a hand-written binary heap. A C++20 engine does the work; a browser console shows it.
This is the classroom (ADSA) edition of DispatchLab: the same idea and the same interface, with only syllabus algorithms and a small codebase.
You need a C++20 compiler (g++ 10+ or clang++ 12+). Nothing else to install.
./run.sh
It builds the engine on the first run, starts it, and opens http://127.0.0.1:8080. Stop it with Ctrl+C. The server only accepts connections from your own computer.
Without the script, the whole build is one command:
c++ -std=c++20 -O2 -o build/dispatchlab src/*.cpp
Run the tests:
./test.sh
| Page | What happens |
|---|---|
| Overview | The road network (142,425 intersections, 298,112 one-way road segments) and how the engine works |
| Routing lab | Click two points. Dijkstra finds the fastest route, and the map replays every node it settled, in order |
| Simulation | Orders arrive at restaurants, food is cooked, couriers drive and deliver. Play it back on the map |
| Policies | Two ways to pick a courier, compared on the same scenario |
Road graph (CSR). Each intersection is a node and each one-way road segment a directed edge,
weighted by its travel time in milliseconds. Edges are stored in compressed sparse row form: one
array of all edge targets, plus offsets[u] marking where node u's edges start. A reverse copy
groups edges by their target so searches can also run backwards.
Binary min-heap. A priority queue stored in an array; the children of position i are 2i+1
and 2i+2. push and pop are O(log n). Dijkstra uses "lazy deletion": when a shorter distance to a
node is found, the node is pushed again, and outdated entries are skipped when popped.
Dijkstra. Repeatedly take the closest unsettled node from the heap, mark its distance final, and relax its outgoing edges. With non-negative weights, the first time the target comes out of the heap its distance is the shortest. Complexity O((V + E) log V). The engine also runs Dijkstra backwards from a restaurant over the reverse edges, which gives every courier's travel time to it in one search.
Delivery simulation. A discrete-event simulation: events (order created, food ready, courier assigned, arrived, picked up, delivered, available) wait in a priority queue ordered by time. The simulator pops the next event, updates the world, and schedules what follows. Every courier trip is a Dijkstra query.
Dispatch policies.
ETA = max(now + T(courier → restaurant), food ready) + T(restaurant → customer), with every
T(courier → restaurant) from one backward Dijkstra.src/graph.hpp, graph.cpp road graph (CSR), binary heap, Dijkstra
src/simulation.hpp, simulation.cpp scenario, event queue, simulator, dispatch policies
src/server.hpp, server.cpp HTTP server and JSON API for the console
src/main.cpp command line: serve, route, simulate
tests/tests.cpp heap, Dijkstra vs Floyd-Warshall, simulation, API
web/ the console (HTML, CSS, JavaScript; no build step)
data/tricity.graph.txt the road network as plain text
tools/export_graph.py how the data file was produced
./build/dispatchlab route 17 90001
./build/dispatchlab simulate --policy greedy_eta --couriers 40 --orders 300 --seed 42
./build/dispatchlab serve --port 8080
tests/tests.cpp checks that:
web/.The road network comes from OpenStreetMap (© OpenStreetMap contributors, ODbL), via the Geofabrik extract of 17 Oct 2026, clipped to the Tricity area. Only roads drivable by delivery vehicles are kept, and only the largest part in which every intersection can reach every other. Travel times use fixed speeds per road type (for example 60 km/h on trunk roads, 20 km/h on residential streets).
Geist and Geist Mono (SIL Open Font License), in web/fonts/.