Skip to content

Commit

Permalink
Added dfs search order figure
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry Liu committed Jan 14, 2014
1 parent c719451 commit 5b9a98a
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -7,7 +7,6 @@ semantic.cache
*.log
*.out
*.ps
*.eps
*.idx
*.ilg
*.ind
Expand Down
287 changes: 287 additions & 0 deletions search/img/dfs-tree.eps

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added search/img/xfs.odg
Binary file not shown.
11 changes: 9 additions & 2 deletions search/search-en.tex
Expand Up @@ -3503,9 +3503,16 @@ \subsubsection{Summary of DFS}
branch stands for a different attemptation, our solution searching process
is in a manner, that we search deeper and deeper. We won't consider any
other options in the same depth unless the searching fails so that we've
to backtrack to upper level of the tree.
to backtrack to upper level of the tree. Figure \ref{fig:dfs-tree} illustrates
the order we search a state tree. The arrow indicates how we go down
and backtrack up. The number of the nodes is the order we visit them.

TODO: Provide a DFS figure.
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.5]{img/dfs-tree.eps}
\caption{Example of DFS search order.}
\label{fig:dfs-tree}
\end{figure}

This kind of search strategy is called 'DFS' (Deep-first-search). We widely
use it unintentionally. Some programming environment, Prolog for instance,
Expand Down

0 comments on commit 5b9a98a

Please sign in to comment.