The paper presents a new algorithm called GACP (Graph-Based Approach and Clustering of Patterns) for efficient sequential pattern mining, which improves upon traditional techniques by utilizing graph representation to minimize memory usage and I/O operations. GACP avoids recursive tree reconstruction and excessive database scans, employing clustering techniques to streamline pattern retrieval. The algorithm is designed to handle large data collections effectively, making it applicable in various fields such as web usage analysis and customer behavior studies.