I wrote a blog post on generalizing segment trees: https://sharmaeklavya2.github.io/blog/generalizing-segment-trees.html
Can I please get comments/reviews/opinions on it? It's about a method of generalizing segment trees using concepts from abstract algebra: monoids and endomorphisms. The blog post explains what these terms mean, why they are suitable abstractions and demonstrates concepts with examples.
It turned out to be slightly more detailed and theoretical than I was expecting. It's also more concerned with mathematical and algorithmic aspects than the practicality of using it in contests. But I can change that if you think that would make it better.