Invariants: Computation and Applications