Algorithmic Analysis of a General Class of Discrete-based Insurance Risk Models