Applications run well on mobile with fast processor, but it is not the bottleneck of any application speed. In reality, the algorithm used to optimize the application\'s sub-methods, determine the application speed and smoothness.When applications are made to handle large data,they need to have methods, which can perform their task in fractions of seconds, and therefore, we study algorithms to write code optimally.