{"id":16031649,"url":"https://github.com/albbus-stack/lab-ia","last_synced_at":"2025-06-17T02:38:59.874Z","repository":{"id":215306383,"uuid":"738614867","full_name":"albbus-stack/lab-ia","owner":"albbus-stack","description":"Repo for the Artificial Intelligence course project","archived":false,"fork":false,"pushed_at":"2024-01-25T14:23:00.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T15:57:25.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/albbus-stack.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-01-03T16:29:38.000Z","updated_at":"2024-08-22T10:37:42.000Z","dependencies_parsed_at":"2024-01-11T18:11:29.653Z","dependency_job_id":"d5a9ffc2-4be1-4122-ba84-1fa0e7fae145","html_url":"https://github.com/albbus-stack/lab-ia","commit_stats":null,"previous_names":["albbus-stack/lab-ia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/albbus-stack/lab-ia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albbus-stack%2Flab-ia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albbus-stack%2Flab-ia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albbus-stack%2Flab-ia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albbus-stack%2Flab-ia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albbus-stack","download_url":"https://codeload.github.com/albbus-stack/lab-ia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albbus-stack%2Flab-ia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260279005,"owners_count":22985387,"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":[],"created_at":"2024-10-08T21:04:28.360Z","updated_at":"2025-06-17T02:38:59.853Z","avatar_url":"https://github.com/albbus-stack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lab-ia\n\n## File Structure\n\n- `main.ts` is the test program.\n- `plot-examples.py` is the map plotting script for the example problems.\n- `plot-times.py` is the execution time plotting script.\n- `lib/` contains the source code for the map generation algorithm and the two coloring algorithms with Forward Checking and Maintaining Arc Consistency.\n- `output/` will contain the output of the algorithms in various data files and plots.\n\n## How to run\n\n###### Requirements\n\n- Node.js\n- npm\n- *Python 3 (only if you want to plot the example data \u0026 execution times)*\n\n###### Testing\n\n1. Clone the repository.\n1. Install `typescript` and `tsx` (a typescript runner) with `npm install`.\n1. Run `npm run test` to execute the test program.\n\n###### Plotting\n\n1. Install `matplotlib` (used to display the map graphs) with `python3 -m pip install -r requirements.txt`.\n1. Run `npm run plot-examples` to plot the colored example map graphs computed by Node.js using Python.\n1. Run `npm run plot-times` to plot the average/median execution times \u0026 the average number of backtracks of the two algorithms using Python.\n1. Run `npm run plot` to execute sequentially the two previous commands.\n\n## Results\n\nAll the results of the tests are stored in the `output/` directory as follows:\n\n- `times.csv` contains the output data with average/median execution times \u0026 the average number of backtracks for the two algorithms and k values.\n- `maps.txt` contains a serialized version of the maps for the example problems with their coloring, if solvable.\n\nIf you plot the data, the results will be stored in the following subdirectories:\n\n- `graphs/` contains the colored graphs for the example problems, if solvable.\n- `times/` contains the plots of the average/median execution times \u0026 the average number of backtracks for the two algorithms and k values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbbus-stack%2Flab-ia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbbus-stack%2Flab-ia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbbus-stack%2Flab-ia/lists"}