cs502 gdb solution 2022 cs502 gdb solution 2022 download CS502 GDB No 1 Solution Fall 2022 Download CS502 GDB Fall 2022 cs502 - fundamentals of algorithms gdb
Solution.
1, Which algorithm would be applied to compute the shortest route in this scenario
that is giving us direction for real time navigation?
Solution:
Breadth First Search (BFS)
2. How would you apply that algorithm in this scenario?
Solution:
The shortest path i discovered using the Queue data structure by BFS (Breadth First Search)
It operates on the FIFO principle Fist In Fist Out | I
Because BFS requires that we arrive at a vertex from a source vertex with the fewest possible
edges, it can be used to identify a single source shortest path in an unweighted graph.
3. What are the benefits of your chosen algorithm over other algorithm? Write at least 3 benefits.
Solution:
If you want to locate the quickest route, BES is your best bet.
Directed a cyclic graph search (DFS) is subpar for shortest path discovery.
If the target is nearby, a BSF should be used: otherwise, a BFS should be used. From this source,
DES is the better option.
If you give a BFS a starting node and an ending node, it will calculate the shortest path between
the two. Unfortunately. the shortest route cannot be guaranteed by a depth-first search.
If there are answers, BES will find them without a doubt.
vu
The fact that BFS can avoid dead ends, or unwanted nodes, is its most appealing feature.
it will find the simplest possible answer if multiple exists.
0 Comments
Post a Comment