Nothing Special   »   [go: up one dir, main page]

skip to main content
column
Open access

Efficient Graph Search

Published: 13 September 2020 Publication History

Abstract

Welcome to Drill Bits, a new column about programming. This inaugural episode shows how graph search algorithms can avoid unnecessary work. A simple modification to classic breadth-first search improves the lower bound on its running time: Whereas classic BFS always requires time proportional to the number of vertices plus the number of edges, the improved "Efficient BFS" sometimes runs in time proportional to the number of vertices alone. Both asymptotic analysis and experiments show that Efficient BFS can be much faster than classic BFS. All software used in the experiments is available for download, and suggestions for further explorations are provided.

References

[1]
Ahuja, R. K., Magnanti, T. L., Orlin, J. B. 1993. Network Flows (page 76). Upper Saddle River, NJ: Prentice Hall.
[2]
Anderson, E., Tucek, J. 2010. Efficiency matters! SIGOPS Operating Systems Review 44(1):40?45; https://doi.org/10.1145/1740390.1740400.
[3]
Boost graph library; https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.bz2.
[4]
Cormen, T. H., Leiserson, C. E., Rivest, R. L., Stein, C. 2009. Introduction to Algorithms, third edition (page 595). Cambridge, MA: MIT Press.
[5]
Dijkstra, E. W. 1968. GOTO statement considered harmful. Communications of the ACM 11(3):147?148; https://doi.org/10.1145/362929.362947.
[6]
GeeksforGeeks. Breadth-first search or BFS for a graph; https://www.geeksforgeeks.org/breadth-first-search-or-bfs-for-a-graph/.
[7]
McDowell, G. L. 2016. Cracking the Coding Interview, sixth edition (page 108). Palo Alto, CA: CareerCup.
[8]
McSherry, F., Isard, M., Murray, D. G. 2015. Scalability! But at what COST? Usenix HotOS XV; https://www.usenix.org/system/files/conference/hotos15/hotos15-paper-mcsherry.pdf.
[9]
Newman, M. 2010. Networks: An Introduction (page 320). New York, NY: Oxford University Press.
[10]
Orwant, J., Hietaniemi, J., and John Macdonald, J. 1999. Mastering Algorithms with Perl (page 307). O'Reilly.
[11]
Sedgewick, R., Wayne, K. 2011. Algorithms, fourth edition (page 540). Addison-Wesley Professional.
[12]
Wikipedia. Breadth-first search; https://en.wikipedia.org/wiki/Breadth-first_search

Cited By

View all

Index Terms

  1. Efficient Graph Search
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image Queue
    Queue  Volume 18, Issue 4
    Keys and Identity
    July-August 2020
    105 pages
    ISSN:1542-7730
    EISSN:1542-7749
    DOI:10.1145/3424302
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 13 September 2020
    Published in QUEUE Volume 18, Issue 4

    Permissions

    Request permissions for this article.

    Check for updates

    Badges

    Qualifiers

    • Column
    • Opinion
    • Editor picked

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)1,927
    • Downloads (Last 6 weeks)173
    Reflects downloads up to 21 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Magazine Site

    View this article on the magazine site (external)

    Magazine Site

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media