Data mining by means of generalized patterns