Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Asymptotic notation in Data Structures, Lecture notes of Data Structures and Algorithms

Data structures concept Asymptotic notation

Typology: Lecture notes

2020/2021

Uploaded on 01/19/2021

dinesh-paul
dinesh-paul 🇮🇳

4 documents

1 / 7

Toggle sidebar

Related documents


Partial preview of the text

Download Asymptotic notation in Data Structures and more Lecture notes Data Structures and Algorithms in PDF only on Docsity! Asymptotic Notation Dinesh Paulraj MCA.,M.Phil., • Asymptotic analysis refers to computing the running time of any operation in mathematical units of computation. • Using asymptotic analysis, we can very well conclude the best case, average case, and worst case scenario of an algorithm. • Asymptotic analysis is input bound i.e., if there's no input to the algorithm, it is concluded to work in a constant time. For example, the running time of one operation is computed as f(n) and may be for another operation it is computed as g(n2). DEFINITION: Omega Notation, Ω • The notation Ω(n) is the formal way to express the upper n) is the formal way to express the lower bound of an algorithm's running time. It measures the best case time complexity or the best amount of time an algorithm can possibly take to complete. Ω(f(n)) = { )) = { ≥ { g(n)) = { : there exists c > 0 and n0 such that g(n)) = { ≤ c.f(n)) = { for all n > n0. } Theta Notation, θ • The notation θ(n) is the formal way to express the upper n) is the formal way to express both the lower bound and the upper bound of an algorithm's running time. θ(f(n)) = { )) = { = { g(n)) = { if and only if g(n)) = { = Ο(f(n)) = { )) = { and g(n)) = { = Ω(f(n)) = { )) = { for all n > n0.} THANK YOU
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved