Algebraic approach to stopping variable problems: Representation theory and applications*