Linear recurrence equation to analyzing the complexity of algorithms