Invariant measures of interacting particle systems: Algebraic aspects