Question: Read Chapter 9 in the McAllister text - Study the Course Material Tutorials. Write a Java Program that does the following: Generate a graph with

 Read Chapter 9 in the McAllister text - Study the Course

Read Chapter 9 in the McAllister text - Study the Course Material Tutorials. Write a Java Program that does the following: Generate a graph with 100,000 nodes, where each node randomly has between 1 and 5 connections to other nodes . Each node should contain within it a random value between 1 and 300,000. (So generally about 1 in 3 searches will yield a query ma .Allow the user to enter a number to search for, and implement each of the following three types of searching algorithms Breadth-First. (30 points) Dijkstra's Algorithm. (40 points) Depth-First. (30 points . Do not allow back-tracking in your searches. (Mark nodes that you already searched as complete, and do not re-visit them in the same . Each search should return the following The Success/Failure of your search. The length of the shortest path to the found node. The total number of nodes examined during the search Optionally you may return the exhaustive display of tne shortest path, for testing and venfication Also remember since your graph is crealed with random vaues, try re-creating it for different results Dijikstra's Algorithm will require augmentation of the graph to include connection weights, which can also be complotely Hint in each case, start with a smler number of nodes to test that your code is working, then increase the size when you are sure it works rading will be calcutated by the corectness of auer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!