In numerous urban areas, fine-tuning bus schedules to align with fluctuating passenger numbers poses a sizable challenge, compounded by diverse factors such as weather and unexpected events. This paper conducts a comprehensive examination of existing optimization methods aimed at enhancing the departure intervals of public transport systems, particularly focusing on the Bidirectional Coordination Optimization Algorithm (BCOA) and the genetic algorithm. Through systematic analysis, these methodologies are meticulously explored for their effectiveness in addressing the scheduling challenges faced by urban transit systems. Additionally, it delves into specific instances where the Proportional-Integral-Derivative (PID) control mechanism has been employed to adeptly adjust the timing of bus departures based on real-time demand. The PID system's proven reliability and efficacy spotlight its potential as a transformative tool for advancing public transit systems. By leveraging such technology, there's tangible optimism for achieving a more responsive, efficient, and passenger-friendly public transportation network in the years to come.