This document introduces a discrete particle swarm optimization (DPSO) algorithm aimed at selecting optimal classification rule sets from large datasets, enhancing predictive accuracy in data mining applications. Through experiments, particularly using the wine dataset, the DPSO algorithm demonstrates the ability to achieve high classification accuracy while reducing the number of rules and their complexity. The study concludes that the proposed method is efficient for rule discovery in discrete data, suggesting potential for further improvements in rule quality through pruning techniques.