All Projects → danz1ka19 → Artificial-Intelligence-State-Space-Search

danz1ka19 / Artificial-Intelligence-State-Space-Search

Licence: other
Different Searching algorithms (DFS, BFS, IDS, Greedy, A*) opting to find optimal path from source to destination

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Artificial-Intelligence-State-Space-Search

icpc
Resources for Competitive Programming
Stars: ✭ 14 (-41.67%)
Mutual labels:  dfs, bfs
crazycat
使用Canvas制作的围住神经猫,算法基于广度优先搜索实现。
Stars: ✭ 18 (-25%)
Mutual labels:  dfs, bfs
breaking cycles in noisy hierarchies
breaking cycles in noisy hierarchies
Stars: ✭ 59 (+145.83%)
Mutual labels:  dfs, bfs
tiki
Library for functional graph & geometry algorithms
Stars: ✭ 20 (-16.67%)
Mutual labels:  dfs, bfs
pathfinding-visualizer
A web app to help visualizing typical graph searching algorithms
Stars: ✭ 16 (-33.33%)
Mutual labels:  dfs, bfs
Algods
Implementation of Algorithms and Data Structures, Problems and Solutions
Stars: ✭ 3,295 (+13629.17%)
Mutual labels:  dfs, search-algorithm
parallel-dfs-dag
A parallel implementation of DFS for Directed Acyclic Graphs (https://research.nvidia.com/publication/parallel-depth-first-search-directed-acyclic-graphs)
Stars: ✭ 29 (+20.83%)
Mutual labels:  dfs, bfs
astar-typescript
A* search algorithm in TypeScript
Stars: ✭ 37 (+54.17%)
Mutual labels:  astar, search-algorithm
path demo
An experimental set of pathfinding algorithms for video games
Stars: ✭ 16 (-33.33%)
Mutual labels:  astar
Pathplanning
Common used path planning algorithms with animations.
Stars: ✭ 3,418 (+14141.67%)
Mutual labels:  astar
Pathfinding
A pmmp virion (library) for pathfinding using A*
Stars: ✭ 36 (+50%)
Mutual labels:  astar
NavMeshDemo
Unity client navmesh export to server for pathfinding
Stars: ✭ 31 (+29.17%)
Mutual labels:  astar
Easystarjs
An asynchronous A* pathfinding API written in Javascript.
Stars: ✭ 1,743 (+7162.5%)
Mutual labels:  astar
tektosyne
The Tektosyne Library for Java provides algorithms for computational geometry and graph-based pathfinding, along with supporting mathematical utilities and specialized collections.
Stars: ✭ 52 (+116.67%)
Mutual labels:  astar
AI-Programming-using-Python
This repository contains implementation of different AI algorithms, based on the 4th edition of amazing AI Book, Artificial Intelligence A Modern Approach
Stars: ✭ 43 (+79.17%)
Mutual labels:  iterative-deepening-search
astar-gridmap-2d
A* algorithms for 2D gridmaps. The fastest one, until you prove me wrong
Stars: ✭ 43 (+79.17%)
Mutual labels:  astar
Astar
ROS package of A star algorithm
Stars: ✭ 42 (+75%)
Mutual labels:  astar
Reinforcement-Learning-Feature-Selection
Feature selection for maximizing expected cumulative reward
Stars: ✭ 27 (+12.5%)
Mutual labels:  greedy
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+1833.33%)
Mutual labels:  greedy
Graphhopper
Open source routing engine for OpenStreetMap. Use it as Java library or standalone web server.
Stars: ✭ 3,457 (+14304.17%)
Mutual labels:  astar

Artificial Intelligence State Space Search

- Introduction

State space search is a process used in the field of computer science, including artificial intelligence (AI), in which successive configurations or states of an instance are considered, with the goal of finding a goal state with a desired property. [1]

- Searches Covered Here

The following are the searches with their frontiers as:

  • Depth First Search (DFS) - Stack/Recursion
  • Breadth First Search (BFS) - Queue
  • Iterative Deepening Search (IDS) - Stack/Recursion + Queue
  • Greedy Best First Search (Greedy) - Priority Queue
  • A Star Search (A*) - Priority Queue

- Problem Statement

We are given a 2D grid (N x M dimensions) in which our goal is to reach from source to destination using the minimum (optimal) path.

Example:

For Grid:
0 0 0 0 0 
1 0 1 1 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0

Source: (0, 0)
Destination: (4, 4)
Optimal Path Cost: 5
Optimal Path: {(0, 0) -> (1, 1) -> (2, 2) -> (3, 3) -> (4, 4)}

Each Problem will run with their own time complexity but will give the same output as above for the same configuration

Solution

The solution is for N x M dimensional grid. Algorithms optimize their route to find the shortest path as fast as possible. There are 3 input files given that can be tested, whilst other (your own or you friends) test cases can run aswell.

To create the testcase file, the format is as:

N M
source_x source_y
destination_x destination_y
grid of NxM dimensions

- Animations

  • DFS vs BFS Animation

BFSvsDFS

  • Iterative Deepening Search Animation

IDS

  • A Animation*

A*Animation

- References

[1] Wikipedia - State Space Search

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].