quiz: mud puddles bessie slows down - sort list into list of t's and list of d's, then at each step just check the first one of each list, slow down appropriately tea time - transitive closure / connectivity - for cow i for cow j for neighbor cows k if i knows k and j and k, then i knows j
quiz:
mud puddles
bessie slows down
tea time
for cow j
for neighbor cows k
if i knows k and j and k, then i knows j