Algorithmic Computation of Higher-order Symmetries for Nonlinear Evolution and Lattice Equations