In order to analyze an algorithm is to find out the amount of resources (like time & storage) that are utilized to execute. Mostly algorithms are designed to work along with inputs of arbitrary length.
Algorithm analysis is significant part of a broader computational complexity theory that provides theoretical estimates for the resources required by any algorithm which solves out b a given computational difficulty. These estimates provide an insight in sensible directions of search for efficient algorithms.