A smart city leverages technology to enhance the quality of urban life. One key component is optimizing traffic flow, which can significantly reduce congestion and improve travel times. This involves incorporating innovative solutions such as smart traffic lights, dynamic routing systems, and self-driving vehicles. By monitoring data on traffic pat