Skip to content

DoerJ/uniform-cost-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Uniform-cost search

Utilize uniform-cost search algorithm to determines the least cost path from the start location to goal location

Course

2018 Spring, SFU
CMPT 310: Artificial Intelligence Survey

Author

James(Yuhao) He

Description

The problem involves the path finding in a n*n square, where each cell contains a non-negative integer indicating the "cost" of being in that cell. The cost of move is: 1 + value of the cell to be moved to. Given the starting position and goal position on the grid, the goal is to determines the least cost path from the start location to goal location.

Sample inputs

grid:
1 4 5 3
2 1 4 2
5 7 9 1
2 4 1 5

starting location: (1,1)
goal location: (4,3)

Output

The output is the optimal path from starting location to goal location. For example, optimal path = [(1,1), (1,2), ..., (4,3)]

About

The algorithm determines the least cost path from the start location to goal location

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages