title: breadth first or depth first search
body: <p>I know how this algorithm works, but cant decide when to use which algorithm ?  </p>
  
  <p>Are there some guidelines, where one better perform than other or any considerations ?  </p>
  
  <p>Thanks very much.</p>