Computer Science Speaking Skills Talk

Friday, December 9, 2016 - 12:00pm to 1:00pm

Location:

McWilliams Classroom 4303 Gates & Hillman Centers

Speaker:

YIHAN SUN, Ph.D. Student http://www.cs.cmu.edu/~yihans/

Ordered sets (and maps when data is associated with each key) are one of the most important and useful data types. The set-set functions union, intersection and difference are particularly useful in certain applications. Brown and Tarjan first described an algorithm for these functions, based on 2-3 trees, that meet the optimal O(mlog(n/m + 1)) time bounds in the comparison model (n and m n are the input sizes). Later Adams showed very elegant algorithms for the functions, and others, based on weight-balanced trees. They only require a single function that is specific to the balancing scheme--a function that joins two balanced trees--and hence can be applied to other balancing schemes. Furthermore the algorithms are naturally parallel. However, in the twenty-four years since, no one has shown that the algorithms, sequential or parallel are asymptotically work optimal. In this paper we show that Adams' algorithms are both work efficient and highly parallel (polylog span) across four different balancing schemes--AVL trees, red-black trees, weight balanced trees and O(mlog(n/m + 1)) treaps. To do this we use careful, but simple, algorithms for JOIN that maintain certain invariants, and our proof is (mostly) generic across the schemes. To understand how the algorithms perform in practice we have also implemented them (all code except JOIN is generic across the balancing schemes). Interestingly the implementations on all four balancing schemes and three set functions perform similarly in time and speedup (more than 45x on 64 cores). We also compare the performance of our implementation to other existing libraries and algorithms. Joint work with Guy Blelloch and Daniel Ferizovic Presented in Partial Fulfillment of the CSD Speaking Skills Requirement.

For More Information, Contact:

deb@cs.cmu.edu

Keywords:

Speaking Skills