title: why DFS is not optimal but BFs is optimal
body: <p>I have this question in my mind for long but never got reasonable answer for that :</p>
  
  <p>Usually in artifitial intelligent course when it comes to search it is always said that BFS is optimal but DFS is not but I can come up with many example that shows with DFS we can even get the answer faster. So can anyone explain it ? Am I missing something?</p>