Jessicabrut95
Jessicabrut95 Jessicabrut95
  • 11-12-2020
  • Computers and Technology
contestada

Write the pseudocode for depth first search ? (help plz)

Respuesta :

jojomary jojomary
  • 11-12-2020

Answer:

Start by putting any one of the graph's vertices on top of a stack.

Take the top item of the stack and add it to the visited list.

Create a list of that vertex's adjacent nodes. Add the ones which aren't in the visited list to the top of the stack.

Keep repeating steps 2 and 3 until the stack is empty.

Explanation: i hope it help

Answer Link

Otras preguntas

megan is going to make a drink using the instructions : mix 2 parts of fruit juice with 5 parts of sparkling water. Megan has 180ml of fruit juice and 400ml of
He ran up the stairs to the door and down the hall
HELP ASAP WILL GIVE BRAININST IF: Solve with a step by step explanation and I shall give you BRAINLIST Find the slope of the line passing through the points (-
Briea is 1 less than 1/3 of the age of Mr Chapel. If Briea is 14 write and solve an equation to find Mr Chapels age
Help please I really need help :)
positive integers greater than -4​
HELP HELP HELP HELP HELP ​
what are all the numbers with the absolute value of -4​
pls help I'll mark brainliest! it's about 9/11
WILL MARK BRAINLIEST What is the equation of the line of best fit that Dylan drew? O A. Y = - x + 9 OB. Y = or + 18 O c. y = -2x + 9 OD. y = -2x + 18