1: Algorithms for weighted multi-tape automata 2: Merging costs for the additive Marcus-Lushnikov process, and Union-Find algorithms