dc.contributor.author | Leiserson, Charles E. | |
dc.contributor.author | Schardl, Tao Benjamin | |
dc.date.accessioned | 2016-01-19T18:21:30Z | |
dc.date.available | 2016-01-19T18:21:30Z | |
dc.date.issued | 2010-06 | |
dc.identifier.isbn | 9781450300797 | |
dc.identifier.uri | http://hdl.handle.net/1721.1/100925 | |
dc.description.abstract | We have developed a multithreaded implementation of breadth-first search (BFS) of a sparse graph using the Cilk++ extensions to C++. Our PBFS program on a single processor runs as quickly as a standar. C++ breadth-first search implementation. PBFS achieves high work-efficiency by using a novel implementation of a multiset data structure, called a "bag," in place of the FIFO queue usually employed in serial breadth-first search algorithms. For a variety of benchmark input graphs whose diameters are significantly smaller than the number of vertices -- a condition met by many real-world graphs -- PBFS demonstrates good speedup with the number of processing cores.
Since PBFS employs a nonconstant-time "reducer" -- "hyperobject" feature of Cilk++ -- the work inherent in a PBFS execution depends nondeterministically on how the underlying work-stealing scheduler load-balances the computation. We provide a general method for analyzing nondeterministic programs that use reducers. PBFS also is nondeterministic in that it contains benign races which affect its performance but not its correctness. Fixing these races with mutual-exclusion locks slows down PBFS empirically, but it makes the algorithm amenable to analysis. In particular, we show that for a graph G=(V,E) with diameter D and bounded out-degree, this data-race-free version of PBFS algorithm runs it time O((V+E)/P + Dlg[superscript 3](V/D)) on P processors, which means that it attains near-perfect linear speedup if P << (V+E)/Dlg[superscript 3](V/D). | en_US |
dc.description.sponsorship | National Science Foundation (U.S.) (Grant CNS-0615215) | en_US |
dc.language.iso | en_US | |
dc.publisher | Association for Computing Machinery (ACM) | en_US |
dc.relation.isversionof | http://dx.doi.org/10.1145/1810479.1810534 | en_US |
dc.rights | Creative Commons Attribution-Noncommercial-Share Alike | en_US |
dc.rights.uri | http://creativecommons.org/licenses/by-nc-sa/4.0/ | en_US |
dc.source | MIT web domain | en_US |
dc.title | A work-efficient parallel breadth-first search algorithm (or how to cope with the nondeterminism of reducers) | en_US |
dc.type | Article | en_US |
dc.identifier.citation | Charles E. Leiserson and Tao B. Schardl. 2010. A work-efficient parallel breadth-first search algorithm (or how to cope with the nondeterminism of reducers). In Proceedings of the twenty-second annual ACM symposium on Parallelism in algorithms and architectures (SPAA '10). ACM, New York, NY, USA, 303-314. | en_US |
dc.contributor.department | Massachusetts Institute of Technology. Computer Science and Artificial Intelligence Laboratory | en_US |
dc.contributor.department | Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science | en_US |
dc.contributor.mitauthor | Leiserson, Charles E. | en_US |
dc.contributor.mitauthor | Schardl, Tao Benjamin | en_US |
dc.relation.journal | Proceedings of the 22nd ACM symposium on Parallelism in algorithms and architectures (SPAA '10) | en_US |
dc.eprint.version | Author's final manuscript | en_US |
dc.type.uri | http://purl.org/eprint/type/ConferencePaper | en_US |
eprint.status | http://purl.org/eprint/status/NonPeerReviewed | en_US |
dspace.orderedauthors | Leiserson, Charles E.; Schardl, Tao B. | en_US |
dc.identifier.orcid | https://orcid.org/0000-0003-0198-3283 | |
mit.license | OPEN_ACCESS_POLICY | en_US |