Advertisement
Davencode

Untitled

Sep 14th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. Algo(G,a,b,c)
  2. INIT(G)
  3. DFS_VISIT(G,a,c1)
  4. if(c1[c]=nero)then
  5. DFS_VISIT(G,c,c2)
  6. else
  7. return false
  8. if(c2[b]=nero)then
  9. return true
  10. else
  11. return false
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement