CS 201 Lecture 16 - Algorithm Complexity
CS 201 Lecture 16 - Algorithm Complexity
Kholoud Nairoukh
Department of Computer Science
German-Jordanian University
Lecture 16
• (g) = {f | gO(f)}
“The functions that are at least order g.”
n
t (n) = t1 + (t 2 + t3 ) + t 4
i =2
n
= (1) + (1) + (1) = (1) + (n − 1)(1)
i =2
= (1) + (n)(1) = (1) + (n) = (n)