Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Write the psuedo code for the Depth first Search.
Write the psuedo code for the Depth first Search.
✍: .fyicenter.com
dfs(G, v) //OUTLINE
Mark v as "discovered"
For each vertex w such that edge vw is in G:
If w is undiscovered:
dfs(G, w); that is, explore vw, visit w, explore from there
as much as possible, and backtrack from w to v.
Otherwise:
"Check" vw without visiting w.
Mark v as "finished".
2012-04-16, 3222👍, 0💬
Popular Posts:
What are the standard ways of parsing XML document? XML parser sits in between the XML document and ...
What will be printed as the result of the operation below: main() { int a=0; if (a==0) printf("Cisco...
Advantages of a macro over a function? Macro gets to see the Compilation environment, so it can expa...
What Does a HTML Document Look Like? A HTML document is a normal text file with predefined tags mixe...
How can I implement a thread-safe JSP page? You can make your JSPs thread-safe by having them implem...