Algorithms analysis