In the field of epidemiology, timely data analysis is critical for controlling outbreaks and minimizing public health risks. Efficient algorithms enable rapid processing of large datasets, allowing health officials to make informed decisions quickly. The need for real-time data analysis has been highlighted during pandemics, where delays in identifying hotspots or predicting infection rates can have severe consequences.