Some codes about pattern recognition