Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment You need to write a program ( preferably in Java ) to do the following: Given a graph of ( nodes and edges )
Assignment
You need to write a program preferably in Java to do the following:
Given a graph of nodes and edges find a path using the following algorithms:
Depth First Search
Breadth First Search
USC
GBFS
A
Use the class Vertex for the graph nodes
Name of the node: use alphabetic to represent the names eg A B etc....
You need to submit the following:
Driver program to TestGraphjava:
Read a graph of nodes; you can use a text file to read the graph from. You
may refer to the way of which graphs were represented in data structure
course
Ask the user to find a path based on a choice of algorithm to use
The output should be:
a The path given by the algorithm selected from point#
b The cost of the path
c The nodes that are explored on the order they are visited
The other java files needed to run your program
Note: if you are submitting multiple files, please compress them under the
name of: You first nameyou last nameYou ID
Attachments:
I attached some java files to help you with your assignment
Jubail Industrial College JIC
Department of Computer Information and Technology
SEM CS Introduction to Artificial Intelligence
Submission:
You are expected to:
Use the graphs from the exercises I posted as the input for your program
show me a demo where you run the algorithms and show the results and
explain the implementation
submit the code, screenshot of the results, names of the group members
Notes:
Use the graph version of the algorithm in which a node is explored only
once
Use alphabetical ordering to resolve any tie.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started