<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=Example_3</id>
	<title>Example 3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=Example_3"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=Example_3&amp;action=history"/>
	<updated>2026-04-28T13:09:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=Example_3&amp;diff=780&amp;oldid=prev</id>
		<title>Mark: 2 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=Example_3&amp;diff=780&amp;oldid=prev"/>
		<updated>2008-11-03T05:07:59Z</updated>

		<summary type="html">&lt;p&gt;2 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====Example 3====&lt;br /&gt;
&lt;br /&gt;
Show that  &amp;quot;&amp;#039;&amp;#039;f(n) is Θ(n^2)&amp;#039;&amp;#039;&amp;quot; when  &amp;quot;&amp;#039;&amp;#039;f(n) = 5 * n(n + 100)&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To show that &amp;#039;&amp;#039;f(n) is Θ(n^2)&amp;#039;&amp;#039;, we have to show that &amp;#039;&amp;#039;f(n) = O(g(n))&amp;#039;&amp;#039; and &amp;#039;&amp;#039;f(n) = Ω(g(n))&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
We have already shown that &amp;#039;&amp;#039;f(n) = O(g(n))&amp;#039;&amp;#039; in example 1, so now we&amp;#039;ll focus on the second part.&lt;br /&gt;
&lt;br /&gt;
Firstly, notice that &amp;#039;&amp;#039;f(n) = Ω(g(n))&amp;#039;&amp;#039; is the same as &amp;#039;&amp;#039;g(n) = O(f(n))&amp;#039;&amp;#039;.  We will show that the second statement is true.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;( n^2 ) ≤ C * ( n ( n + 100 ) )&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If we choose C to be 2, then:  &amp;#039;&amp;#039;( n^2 ) ≤ 2 * ( n^2 + 100*n )&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Rearranging gives:  &amp;#039;&amp;#039;0 ≤ n^2 + 100*n&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
So the solutions to the equations are &amp;#039;&amp;#039;n ≥ 0&amp;#039;&amp;#039; and &amp;#039;&amp;#039;n ≥ 100&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;#039;&amp;#039;g(n) ≤ C * f(n)&amp;#039;&amp;#039;&amp;quot; is true when &amp;#039;&amp;#039;C = 2&amp;#039;&amp;#039; and &amp;#039;&amp;#039;n0 ≥ 0&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Since it is possible to find a set of constant values for &amp;#039;&amp;#039;C&amp;#039;&amp;#039; and &amp;#039;&amp;#039;n0&amp;#039;&amp;#039;, such that  &amp;#039;&amp;#039;g(n) ≤ C * f(n)&amp;#039;&amp;#039;  (when  &amp;#039;&amp;#039;n ≥ n0&amp;#039;&amp;#039; ), we show that  &amp;#039;&amp;#039;f(n) is O(n^2)&amp;#039;&amp;#039;.&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>