{"id":6239,"date":"2025-09-11T16:34:27","date_gmt":"2025-09-11T11:04:27","guid":{"rendered":"https:\/\/study.madeeasy.in\/?p=6239"},"modified":"2025-09-11T16:34:27","modified_gmt":"2025-09-11T11:04:27","slug":"asymptotic-notations-big-oh-o-big-omega-%cf%89-and-big-theta-%ce%b8","status":"publish","type":"post","link":"https:\/\/www.madeeasy.in\/study\/cs-it\/algorithms\/asymptotic-notations-big-oh-o-big-omega-%cf%89-and-big-theta-%ce%b8","title":{"rendered":"Asymptotic Notations: Big-Oh (O), Big-Omega (\u2126), and Big-Theta (\u0398)"},"content":{"rendered":"<p>Let f be a non negative function. Then we can define the three most common asymptotic bounds as follows.<\/p>\n<p><strong>Big-Oh(O)<\/strong><\/p>\n<p>We say that f(n) is Big-\u039f of g(n), written as f(n) = \u039f(g(n)), iff there are positive constants c and n0 such that<\/p>\n<p>0 \u2264 f(n) \u2264 c \u22c5 g(n) for all n \u2265 n0<br \/>\nIf f(n) = \u039f(g(n)), we say that g(n) is an upper bound<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>Let us consider a given function:<\/p>\n<p>f(n) = 4 \u22c5 n3 + 10n2 + 5n + 8<br \/>\ng(n) = n3<br \/>\nChecking whether f(n) = \u039f(g(n)) or not?<\/p>\n<p><strong>Solution:<\/strong><\/p>\n<p>For above condition to be true<br \/>\n0 \u2264 f(n) \u2264 c \u22c5 g(n)<br \/>\n4n3 + 10n2 + 5n + 8 \u2264 c \u22c5 n3<br \/>\nwhen c = 5 and n \u2265 4<br \/>\nf(n) is always lesser than g(n)<br \/>\nHence above statement is true.<\/p>\n<p><strong> Big-Omega (\u2126)<\/strong><\/p>\n<p>We say that f(n) is Big-Omega of g(n), written as f(n) = \u2126(g(n)), iff there are positive constants c and n0 such that<\/p>\n<p>0 \u2264 c \u22c5 g(n) \u2264 f(n) for all n \u2265 n0<br \/>\nIf f(n) = \u2126(g(n)), we say that g(n) is a lower bound<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>Let us consider a given function:<\/p>\n<p>f (n) = 3n + 2<br \/>\ng(n) = n<br \/>\nChecking whether f(n) = \u2126(g(n)) or not?<br \/>\nSolution:<br \/>\nFor above condition to be true<br \/>\n0 \u2264 c \u22c5 g(n) \u2264 f(n)<br \/>\nc \u22c5 n \u2264 3n + 2<br \/>\nwhen c = 1 and n \u2265 1<br \/>\ng(n) is always lesser than f(n)<br \/>\nHence above statement is true.<\/p>\n<p><strong>Big-Theta (\u0398)<\/strong><\/p>\n<p>We say that f(n) is Big-Theta<br \/>\nBig-Theta of g(n), written as f(n) = \u0398(g(n)), iff there are positive constants c1, c2 and n0 such that<\/p>\n<p>0 \u2264 c1 \u22c5 g(n) \u2264 f(n) \u2264 c2 \u22c5 g(n) for all n \u2265 no<\/p>\n<p>Equivalently, f(n) = \u0398(g(n)) if and only if f(n) = \u039f(g(n)) and f(n) = \u2126(g(n)). If f(n) = \u0398 (g(n)), we say that g(n) is a tight bound on f(n).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let f be a non negative function. Then we can define the three most common asymptotic bounds as follows. Big-Oh(O)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1831,3],"tags":[1832,1833,1834,1835],"class_list":["post-6239","post","type-post","status-publish","format-standard","hentry","category-algorithms","category-cs-it","tag-asymptotic-notations","tag-big-oho","tag-big-omega-","tag-big-theta-"],"_links":{"self":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/6239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/comments?post=6239"}],"version-history":[{"count":0,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/6239\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/media?parent=6239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/categories?post=6239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/tags?post=6239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}