{'fraction_non_alphanumeric': 0.04317789291882556, 'fraction_numerical': 0.0, 'mean_word_length': 4.9520547945205475, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Design and Analysis of a Nondeterministic Parallel Breadth-First Search Algorithm by Tao Benjamin Schardl

I have developed a multithreaded implementation of breadth-first search (BFS) of a sparse graph using the Cilk++ extensions to C++. My PBFS program on a single processor runs as quickly as a standard C++ breadth-first search implementation. PBFS achieves high workefficiency 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” — a “hyperobject” feature of Cilk++ — the work inherent in a PBFS execution depends nondeterministically on how the underlying work-stealing scheduler load-balances the computation. I 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, I show that for a graph G = (V,E) with diameter D and bounded out-degree, this data-race-free version of PBFS algorithm runs in time O((V +E)/P+D lg(V/D)) on P processors, which means that it attains near-perfect linear speedup if P ≪ (V +E)/D lg(V/D). Some parts of this thesis represent joint work with Professor Charles E. Leiserson. Thesis Supervisor: Charles E. Leiserson Title: Professor