Coder Social home page Coder Social logo

ali-elganzory / ai-search Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 10.0 729 KB

Visualization for multiple searching algorithms.

Home Page: https://ali-elganzory.github.io/AI-Search/

License: MIT License

Python 76.74% HTML 22.27% CSS 0.99%
ai search uninformed informed breadth-first-search depth-first-search uniform-cost-search astar-search greedy-search iterative-deepening-search

ai-search's Introduction

AI-Search

Check this app at: https://ali-elganzory.github.io/AI-Search/

Description

An educational app for visualizing the different searching algorithms in the field of artificial intelligence by offering

  • Undirected / Directed graph construction.
  • Edge weights and state heuristics assignment.
  • Multiple search algorithm choices.

Supported Searching Algorithms

  • Breadth First Search
  • Depth First Search
  • Depth Limit Search
  • Iterative Deepening Search
  • Uniform Cost Search
  • Greedy Search
  • A Star Search

App Tech Stack

The app is built using HTML and Python as a website that can be run on any browser. To use the Web API, a Python-JavaScript transcompiler called Brython is used.

Source Code

The app source code is attached with this document. Also, the app is source controlled by git and is available at this repository. You can browse the incremental phases we followed to develop the app.

How to Run

Method 1

The app is deployed on GitHub Pages; Open this link AI Search (ali-elganzory.github.io).

Method 2

1 – Run the command [python -m http.server] in the root directory of the project to get an http server up and running – ready to serve the website.

2 – Open http://localhost:8000/index.html.

Method 3

1 – Open the root directory of the project in Visual Studio Code.

2 – Install "Live Server" vscode extension.

3 – Click "Go live" at the right bottom of the editor; It will open the app website in your browser automatically.

Use Instructions – Demo

1 – Open the app. The tools are labeled on the below figure.


2 – Start constructing the graph. You can

  • Add a node by clicking where you want it to be drawn.
  • Add an edge between two nodes A and B by clicking on A then B.
  • Set / Remove a goal by clicking on any node – except the source.
  • Set weights and heuristics by clicking on the edge weight text and nodes respectively.

An example graph is in the below figure.


3 – Choose a searching algorithm from the bottom and click solve. The above graph is modified (goals, weights, and heuristics) and solved using A\* is shown below.

The agent starts to paint the visited nodes purple , and then, when it finds a goal, it paints the solution path with orange as seen in the above figure.

ai-search's People

Contributors

3omara avatar ali-elganzory avatar kareem0101 avatar mohamed-ahmed3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.