Algorithms, the fundamental building blocks of computation, possess a rich trajectory spanning millennia. Their roots can be traced back to ancient civilizations where basic arithmetic were employed for practical purposes such as surveying and record-keeping. The development of algorithms has been a gradual stride, fueled by advancements in mathema