To build prosperous smart cities, adequate infrastructure must be provided. Smart cities contain intelligent things to enhance lives and save people’s lives. The Internet of medical things (IoM) and edge computing are part of these things. Healthcare services are essential services that should benefit from the infrastructure of smart cities. Increasing the quality of services (QoS) required increased connectivity and supercomputing. Supercomputing is represented by connecting the IoM with high processing devices close to these healthcare service devices called edge processing. Healthcare application requires low network latencies; therefore, edge computing must be necessary. Edge computing enables reduced latency and energy efficiency, scalability, and bandwidth. In this study, we review the most important algorithms used in the resource allocation management process at the MEC, which are the DPSO, ACO, and basic PSO. Our experiments have proven that the DPSO is the better and appropriate algorithm used in the event of intensive process congestion that needs to be addressed at the edges of the network to reduce time, including operations related to patients’ health conditions.