














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture was delivered by Anshuman Vibha at Ankit Institute of Technology and Science for Analysis of Algorithms course. It includes: Algorithms, Computational, Procedure, Data, Structure, Modifications, Time, Complexity, Running, Examples
Typology: Slides
1 / 22
This page cannot be seen from the preview
Don't miss anything!















Name
Running time ( T ( n ))
Examples of running times
linear time O ( n ) n
linearithmic time O ( n log n ) n log n , log n!
quadratic time O ( n^2 ) n^2
polynomial time poly( n ) n , n log n , n^10
exponential time 2 poly( n )^ n !, nn , 2 n^2
factorial time O ( n !) n!
Determine the largest size n of a problem that
can be solved in the given time t if the
problem takes f(n) microseconds
1 sec 1 min 1 hr 1 day I year 1 century n
log n n log n n^2 2 n n!
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.