Introduction
An algorithm refers to a list of steps that should be applied to perform a task. Searching and sorting algorithms are techniques with which we can search or sort elements in a container. A container, by itself, will have no advantage unless we can search items within that container. Based on certain containers, certain algorithms become more powerful for some containers than others. As an algorithm will run slower on a slower system and faster on a superior system, computation time is not an effective way to measure the effectiveness of an algorithm. Algorithms are rather measured as steps. Games are real-time applications, so the algorithms that will be applied have to be effective for games to be executed at least at 30 frames per second. The ideal frame rate is 60 frames per second.