BFS and DFS Navigation in Java Part 2
sliedlBFS and DFS navigation part 2
1 .- the user select the number of Nodes he wants <=15
2 .- with 0 and 1 he builds the adjacent matriz
3 .- Display it ( the adjacent matriz )
4 .- Display the adjacent list
5 .- Build the GUI with 2 buttons
one for BFS Navigation
one for DFS Navigation
6 .- Display Navigation with the color
7. - When a parent node is being visited paint it black and in a queue display it part (call the queue by exemple visiting)
and their children paint gray
8. - After being visited send the node to another queue (call it visited for example)
9. - And a node visited paint it red
NB I provide an example with files i uploaded check it ! only missing the queues and the color changes !
- 11 years ago
- 20
Answer(0)
Bids(0)
other Questions(10)
- a community has just built a street across a strike-slip fault that has frequent earthquakes. How will movement along the...
- Explain how a clothes dryer works in speeding up evaporation (3 reasons or ways)
- Since 1985, the average annual cost y (in dollars) for tuition and fees at a public two-year colleges in...
- The life history of kelp consists of a very large sporophyte and a tiny gametophyte. Sea lettuce and some other...
- present tense of assign
- Assignment Type: Individual Project Deliverable Length: 2 -3 Pages
- Discuss the brand effectiveness from a marketing perspective of “Red Sox Nation.” Why is this concept appealing to its customers?...
- 2x-27=45-x
- “How HR Transforms the Future: Building Human Resources from the Outside In.”
- Prepare a cash budget. (SO 8), AP You are provided with the following information taken from Washburne Inc.'s March 31, 2012, balance...