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

two equations are given below: a – 4b = 10 a = b – 2 what is the solution to the set of equations in the form (a, b)? (–5, –3) (–6, –4) (–4, –2) (–8, –6)
Which of the following is not a common sign of a possible chemical reaction? A. Dissolved precipitate B. Formation of bubbles C. Change in odor D. Warming o
Use the list method to write "the perfect square integers between 1 and 80 inclusive".
what is x over 5 equals 8 over 9?
The lines are parallel, find the slope-intercept form of the equation y₂
What is 66% off of 20.00 ?
What is the algebraic expression for the word phrase the quotient of j and 8?
By the end of the nineteenth century, technology in the industrial setting (factories)
what are five facts about gary soto?
to run for Senate a candidate must be