### myaw's blog

By myaw, 5 years ago, ,

If any one could explain or give me a good tutorial (c++) to understand the approach of dfs . thanks.

• 0

 » 5 years ago, # | ← Rev. 2 →   -8
 » 5 years ago, # |   +5
 » 5 years ago, # |   -25 I think you are not smart enough to understand dfs. No matter how hard you try , you will not achieve it. Damn it bro!!
•  » » 5 years ago, # ^ | ← Rev. 2 →   +13 actually i think you are completely wrong! 1. Because DFS is not hard 2. every one who is safe and sound can learn this concepts and for example you hadnt even go above 1790 in rating and you are a Candidate master is this because you are not smart enough? and you cant ever reach above? 
•  » » 5 years ago, # ^ |   0 Тролль
•  » » 5 years ago, # ^ |   +9 Well.. guess you are not smart enough to understand segment trees no matter how hard you try. Damn it bro.
 » 5 years ago, # |   0 Dfs=Depth first search. That means that dfs algorithm is an algorithm that search through nodes. For example lets imagine a tree as A->B, A->C, C->D, C->F. If we start from node A,then dfs logic follows this path: A-C-F-D-B. This logic can help us a lot when we work with objects that are connected,and much more stuffs.I advice you for more information to check some youtube videos,to undestand the basic logic,after check some sources(dfs with recursion or stack),and finally solve as much problem you can.
 » 5 years ago, # | ← Rev. 5 →   +8 DFS is quite interesting topic. It's Dead First Search, we look for dead men first.
 » 9 months ago, # | ← Rev. 2 →   -9 here is good explanation for DFS algorithm. Depth first search in java