Skip to content

xudong321p/ECE4984_robot_final

Repository files navigation

#Compile and Run


Python version 2.7.15 In termainal type: python problem2.py
python bfs_dfs.py


#Dijkstra


Advantage: It is an application of greedy algorithm to solve the shortest path problem from single source point to other vertices.And its time complexity is O(n2).

Inferiority: It can only be used in graphs with positive edge weights.


#A*


advantage: A*(A-Star) algorithm is the most effective direct search method for finding the shortest path in static road network.

Inferiority: The algorithm is computationally intensive and requires a lot of extra space while the number of nodes is large.


#Floyd


advantage: Floyd algorithm is a classical dynamic programming algorithm. It is an algorithm to solve the shortest path between any two points (called multi-source shortest path problem). It can be used in graphs with both positive and negative edge weights.

Inferiority: Time complexity is O(n3).


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages