πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures

Asymptotic Notations or Growth of Functions

Asymptotic Notations are used to describe the execution time of an algorithm. The notations show the order of growth of functions. Here the time taken by an algorithm is mapped regarding mathematical functions. There are many asymptotic notations like 0, ΞΈ, Ω,w each having its importance.

1. Big-oh notation: The function f (n) =O (g (n)) [read as "f of n is big-oh of g of n"] if and only if exist positive constant c and n0 such that

f (n) β©½ C x g (n) for all n, n β‰₯ n0
Algorithms and Functions

Example1: The function 4n + 3 = O (n) as 4n + 3 β©½ 5n for all n β‰₯.

Example2: The function 20n2 + 5n + 2 = O (n2) as 20n2+ 5n +2β©½21n2 for all n β‰₯.

2. Omega (Ω) Notation: The function f (n) = Ω (g (n)) [read as "f of n is omega of g of n"] if and only if there exists positive constant c and n0 such that

f (n) β‰₯ C* g (n) for all n, n β‰₯ n0
Algorithms and Functions

Example1: The function 4n + 3 = Ω (n) as 4n + 3 β‰₯ 4n for all n β‰₯1.

Example2: The function 20n2+ 5n +2 = Ω (n) as 20n2+ 5n +2 β‰₯ 20n2 for all n β‰₯1.

3. Theta (ΞΈ): The function f (n) = ΞΈ (g (n)) [read as "f is the theta of g of n"] if and only if there exists positive constant k1, k2 and k0 such that

k1* g (n) ≀ f (n)≀k2* g(n)for all n, nβ‰₯n0
Algorithms and Functions

Example1: The function 4n + 3 = ΞΈ (n) as 4n + 3 β‰₯ 4n for all n β‰₯ 3 and 4n + 3 ≀ 5n for all n β‰₯ 3.

Example2: The function 20n2+ 5n +2 = ΞΈ (n2) as 20n2+ 5n +2 ≀ 21n2 for all n β‰₯1 and 20n2+ 5n +2 β‰₯ 20n2 for all n β‰₯ 1.

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>