{"id":13750539,"url":"https://github.com/davidpomerenke/elm-problem-solving","last_synced_at":"2025-10-09T01:13:21.350Z","repository":{"id":54735347,"uuid":"311167072","full_name":"davidpomerenke/elm-problem-solving","owner":"davidpomerenke","description":"Solving problems, and visualizing it.","archived":false,"fork":false,"pushed_at":"2021-03-05T02:46:07.000Z","size":1305,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-01T17:10:02.361Z","etag":null,"topics":["artificial-intelligence","elm","problem-solving","search-algorithm","visualization"],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/davidpomerenke/elm-problem-solving/latest/Problem","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidpomerenke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-08T22:26:06.000Z","updated_at":"2023-07-25T14:40:41.000Z","dependencies_parsed_at":"2022-08-14T01:10:46.650Z","dependency_job_id":null,"html_url":"https://github.com/davidpomerenke/elm-problem-solving","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpomerenke%2Felm-problem-solving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpomerenke%2Felm-problem-solving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpomerenke%2Felm-problem-solving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpomerenke%2Felm-problem-solving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidpomerenke","download_url":"https://codeload.github.com/davidpomerenke/elm-problem-solving/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241564492,"owners_count":19982960,"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":["artificial-intelligence","elm","problem-solving","search-algorithm","visualization"],"created_at":"2024-08-03T08:00:37.660Z","updated_at":"2025-10-09T01:13:16.311Z","avatar_url":"https://github.com/davidpomerenke.png","language":"Elm","readme":"# ![elm-problem-solving](https://github.com/davidpomerenke/elm-problem-solving/raw/main/elm-problem-solving-600.png)\n\n- __Use examples and templates of standard problems: Vacuum world, sliding puzzle, queens puzzle, Knuth conjecture, graph search, motion planning. Or formalize your own problem.__\n- __Apply powerful search algorithms to find the solution: Depth-first search, breadth-first search, uniform-cost search (Dijkstra's algorithm), greedy search, and best-first (A\\*) search.__\n- __Visualize the search state space as a scatter plot, tree, tree map, or network graph; live while searching.__\n- __Use a low-code dashboard to get started.__\n\n## [Documentation](https://package.elm-lang.org/packages/davidpomerenke/elm-problem-solving/latest/Problem)\n\n## Examples\n\n[Introductory example on Ellie.](https://ellie-app.com/bv2YzcWHG7ha1)\n\n1. [[Live]](https://davidpomerenke.github.io/elm-problem-solving/1-dashboard/index.html)\n   [[Code]](docs/1-dashboard/src/Main.elm)\n   Creating a powerful dashboard by just enumerating what you would like to include. \n2. [[Live]](https://davidpomerenke.github.io/elm-problem-solving/2-minimal/index.html)\n   [[Code]](docs/2-minimal/src/Main.elm)\n   Live-searching for a problem solution, a minimal example.\n3. [[Live]](https://davidpomerenke.github.io/elm-problem-solving/3-visual/index.html)\n   [[Code]](docs/3-visual/src/Main.elm)\n   Visualizing the searched state space as a tree, tree map, or scatter plot.\n4. [[Live]](https://davidpomerenke.github.io/elm-problem-solving/4-graph/index.html)\n   [[Code]](docs/4-graph/src/Main.elm)\n   Visualizing the searched state space as a network graph. \n5. [[Live]](https://davidpomerenke.github.io/elm-problem-solving/5-tooltip/index.html)\n   [[Code]](docs/5-tooltip/src/Main.elm)\n   Adding a tooltip with information about the individual states to the visuals.\n6. [[Live]](https://davidpomerenke.github.io/elm-problem-solving/4-graph/index.html)\n   [[Code]](docs/4-graph/src/Main.elm)\n   Combining all the techniques to create the same dashboard as in _1._, but with much more code.\n\n(The examples can be found in the `docs` folder.)\n\n## Structure\n\n- Problem\n- Problem.Example\n- Problem.Search\n- Problem.Search.Visual\n- Problem.Search.Dashboard\n\n## Screenshots\n\n![Screenshots of 2 search visual dashboards.](https://github.com/davidpomerenke/elm-problem-solving/raw/main/dashboards-600.png)\n\n## Related work\n\n- This module roughly follows the standard textbook [*Artificial Intelligence - A Modern Approach*](http://aima.cs.berkeley.edu/) (*AIMA*) by Stuart Russell and Peter Norvig. Their [aimacode/aima-javascript](https://github.com/aimacode/aima-javascript) project also contains some visualizations.\n- [the-sett/ai-search](https://github.com/the-sett/ai-search): Search algorithms in Elm, also including bounded search and iterative deepening. I found this when I had already written my algorithms, so it's independent.\n- [Guided implementations](https://www.redblobgames.com/pathfinding/a-star/implementation.html) of A\\* search for Python, C++, and C#.\n\n[![Github actions elm-test status](https://github.com/davidpomerenke/elm-problem-solving/workflows/elm-test/badge.svg)](https://github.com/davidpomerenke/elm-problem-solving/actions?query=workflow%3Aelm-test)","funding_links":[],"categories":["Bachelor"],"sub_categories":["Reasoning Techniques"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidpomerenke%2Felm-problem-solving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidpomerenke%2Felm-problem-solving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidpomerenke%2Felm-problem-solving/lists"}