This article investigates the coupled vibration problem of suspension bridge structures under earthquake action, and conducts static and dynamic analysis using computer algorithms. In terms of static analysis, complex structures are divided into many small elements, and the stress and deformation of each element are calculated through finite element analysis, thereby obtaining the static characteristics of the entire structure. In terms of dynamic analysis, the seismic response analysis method based on time history considers seismic action as a time-varying external excitation, and calculates and simulates the dynamic response of the suspension bridge structure. In order to achieve efficient and accurate calculations, this article also adopts optimization algorithms and numerical calculation methods. Through a comprehensive study of statics and dynamics analysis, the key characteristics and regularities of coupled vibration of suspension bridge structures under earthquake action have been obtained. These research results not only provide important theoretical guidance and technical support for related engineering practices, but also provide useful references and inspirations for dynamic analysis and optimization design of similar structures. Meanwhile, using computer algorithms and simulation software for static and dynamic analysis can significantly reduce analysis costs and time, improve analysis accuracy and efficiency, and have broad application prospects.