Skip to main content

Analytical Results on the BFS vs. DFS Algorithm Selection Problem. Part I: Tree Search

  • Conference paper
  • First Online:
AI 2015: Advances in Artificial Intelligence (AI 2015)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 9457))

Included in the following conference series:

Abstract

Breadth-first search (BFS) and depth-first search (DFS) are the two most fundamental search algorithms. We derive approximations of their expected runtimes in complete trees, as a function of tree depth and probabilistic goal distribution. We also demonstrate that the analytical approximations are close to the empirical averages for most parameter settings, and that the results can be used to predict the best algorithm given the relevant problem features.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    Source code for the experiments is available at http://tomeveritt.se.

References

  • Chen, P.C.: Heuristic sampling: a method for predicting the performance of tree searching programs. SIAM J. Comput. 21(2), 295–315 (1992)

    Article  MATH  Google Scholar 

  • Edelkamp, S., Schrödl, S.: Heuristic Search. Morgan Kaufmann Publishers Inc., San Francisco (2012)

    MATH  Google Scholar 

  • Everitt, T., Hutter, M.: A topological approach to meta-heuristics: analytical results on the BFS vs. DFS algorithm selection problem. Technical report, Australian National University (2015a). arXiv:1509.02709 [cs.AI]

  • Everitt, T., Hutter, M.: Analytical results on the BFS vs. DFS algorithm selection problem. Part II: graph search. In: 28th Australian Joint Conference on Artificial Intelligence (2015b)

    Google Scholar 

  • Hutter, F., Xu, L., Hoos, H.H., Leyton-Brown, K.: Algorithm runtime prediction: methods & evaluation. Artif. Intell. 206(1), 79–111 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  • Kilby, P., Slaney, J., Thiébaux, S., Walsh, T.: Estimating search tree size. In: Proceedings of the 21st National Conference of Artificial Intelligence. AAAI, Menlo Park (2006)

    Google Scholar 

  • Knuth, D.E.: Estimating the efficiency of backtrack programs. Math. Comput. 29(129), 122–136 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  • Korf, R.E., Reid, M., Edelkamp, S.: Time complexity of iterative-deepening-A*. Artif. Intell. 129(1–2), 199–218 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  • Kotthoff, L.: Algorithm selection for combinatorial search problems: a survey. AI Mag., 1–17 (2014)

    Google Scholar 

  • Lelis, L.H.S., Otten, L., and Dechter, R.: Predicting the size of Depth-first Branch and Bound search trees. In: IJCAI International Joint Conference on Artificial Intelligence, pp. 594–600 (2013)

    Google Scholar 

  • Peixoto, T.P.: The graph-tool python library. figshare (2015)

    Google Scholar 

  • Purdom, P.W.: Tree size by partial backtracking. SIAM J. Comput. 7(4), 481–491 (1978)

    Article  MathSciNet  MATH  Google Scholar 

  • Rice, J.R.: The algorithm selection problem. Adv. Comput. 15, 65–117 (1975)

    Article  Google Scholar 

  • Rokicki, T., Kociemba, H.: The diameter of the rubiks cube group is twenty. SIAM J. Discrete Math. 27(2), 1082–1105 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  • Russell, S.J., Norvig, P.: Artificial Intelligence: A Modern Approach, 3rd edn. Prentice Hall, Englewood Cliffs (2010)

    MATH  Google Scholar 

  • Zahavi, U., Felner, A., Burch, N., Holte, R.C.: Predicting the performance of IDA* using conditional distributions. J. Artif. Int. Res. 37, 41–83 (2010)

    MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tom Everitt .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Everitt, T., Hutter, M. (2015). Analytical Results on the BFS vs. DFS Algorithm Selection Problem. Part I: Tree Search. In: Pfahringer, B., Renz, J. (eds) AI 2015: Advances in Artificial Intelligence. AI 2015. Lecture Notes in Computer Science(), vol 9457. Springer, Cham. https://doi.org/10.1007/978-3-319-26350-2_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-26350-2_14

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-26349-6

  • Online ISBN: 978-3-319-26350-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics