Difference between revisions of "CSC212 Final Exam 2014"

From dftwiki3
Jump to: navigation, search
Line 14: Line 14:
 
<br />
 
<br />
 
=Problem #1=
 
=Problem #1=
* If you were to change the queue in the BFS algorithm with a stack.  In general, is the order in which the vertices get visited by this new BFS the same as the order of DFS?  True or false?  We assume that both searches would start on the same vertex.
+
* If you were to change the queue in the BFS algorithm with a stack.  In general, is the order in which the vertices of a graph get visited by this new BFS, the same as the order generated by DFS?  True or false?  We assume that both searches would start on the same vertex.
  
 
<br />
 
<br />

Revision as of 19:05, 10 December 2014

--D. Thiebaut (talk) 15:16, 9 December 2014 (EST)



...






...