<?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: Shiv Dutt Jha</title>
    <description>The latest articles on DEV Community by Shiv Dutt Jha (@shivduttjha).</description>
    <link>https://dev.to/shivduttjha</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%2F793745%2Ff158bc12-60fa-49f1-adf8-938a22a57463.jpg</url>
      <title>DEV Community: Shiv Dutt Jha</title>
      <link>https://dev.to/shivduttjha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shivduttjha"/>
    <language>en</language>
    <item>
      <title>akra bazzi formula for calculating time complexity</title>
      <dc:creator>Shiv Dutt Jha</dc:creator>
      <pubDate>Fri, 14 Jan 2022 10:46:39 +0000</pubDate>
      <link>https://dev.to/shivduttjha/akra-bajji-formula-for-calculating-time-complexity-5cb9</link>
      <guid>https://dev.to/shivduttjha/akra-bajji-formula-for-calculating-time-complexity-5cb9</guid>
      <description>&lt;p&gt;The Akra-Bazzi method&lt;/p&gt;

&lt;p&gt;The master method does not apply to a recurrence such as&lt;br&gt;
T(n)=T(n/3)+T(2n/3)+O(n)&lt;/p&gt;

&lt;p&gt;In such case, we use another more powerful and general method known as Akra-Bazzi method. The Akra-Bazzi method solves the recurrence relation of the form&lt;/p&gt;

&lt;p&gt;T(n)=∑i=1kaiT(bin)+f(n)&lt;/p&gt;

&lt;p&gt;where,&lt;/p&gt;

&lt;p&gt;ai&amp;gt;0 is a constant for i≤i≤k&lt;br&gt;
bi∈(0,1) is a constant for 1≤i≤k&lt;br&gt;
k≥1 is a constant and,&lt;br&gt;
f(n) is non-negative function&lt;br&gt;
The solution of recurrence given in (2) is,&lt;br&gt;
T(n)=Θ(np(1+∫n1f(u)up+1du))&lt;/p&gt;

&lt;p&gt;Provided,&lt;br&gt;
∑i=1kaibpi=1 where p is a unique real number.&lt;/p&gt;

&lt;p&gt;Example 1: Consider a recurrence,&lt;br&gt;
T(n)=2T(n/4)+3T(n/6)+Θ(nlogn)&lt;br&gt;
For this recurrence, a1=2,b1=1/4,a2=3,b2=1/6,f(n)=nlogn. The value of p can be calculated as,&lt;br&gt;
a1bp1+a2bp2=2×(1/4)p+3×(1/6)p=1&lt;/p&gt;

&lt;p&gt;p=1 satisfies the above equation.&lt;/p&gt;

&lt;p&gt;The solution is&lt;/p&gt;

&lt;p&gt;T(n)=Θ(np(1+∫n1f(u)up+1du))=Θ(n(1+∫n1uloguu2du))=Θ(n(1+log2n2))=Θ(nlog2n)&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Form Validation Using html and javascript</title>
      <dc:creator>Shiv Dutt Jha</dc:creator>
      <pubDate>Fri, 14 Jan 2022 10:43:10 +0000</pubDate>
      <link>https://dev.to/shivduttjha/form-validation-using-html-and-javascript-1fd6</link>
      <guid>https://dev.to/shivduttjha/form-validation-using-html-and-javascript-1fd6</guid>
      <description>&lt;p&gt;&lt;a href="https://codepen.io/Shivay7992/project/editor/ZKQLKJ"&gt;https://codepen.io/Shivay7992/project/editor/ZKQLKJ&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
  </channel>
</rss>
