Compared with the general three-stage, the general two-segment, the well-known T-shape and TABU500 algorithms, this paper proposes a novel algorithm to solve large-scale rectangular packing problems efficiently. The algorithm in this paper can generate exactly rectangular optimal same-shape strip two-segment layout. The algorithm not only meets practical guillotine-cutting problems, but also is reasonable in computation time consuming. Firstly, the algorithm uses dynamic programming recursion to generate optimal same-shape strips; secondly, it solves knapsack problems to obtain the optimal same-shape strip two-segment layout. The algorithm is tested on 62 large-scale benchmark problems. Experimental results show that the algorithm is efficient and the solutions of the algorithm are better than conventional algorithms in solving large-scale two-dimensional cutting instances.