Generating All Cases Graph

Revision en1, by issahaddar5, 2015-08-15 13:30:06

I was trying to solve this problem. I solved it using bfs. However, I would like to know how can I generate the whole graph beforehand — before processing it in dfs or any other algorithm- ? Another problem that I would like to employ this technique on is problem A in this contest

Tags graphs, generators

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English issahaddar5 2015-08-15 13:30:06 399 Initial revision (published)