{"id":25326374,"url":"https://github.com/michshep/ado_simulator","last_synced_at":"2025-04-07T23:48:03.441Z","repository":{"id":277020691,"uuid":"901113226","full_name":"MichShep/ADO_Simulator","owner":"MichShep","description":"Simulation of Approximation Distance Oracle","archived":false,"fork":false,"pushed_at":"2025-02-11T18:22:09.000Z","size":5137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T23:47:55.895Z","etag":null,"topics":["approximation","cpp11","sdl2","simulation"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichShep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-10T04:13:35.000Z","updated_at":"2025-02-11T18:22:22.000Z","dependencies_parsed_at":"2025-02-11T18:39:51.651Z","dependency_job_id":null,"html_url":"https://github.com/MichShep/ADO_Simulator","commit_stats":null,"previous_names":["michshep/ado_simulator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichShep%2FADO_Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichShep%2FADO_Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichShep%2FADO_Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichShep%2FADO_Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichShep","download_url":"https://codeload.github.com/MichShep/ADO_Simulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749968,"owners_count":20989713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["approximation","cpp11","sdl2","simulation"],"created_at":"2025-02-14T01:23:24.396Z","updated_at":"2025-04-07T23:48:03.424Z","avatar_url":"https://github.com/MichShep.png","language":"C","readme":"![ProjectLogo](./TZ_ADO/src/ProjectLogo.png)\n\n### Hello!\n\nWelcome to my **Approximate Distance Oracle Simulation**, inspired by the paper _Thorup-Zwick Approximate Distance Oracles (2005)_. This data structure established a fundamental trade-off framework for efficiently estimating distances in a graph. [What is Graph Theory?](https://en.wikipedia.org/wiki/Graph_theory)\n\n### Parameters\n\nThe key parameter in this Oracle is $k$, which determines the **stretch factor** of $2k - 1$. This means that the estimated distance will be at most $(2k - 1)$ times the actual shortest path distance.\n\n### How to Use the Simulator \n\nTo run the simulation, execute the _play_ file in _TZ_ADO/build/debug/play_ and provide the command-line arguments:\n\n1. **k** (integer between $1$ and $5$ – Determines the stretch factor.\n2. **Number of points** (any positive integer) – Higher values may slow performance.\n3. **Edge density scale** $[0,1]$ – A value of $1$ creates a complete graph.\n\nThis was compiled on a Mac, so you may need to recompile it by simply running _make_ in the _TZ_ADO_ folder in the command line.\n\n### Controls\n\n- By default, a **node is selected** at the start, with the red line showing the distances stored from that node.\n- **Hover over other nodes** to see their ID and the distance estimated by the Oracle (actual distance will be added later).\n- **Pivot nodes** are highlighted in **blue**, and sampled nodes are labeled with **Roman numerals** corresponding to their sample.\n- To **change the center node**, right-click on any other node.\n- To **view the Oracle's path to a target node**, left-click on that node. This will display the stored distance of that node and reveal where it intersects with the center node.\n\nHere is a short demo video showing the simulation:\n\n[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/JlZZQdGzeSo/0.jpg)](https://www.youtube.com/watch?v=JlZZQdGzeSo)\n\nEnjoy!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichshep%2Fado_simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichshep%2Fado_simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichshep%2Fado_simulator/lists"}