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, 3218👍, 0💬
Popular Posts:
How To Use "IN OUT" Parameter Properly? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and F...
How can I check for HTML errors? HTML validators check HTML documents against a formal definition of...
How To Dump the Contents of a Directory into an Array? - PHP Script Tips - Working with Directoris a...
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
Which bit wise operator is suitable for turning on a particular bit in a number? The bitwise OR oper...