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

the sum of a 3 digit number and a 1 diget number is 217
Which of the following groups frequently protested the hiring of unskilled factory workers in the 1800s?
Two intersecting lines have________ of point(s) in common. zero two one are infinte number
Is this statement true or false? Artworks are grouped together by their style or period. A. True B. False
what is a question you can ask yourself while reading to help you understand tone
what is more 4/5 or 0.71 and what is more 1.2 or 1 and 2/9
-3(x-a)+b=c solve for x
?What is rhythm in poetry
What is the answer to -21-(-34)
Is physics and physical science the same thing?