<?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>DEV Community: Kondwani Chikwa</title>
    <description>The latest articles on DEV Community by Kondwani Chikwa (@kondwani_chikwa_875661345).</description>
    <link>https://dev.to/kondwani_chikwa_875661345</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%2F1714288%2F95376341-77f5-4e4c-bff0-24af7214146f.png</url>
      <title>DEV Community: Kondwani Chikwa</title>
      <link>https://dev.to/kondwani_chikwa_875661345</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kondwani_chikwa_875661345"/>
    <language>en</language>
    <item>
      <title>O NOTATION</title>
      <dc:creator>Kondwani Chikwa</dc:creator>
      <pubDate>Tue, 10 Sep 2024 18:24:57 +0000</pubDate>
      <link>https://dev.to/kondwani_chikwa_875661345/o-notation-4lg1</link>
      <guid>https://dev.to/kondwani_chikwa_875661345/o-notation-4lg1</guid>
      <description>&lt;p&gt;What is O notation?&lt;br&gt;
O notation describes the time an algorithm will take to complete. This is typically used to aid in measuring the efficiency of an algorithm. What do we term as efficient? How quickly an algorithm will process N number of input.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2vxg10my31hm0gdstx5.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2vxg10my31hm0gdstx5.PNG" alt="Image description" width="800" height="481"&gt;&lt;/a&gt;&lt;br&gt;
The above is sourced from &lt;a href="https://www.bigocheatsheet.com/" rel="noopener noreferrer"&gt;https://www.bigocheatsheet.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The image above shows the different types of behavior we can anticipate from different algorithms. Below is a brief breakdown:&lt;br&gt;
lets take n to be the size of the input:&lt;/p&gt;

&lt;p&gt;O(1) - Constant time, algorithm will complete the same time for n number of input.&lt;br&gt;
O(n) - Linear time, completion time increases as n increases.&lt;br&gt;
O(log n) - Logarithmic time, completion time increases to the logarithm of n input.&lt;br&gt;
O(n^2) - Quadratic time, completion time increases by the square of n input size.&lt;br&gt;
O(2^n) - Exponential time, completion time increases exponentially.&lt;br&gt;
O(n!) - Factorial time, steps to completion increases by the factorial of the input. n*(n-1)...*1&lt;br&gt;
O(nlogn) - Loglinear time, logn operations will occur n times.&lt;/p&gt;

</description>
      <category>datastructures</category>
      <category>algorithms</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
