4 ms·
Abstract algebra and group theory. For example strings under concatenation (append) forms a semigroup. Another example is addition of durations (say you are wri
by bjourne 11y ago
Abstract algebra and group theory. For example strings under concatenation (append) forms a semigroup. Another example is addition of durations (say you are writing scheduling software and want to calculate: 2 days and 3 hours + 4 hours) which I believe forms an abelian group. Finding examples of rings and more complex algebraic structures in programming is left as an exercise for the reader. :)