Preserving Order in a Reduction
Associativity permits regrouping, while commutativity permits reordering. A reduction can require the operand order even when it uses many partitions.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace concatenation
Concatenating letters A, B, and C gives ABC in either left or right parenthesization without swapping terms. Reversing chunks can yield CAB instead. Associative summaries explain which grouping changes are safe.
Decide what order the input gives
A parallel file scan can finish chunks in another order than their source positions. Keep offsets when final assembly is ordered. Sequence ordering gives the properties to preserve.[1]