Homopolymers or copolymers of acrylamide or methacrylamide