{"id":3179,"date":"2021-06-09T10:28:00","date_gmt":"2021-06-09T04:58:00","guid":{"rendered":"https:\/\/manorinfinity.com\/blog\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/"},"modified":"2021-06-09T10:28:00","modified_gmt":"2021-06-09T04:58:00","slug":"performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs","status":"publish","type":"post","link":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/","title":{"rendered":"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS"},"content":{"rendered":"<p style=\"text-align: center;\"><span style=\"font-size: large;\"><br \/><\/span><\/p>\n<\/p>\n<p><span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Do you know? How can you analyze the performance of an algorithm?&nbsp;<\/span><\/span><\/p>\n<h1 style=\"line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt; text-align: left;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Performance Analysis:<\/span><\/span><\/h1>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">Performance analysis of an algorithm is the process of calculating time and space required by that algorithm. There are three types of analysis-<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><\/span><\/p>\n<h2 style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt; text-align: left;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">1. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Worst Case:<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">In the worst case, an algorithm performs the maximum number of steps on the input data of size <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">.<\/span><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">2. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Best Case:&nbsp;<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">In the best case, an algorithm performs the minimum number of steps on input data of size <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">.<\/span><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">3. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Average Case:<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">In the average case, an algorithm performs an average number of steps on input data of <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> elements.<\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Space Complexity:-<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Total amount of computer memory required by an algorithm to complete its execution is called the space complexity of that algorithm. It can include program space and data space.<\/span><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Time Complexity:-<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">The time complexity of an algorithm is the total amount of time required by an algorithm to complete its execution.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;<\/span><\/span><\/p>\n<h1 style=\"line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt; text-align: left;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Asymptotic Notations:&nbsp;<\/span><\/span><\/h1>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Using asymptotic analysis, we can evaluate the performance of an algorithm in terms of input size. We can calculate how the time and space taken by an algorithm increases with the input size.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">One more thing, asymptotic analysis is not perfect, but in the present time that is the best way available for analyzing the algorithm (It can give an idea about the algorithm). Asymptotic notation of an algorithm is a mathematical representation of its complexity.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">Let &#8216;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&#8216; and &#8216;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">g&#8217; <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">be two functions (non-negative). And <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">n&nbsp; <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">is the input size. Then we can define the three most common asymptotic bounds as follows:<\/span><\/span><\/p>\n<ol style=\"margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;\">\n<li aria-level=\"1\" dir=\"ltr\" style=\"font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;\">\n<p dir=\"ltr\" role=\"presentation\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Big-Oh ( O )<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Notation<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> (Upper Bounding Function)<\/span><\/span><\/p>\n<\/li>\n<li aria-level=\"1\" dir=\"ltr\" style=\"font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;\">\n<p dir=\"ltr\" role=\"presentation\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Big-Omega (\u03a9 ) Notation<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> (Lowest Bounding Function)<\/span><\/span><\/p>\n<\/li>\n<li aria-level=\"1\" dir=\"ltr\" style=\"font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;\">\n<p dir=\"ltr\" role=\"presentation\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Theta (\u0398 )&nbsp; Notation<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> (Order Function)<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">1. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Big-Oh (O) Notation:<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">This notation gives the tight upper bound of the given function (algorithm). Generally, this notation can be represented as-<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt; text-align: center;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = O(g(n))<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">That means, at the larger values of&nbsp; &#8216;n&#8217; the upper bound of <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">f(n)<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> is <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">g(n)<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;<\/span><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><img data-recalc-dims=\"1\" height=\"277\" width=\"300\" decoding=\"async\" border=\"0\" data-original-height=\"343\" data-original-width=\"372\" src=\"https:\/\/i0.wp.com\/explore.techenutia.com\/wp-content\/uploads\/2021\/06\/asy-300x277.png?resize=300%2C277&#038;ssl=1\" \/><\/span><\/div>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">Where,<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt; text-align: center;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;0 \u2264 f(n) \u2264 c*g(n)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">For all,&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">n \u2265 n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> , c &gt; 0 , n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0 <\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">\u2265 1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">Generally,&nbsp; we can discard the lower values of &#8216;n&#8217;. Because, we know the rate of growth at<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">the lower values of &#8216;n&#8217; is not important. In the given diagram, &#8216;n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&#8216; is the point from which we need to consider the values of &#8216;n&#8217; that show the actual rate of growth for a given algorithm. As we can see that below n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">, the rate of growth could be different. Here, n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> is called &#8216;threshold&#8217; for the given function.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;<\/span><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">2. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Big-Omega (\u03a9) Notation:<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">This notation gives the tightest lower bound for the given function (algorithm). Generally, this notation can be represented as-<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">f(n) =\u03a9(g(n))<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">That means, at larger values of n, the tightest lower bound of <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">f(n)<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> is <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">g(n)<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">.<\/span><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><img data-recalc-dims=\"1\" height=\"272\" width=\"300\" decoding=\"async\" border=\"0\" data-original-height=\"342\" data-original-width=\"377\" src=\"https:\/\/i0.wp.com\/explore.techenutia.com\/wp-content\/uploads\/2021\/06\/a111sy-300x272.png?resize=300%2C272&#038;ssl=1\" \/><\/span><\/div>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">Where,<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt; text-align: center;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;0 \u2264 c*g(n) \u2264 f(n)&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">For all,&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">n \u2265 n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> , c &gt; 0 , n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0 <\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">\u2265 1<\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">2. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Theta (\u0398) Notation:<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Now, this notation decides whether the upper and lower bound of a given function (algorithm) are the same. The average running time of an algorithm is always between the lower bound and the upper bound. If the upper bound (O) and lower bound (\u03a9) gives the same result then the theta (\u0398) notation will also have the same rate of growth.<\/span><\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><img data-recalc-dims=\"1\" height=\"255\" width=\"300\" decoding=\"async\" border=\"0\" data-original-height=\"342\" data-original-width=\"402\" src=\"https:\/\/i0.wp.com\/explore.techenutia.com\/wp-content\/uploads\/2021\/06\/asy-2B-25281-2529-300x255.png?resize=300%2C255&#038;ssl=1\" \/><\/span><\/div>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;\"><span style=\"font-family: courier; font-size: large; white-space: pre-wrap;\">&nbsp;<\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">f(n)=O(g(n)) &amp;&amp; f(n)=\u03a9(g(n)) =&gt;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"> f(n)=\u0398(g(n))<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">Where,<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt; text-align: center;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;0 \u2264 c<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">*g(n) \u2264 f(n) \u2264 c<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">*g(n)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">For all,&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">n \u2265 n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> , c<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&gt; 0 , c<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&gt; 0 , n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">0 <\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">\u2265 1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">You may think that there are two more bounding notations called small-oh and small-omega where it is?<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">If you are curious about small-oh and small-omega, then you can <\/span><a href=\"https:\/\/www.slideshare.net\/rkumardmh\/little-o-and-little-omega\" style=\"text-decoration-line: none;\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">read here!<\/span><\/a><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Properties of Asymptotic Notations:<\/span><\/span><\/h2>\n<h3 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">1. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Transitivity:<\/span><\/span><\/h3>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">You know about transitive property? If not then<\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/Transitive_relation\" style=\"text-decoration-line: none;\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">click here!<\/span><\/a><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = O(g(n)) and g(n) = O(h(n)) then f(n) = O(h(n))<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = \u0398(g(n)) and g(n) = \u0398(h(n)) then f(n) = \u0398(h(n))<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = \u03a9(g(n)) and g(n) = \u03a9(h(n)) then f(n) = \u03a9(h(n))<\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<h3 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">2. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Reflexivity:<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><\/span><\/h3>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;&nbsp;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;&nbsp;&nbsp;You know about reflexive property? If not then<\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/Reflexive_relation\" style=\"text-decoration-line: none;\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">click here!<\/span><\/a><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = O(f(n)); f(n) = \u0398(f(n)); f(n) = \u03a9(f(n))<\/span><\/span><\/p>\n<h3 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">3. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Symmetry:<\/span><\/span><\/h3>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;&nbsp;&nbsp;&nbsp;You know about symmetry? If not then<\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/Symmetric_relation\" style=\"text-decoration-line: none;\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">click here!<\/span><\/a><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = \u0398(g(n)) if and only if g(n) = \u0398(f(n))<\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<h3 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">4. <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">Transpose Symmetry:<\/span><\/span><\/h3>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">&nbsp;&nbsp;&nbsp;&nbsp;You know about transpose symmetry? If not then<\/span><a href=\"http:\/\/iiitdm.ac.in\/old\/Faculty_Teaching\/Sadagopan\/pdf\/DAA\/new\/asymptotic-analysis.pdf\" style=\"text-decoration-line: none;\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">click here!<\/span><\/a><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">f(n) = \u0398(g(n)) if and only if g(n) = \u03a9(f(n))<\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">5<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">. If f(n) is in O(k.g(n)) for any constant k&gt;0 then f(n) is in O(g(n)).<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Example<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">:<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">If f(n) = O(5n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">) then we can write f(n) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">6<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">. If f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) is O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n)) and f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) is O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n)), then f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n)+f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) is in O(max(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n),O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n))).<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Example<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">:<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">If f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">) and f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">then, f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) + f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) = O(max(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">,n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">)) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">7<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">. If f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) is O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n)) and f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) is O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n)), then f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n).f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) is in O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n).O(g<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n))).<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Example<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">:<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">If f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">) and f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">then, f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">1<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n)<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">.<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">f<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: sub;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">(n) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">*n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">) = O(n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">5<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">)<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;<\/span><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Commonly Used Rate of Growths:<\/span><\/span><\/h2>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Increasing order of growth of time complexity.(top to down)<\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<div align=\"left\" dir=\"ltr\" style=\"margin-left: 0pt;\">\n<table style=\"border-collapse: collapse; border: none;\">\n<colgroup>\n<col width=\"300\"><\/col>\n<col width=\"300\"><\/col>\n<\/colgroup>\n<tbody>\n<tr style=\"height: 30.75pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Time Complexity<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Name<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 30.75pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">O(1)<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Constant<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 30.75pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">logn<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Logarithmic<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 30.75pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">n<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Linear<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 30.75pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">n.logn<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Linear Logarithmic<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 37.5pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2<\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Quadratic<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 37.5pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">3<\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Cubic<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 37.5pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">k<\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Polynomial (k&gt;3)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 51.75pt;\">\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">c<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">n<\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom: solid #000000 0.99609pt; border-color: rgb(0, 0, 0); border-left: solid #000000 0.99609pt; border-right: solid #000000 0.99609pt; border-style: solid; border-top: solid #000000 0.99609pt; border-width: 0.99609pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt; vertical-align: top;\">\n<p dir=\"ltr\" style=\"line-height: 1.44; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Exponential (c-constant)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><span style=\"font-family: courier; font-size: large;\"><\/p>\n<p><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Comparison of Functions:<\/span><\/span><\/h2>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">The decreasing order of growth of time complexity is-<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">2<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2n<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> &gt; n! &gt; 4<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">n<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> &gt; n<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">2<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> &gt; nlogn &gt; log(n!) &gt; n &gt; 2<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"vertical-align: super;\">logn<\/span><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> &gt; \u221alogn &gt; log(logn) &gt; 1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">If you want to plot these functions then <\/span><span><a href=\"https:\/\/www.desmos.com\/calculator\" style=\"text-decoration-line: none;\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">click<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\">here<\/span><\/a><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">!<\/span><\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">&nbsp;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"border: none; display: inline-block; height: 408px; overflow: hidden; width: 602px;\"><span style=\"font-family: courier; font-size: large;\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/A7KRygti1werVBARmXrdobDvpXPsvIEEd3JDueKkWoYiXgLskeNB1f-ILxXzTsQd3N7mHboeIHCf06FGhO9IiiDGDLEl8d78FpnXNc9SctEd50LJRySC3_QirCc6MyUdIx4SitOB=s16000\" style=\"margin-left: 0px; margin-top: 0px;\" \/><\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: courier; font-size: large;\"><br \/><\/span><\/p>\n<h2 dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">Conclusion:<\/span><\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\">This post is extremely important to understanding the algorithms. Why? Because, in every algorithm we will definitely be concerned about time and space complexity and this complexity can be calculated in terms of asymptotic notations.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;\">Resources<\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">: <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><a href=\"https:\/\/www.wikipedia.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Wikipedia<\/a><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> | <\/span><a href=\"https:\/\/www.desmos.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Desmos<\/a><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> | <\/span><a href=\"https:\/\/www.slideshare.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">slideshare<\/a><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"> <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: justify;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\"><span style=\"font-family: courier; font-size: large;\"><\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;\"><span style=\"font-family: courier; font-size: large;\"><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">If you find any problem related to this article, please comment below or contact me <\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;\"><a href=\"https:\/\/www.bitsofcs.xyz\/p\/contact-me.html\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a><\/span><span style=\"font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;\">.<\/span><\/span><\/p>\n<div style=\"clear: both;\"><\/div>\n<p><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you know? How can you analyze the performance of an algorithm?&nbsp; Performance Analysis: Performance analysis of an algorithm is the process of calculating time and space required by that algorithm. There are three types of analysis-&nbsp; 1. Worst Case: In the worst case, an algorithm performs the maximum number&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\">Read the post<span class=\"screen-reader-text\">Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":3220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-infinity-fitness","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.12 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS | ManOrInfinity<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS\" \/>\n<meta property=\"og:description\" content=\"Do you know? How can you analyze the performance of an algorithm?&nbsp; Performance Analysis: Performance analysis of an algorithm is the process of calculating time and space required by that algorithm. There are three types of analysis-&nbsp; 1. Worst Case: In the worst case, an algorithm performs the maximum number&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\" \/>\n<meta property=\"og:site_name\" content=\"ManOrInfinity\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-09T04:58:00+00:00\" \/>\n<meta name=\"author\" content=\"manorinfinity\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@manorinfinity\" \/>\n<meta name=\"twitter:site\" content=\"@manorinfinity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"manorinfinity\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\"},\"author\":{\"name\":\"manorinfinity\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"headline\":\"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS\",\"datePublished\":\"2021-06-09T04:58:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\"},\"wordCount\":1049,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"image\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Infinity Fitness\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\",\"url\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\",\"name\":\"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS | ManOrInfinity\",\"isPartOf\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2021-06-09T04:58:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/manorinfinity.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#website\",\"url\":\"https:\/\/manorinfinity.com\/blog\/\",\"name\":\"ManOrInfinity\",\"description\":\"Thrive towards greatness\",\"publisher\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/manorinfinity.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901\",\"name\":\"manorinfinity\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png\",\"contentUrl\":\"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png\",\"width\":282,\"height\":260,\"caption\":\"manorinfinity\"},\"logo\":{\"@id\":\"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Complex Problem Solver, Outloud Thinker, An Outstanding Writer, and a very curious human being\",\"sameAs\":[\"http:\/\/manorinfinity.com\"],\"url\":\"https:\/\/manorinfinity.com\/blog\/author\/manorinfinity\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS | ManOrInfinity","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/","og_locale":"en_US","og_type":"article","og_title":"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS","og_description":"Do you know? How can you analyze the performance of an algorithm?&nbsp; Performance Analysis: Performance analysis of an algorithm is the process of calculating time and space required by that algorithm. There are three types of analysis-&nbsp; 1. Worst Case: In the worst case, an algorithm performs the maximum number&#8230;","og_url":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/","og_site_name":"ManOrInfinity","article_published_time":"2021-06-09T04:58:00+00:00","author":"manorinfinity","twitter_card":"summary_large_image","twitter_creator":"@manorinfinity","twitter_site":"@manorinfinity","twitter_misc":{"Written by":"manorinfinity","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#article","isPartOf":{"@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/"},"author":{"name":"manorinfinity","@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"headline":"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS","datePublished":"2021-06-09T04:58:00+00:00","mainEntityOfPage":{"@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/"},"wordCount":1049,"commentCount":0,"publisher":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"image":{"@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage"},"thumbnailUrl":"","articleSection":["Infinity Fitness"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/","url":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/","name":"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS | ManOrInfinity","isPartOf":{"@id":"https:\/\/manorinfinity.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage"},"image":{"@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage"},"thumbnailUrl":"","datePublished":"2021-06-09T04:58:00+00:00","breadcrumb":{"@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/manorinfinity.com\/blog\/2021\/06\/09\/performance-analysis-and-asymptotic-notations-big-oh-big-omega-theta-notation-bitsofcs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/manorinfinity.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Performance Analysis and Asymptotic Notations | Big Oh | Big Omega | Theta Notation | BitsOfCS"}]},{"@type":"WebSite","@id":"https:\/\/manorinfinity.com\/blog\/#website","url":"https:\/\/manorinfinity.com\/blog\/","name":"ManOrInfinity","description":"Thrive towards greatness","publisher":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/manorinfinity.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/1172b1895b5eb7e49cc8640e49255901","name":"manorinfinity","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/","url":"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png","contentUrl":"http:\/\/manorinfinity.com\/wp-content\/uploads\/2023\/06\/moi-logo.png","width":282,"height":260,"caption":"manorinfinity"},"logo":{"@id":"https:\/\/manorinfinity.com\/blog\/#\/schema\/person\/image\/"},"description":"Complex Problem Solver, Outloud Thinker, An Outstanding Writer, and a very curious human being","sameAs":["http:\/\/manorinfinity.com"],"url":"https:\/\/manorinfinity.com\/blog\/author\/manorinfinity\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/comments?post=3179"}],"version-history":[{"count":0,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/posts\/3179\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/media?parent=3179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/categories?post=3179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manorinfinity.com\/blog\/wp-json\/wp\/v2\/tags?post=3179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}