<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ryan Heo</title>
    <description>The latest articles on Forem by Ryan Heo (@ryanheo).</description>
    <link>https://forem.com/ryanheo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2163251%2Fe8a665c7-336a-4f24-916a-b01042b9efee.JPG</url>
      <title>Forem: Ryan Heo</title>
      <link>https://forem.com/ryanheo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ryanheo"/>
    <language>en</language>
    <item>
      <title>[Algorithm] Big O</title>
      <dc:creator>Ryan Heo</dc:creator>
      <pubDate>Fri, 20 Dec 2024 21:17:59 +0000</pubDate>
      <link>https://forem.com/ryanheo/algorithm-big-o-1g7h</link>
      <guid>https://forem.com/ryanheo/algorithm-big-o-1g7h</guid>
      <description>&lt;h2&gt;
  
  
  Time Complexity
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Big O
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Best case scenario (Omega)&lt;/li&gt;
&lt;li&gt;Average case scenario (theta)&lt;/li&gt;
&lt;li&gt;Worst case scenario (O)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We always talk about the worst case, Big O.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. O(n)
&lt;/h4&gt;

&lt;p&gt;Proportional Graph&lt;br&gt;
Drop Constants&lt;/p&gt;

&lt;h4&gt;
  
  
  2. O(n^2)
&lt;/h4&gt;

&lt;p&gt;Exponential Graph&lt;br&gt;
Drop Non-dominant&lt;/p&gt;

&lt;h4&gt;
  
  
  3. O(1)
&lt;/h4&gt;

&lt;p&gt;Flat Graph&lt;/p&gt;

&lt;h4&gt;
  
  
  4. O(log(n))
&lt;/h4&gt;

&lt;p&gt;Efficient than O(n) and O(n^2)&lt;br&gt;
Quite Flat&lt;/p&gt;

&lt;h4&gt;
  
  
  5. O(n log(n))
&lt;/h4&gt;

&lt;p&gt;Some Sorting Algorithm&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>complexity</category>
    </item>
  </channel>
</rss>
