<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1130898632109206627</atom:id><lastBuildDate>Wed, 28 Aug 2024 12:15:44 +0000</lastBuildDate><category>Codes</category><category>Fibonacci</category><category>Octal</category><category>Binary</category><category>C#</category><category>Hex</category><category>Assembly Language</category><category>Automata</category><category>Basic</category><category>C</category><category>C++</category><category>CFG to PDA</category><category>Conversion</category><category>Decimal</category><category>Father of Computer Science</category><category>Pumping Lema</category><category>Regular Languages</category><category>Video</category><title>All Assignments</title><description>codes,assignments,portfolio</description><link>http://bscs-student.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-5734151230740963711</guid><pubDate>Tue, 22 Sep 2009 15:09:00 +0000</pubDate><atom:updated>2009-09-22T08:21:22.945-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CFG to PDA</category><category domain="http://www.blogger.com/atom/ns#">Video</category><title>How to Convert CFG to PDA</title><description>Sample here :&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.cse.msu.edu/%7Etorng/Classes/Archives/cps360.98spring/Examples/CFGtoPDA/tsld001.htm&quot;&gt;&lt;/a&gt;&lt;blockquote&gt;&lt;a href=&quot;http://www.cse.msu.edu/%7Etorng/Classes/Archives/cps360.98spring/Examples/CFGtoPDA/tsld001.htm&quot;&gt;http://www.cse.msu.edu/~torng/Classes/Archives/cps360.98spring/Examples/CFGtoPDA/tsld001.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;watch: &lt;span style=&quot;font-weight: bold;&quot;&gt;alan turings documentary&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/g7_WzNzHwJY&amp;amp;hl=en&amp;amp;fs=1&amp;amp;&quot;&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;embed src=&quot;http://www.youtube.com/v/g7_WzNzHwJY&amp;amp;hl=en&amp;amp;fs=1&amp;amp;&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</description><link>http://bscs-student.blogspot.com/2009/09/how-to-convert-cfg-to-pda-sample.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-5646021452820754255</guid><pubDate>Sun, 20 Sep 2009 13:42:00 +0000</pubDate><atom:updated>2009-09-20T06:44:39.420-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Fibonacci</category><title>Fibonacci in C#</title><description>It is a pattern when you add the 2 previous numbers together and to get the next number. And so on.&lt;br /&gt;&lt;br /&gt;   1. 1. 1. 2. 3. 5. 8. 13. 21. 34. 55. 89. 144. And so on.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;int a = 0;&lt;br /&gt;int b = 1;&lt;br /&gt;int c = 0;&lt;br /&gt;int n = 46; //to the N&#39;th fibonacci No.&lt;br /&gt;&lt;br /&gt;Console.WriteLine(&quot;Which Fibonacci Number do you want?&quot;);&lt;br /&gt;&lt;br /&gt;n = Convert.ToInt16(Console.ReadLine());&lt;br /&gt;&lt;br /&gt;if (n != 1)&lt;br /&gt;{&lt;br /&gt;        for (int i = 1; i &lt;= n; i++)&lt;br /&gt;        {&lt;br /&gt;                c = a + b;&lt;br /&gt;                a = b;&lt;br /&gt;                b = c;&lt;br /&gt;        }&lt;br /&gt;        Console.WriteLine(&quot;the {0}th Fibonacci number is {1}&quot;, n, a);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;        Console.WriteLine(&quot;the {0}st Fibonacci number is 1&quot;, n);&lt;br /&gt;}&lt;br /&gt;Console.ReadKey();&lt;br /&gt;&lt;/PRE&gt;</description><link>http://bscs-student.blogspot.com/2009/09/fibonacci-in-c_2756.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-2384209457217918167</guid><pubDate>Sun, 20 Sep 2009 13:41:00 +0000</pubDate><atom:updated>2009-09-20T06:45:01.327-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C++</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Fibonacci</category><title>Fibonacci in C++</title><description>It is a pattern when you add the 2 previous numbers together and to get the next number. And so on.&lt;br /&gt;&lt;br /&gt;   1. 1. 1. 2. 3. 5. 8. 13. 21. 34. 55. 89. 144. And so on.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#include &lt; iostream. h &gt;&lt;br /&gt;using namespace std;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;        int number[30] = {1, 1, 0};&lt;br /&gt;        int total;&lt;br /&gt;        for(int i = 2; i &lt; 30; i++)&lt;br /&gt;        {&lt;br /&gt;                number[i] = number[i - 1] + number[i - 2];&lt;br /&gt;                cout &lt;&lt; number[i] &lt;&lt; endl;&lt;br /&gt;        }&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</description><link>http://bscs-student.blogspot.com/2009/09/fibonacci-in-c_20.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-3094279693118637938</guid><pubDate>Sun, 20 Sep 2009 13:40:00 +0000</pubDate><atom:updated>2009-09-20T06:45:32.091-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Fibonacci</category><title>Fibonacci in C</title><description>It is a pattern when you add the 2 previous numbers together and to get the next number. And so on.&lt;br /&gt;&lt;br /&gt;   1. 1. 1. 2. 3. 5. 8. 13. 21. 34. 55. 89. 144. And so on.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#include &lt; stdio.h &gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;        int i, x;&lt;br /&gt;        int a = 0;&lt;br /&gt;        int b = 1;&lt;br /&gt;&lt;br /&gt;        printf(&quot;%i\n%i\n&quot;, a, b);&lt;br /&gt;        for(i = 2; i &lt; 100; i++)&lt;br /&gt;        {&lt;br /&gt;                x = a;&lt;br /&gt;                a = b;&lt;br /&gt;                b = x + b;&lt;br /&gt;                printf(&quot;%i\n&quot;, b);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</description><link>http://bscs-student.blogspot.com/2009/09/fibonacci-in-c.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-6073723233448158402</guid><pubDate>Sun, 20 Sep 2009 13:40:00 +0000</pubDate><atom:updated>2009-09-20T06:46:07.195-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Basic</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Fibonacci</category><title>Fibonacci in Basic</title><description>It is a pattern when you add the 2 previous numbers together and to get the next number. And so on.&lt;br /&gt;&lt;br /&gt;   1. 1. 1. 2. 3. 5. 8. 13. 21. 34. 55. 89. 144. And so on.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;BASIC&lt;/span&gt;&lt;br /&gt;fib0=0&lt;br /&gt;&lt;br /&gt;fib1=1&lt;br /&gt;&lt;br /&gt;FOR cnt= 1 TO n&lt;br /&gt;&lt;br /&gt; fib2=fib1+fib0&lt;br /&gt;&lt;br /&gt; PRINT fib2&lt;br /&gt;&lt;br /&gt; fib0=fib1&lt;br /&gt;&lt;br /&gt; fib1=fib2&lt;br /&gt;&lt;br /&gt;NEXT cnt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/* fib2 is the sum of the two preceeding terms.*/</description><link>http://bscs-student.blogspot.com/2009/09/fibonacci-in-basic.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-8535568068512863636</guid><pubDate>Thu, 30 Jul 2009 10:42:00 +0000</pubDate><atom:updated>2009-09-20T06:46:41.395-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Hex</category><category domain="http://www.blogger.com/atom/ns#">Octal</category><title>Hex to Oct Vice Versa Converter Using c#</title><description>&lt;pre&gt;&lt;br /&gt;/*First u must create a Ui*/&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://i143.photobucket.com/albums/r139/jimaika/untitled-6.jpg&quot; /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;&lt;br /&gt;namespace WindowsFormsApplication1&lt;br /&gt;{&lt;br /&gt;  public partial class Form1 : Form&lt;br /&gt;  {&lt;br /&gt;      public Form1()&lt;br /&gt;      {&lt;br /&gt;        InitializeComponent();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      private void button1_Click(object sender, EventArgs e)&lt;br /&gt;      {&lt;br /&gt;       int x, flag = 0;&lt;br /&gt;       for (x = 0; x &lt;&gt; 97 &amp;amp;&amp;amp; textBox1.Text[x]&lt;br /&gt; &lt;&gt; 64 &amp;amp;&amp;amp; textBox1.Text[x] &lt; flag =&quot; 1;&quot; &lt;br /&gt;flag =&quot;=&quot; text = &quot;&quot; val =&quot; 0,&quot; power =&quot; &lt;br /&gt;(textBox1.TextLength&quot; str = &quot;&quot; str2 = &quot;&quot; i =&quot; 0;&quot;&lt;br /&gt; num =&quot; val;&quot; rem =&quot; num&quot; num =&quot; num&quot; rem =&quot;=&quot; &lt;br /&gt;rem =&quot;=&quot; rem =&quot;=&quot; rem =&quot;=&quot; rem =&quot;=&quot; rem =&quot;=&quot; i =&quot; &lt;br /&gt;str.Length&quot;&gt;= 0; i--)&lt;br /&gt;              {&lt;br /&gt;                  str2 += str[i];&lt;br /&gt;              }&lt;br /&gt;              if (textBox1.Text == &quot;0&quot;)&lt;br /&gt;                  textBox2.Text = &quot;0&quot;;&lt;br /&gt;&lt;br /&gt;              textBox2.Text = textBox2.Text + str2;&lt;br /&gt;          }&lt;br /&gt;          else&lt;br /&gt;          {&lt;br /&gt;MessageBox.Show(&quot;Value should not have digits like 8, 9 or any alphabet!&quot;);&lt;br /&gt;              textBox1.Text = &quot;&quot;;&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      private void button2_Click(object sender, EventArgs e)&lt;br /&gt;      {&lt;br /&gt;          textBox4.Text = &quot;&quot;;&lt;br /&gt;          int val = 0, power = (textBox3.TextLength - 1), i;&lt;br /&gt;          int num, rem;&lt;br /&gt;          String str = &quot;&quot;, str2 = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     for (i = 0; i &lt; num =&quot; val;&quot; rem =&quot; (int)num&quot; num =&quot; &lt;br /&gt;(int)num&quot; i =&quot; str.Length&quot;&gt;= 0; i--)&lt;br /&gt;          {&lt;br /&gt;              str2 += str[i];&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;    textBox4.Text = textBox4.Text + str2;  &lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;   private void Form1_Load(object sender, EventArgs e)&lt;br /&gt;      {&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description><link>http://bscs-student.blogspot.com/2009/07/hex-to-oct-vice-versa-converter-using-c.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-7816767107107944415</guid><pubDate>Wed, 29 Jul 2009 04:44:00 +0000</pubDate><atom:updated>2009-09-20T06:47:01.973-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Assembly Language</category><category domain="http://www.blogger.com/atom/ns#">Fibonacci</category><title>Fibonacci in Assembly Language</title><description>It is a pattern when you add the 2 previous numbers together and to get the next number. And so on.&lt;br /&gt;&lt;br /&gt;   1. 1. 1. 2. 3. 5. 8. 13. 21. 34. 55. 89. 144. And so on.&lt;br /&gt;&lt;PRE&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;ASSEMBLY&lt;/span&gt;&lt;br /&gt;.data&lt;br /&gt;fibonacci DWORD 100 dup (0)&lt;br /&gt;.code&lt;br /&gt;mov edx,offset fibonacci&lt;br /&gt;mov eax,1&lt;br /&gt;mov ebx,1&lt;br /&gt;mov ecx,49&lt;br /&gt;@@:&lt;br /&gt;mov DWORD PTR [edx],eax&lt;br /&gt;mov DWORD PTR [edx+4],ebx&lt;br /&gt;add eax,ebx&lt;br /&gt;add ebx,eax&lt;br /&gt;add edx,8&lt;br /&gt;sub ecx,1&lt;br /&gt;jnz @B&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description><link>http://bscs-student.blogspot.com/2009/07/fibonacci.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-5959638522541658285</guid><pubDate>Tue, 30 Jun 2009 10:14:00 +0000</pubDate><atom:updated>2009-09-20T06:47:24.848-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Binary</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Octal</category><title>Octal to Binary number converter</title><description>&lt;pre&gt;&lt;br /&gt;#include &lt; iostream.h &gt;&lt;br /&gt;void main ()&lt;br /&gt;{&lt;br /&gt; const int converts = 10;&lt;br /&gt;&lt;br /&gt;  for (int ctr = 1;ctr &lt;= converts; ctr++)&lt;br /&gt;  {&lt;br /&gt; int dec = 0, mult = 1, prod = 0, rem, oct, px, chk;&lt;br /&gt; bool isoctal = true;&lt;br /&gt; &lt;br /&gt; cout &lt;&lt; &quot;Enter a valid Octal Number: &quot;;&lt;br /&gt; cin &gt;&gt; oct;&lt;br /&gt; &lt;br /&gt; px = oct;&lt;br /&gt;&lt;br /&gt; while (px &gt; 0)&lt;br /&gt; {&lt;br /&gt;  chk = px % 10;&lt;br /&gt;  if (chk &gt;= 8)&lt;br /&gt;  {&lt;br /&gt;   isoctal = false;&lt;br /&gt;   cout &lt;&lt; &quot;Invalid Octal Number\n\n&quot;;&lt;br /&gt;   break;&lt;br /&gt;  }&lt;br /&gt;  px = px / 10;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; if (isoctal)&lt;br /&gt; {&lt;br /&gt; while (oct &gt; 0)&lt;br /&gt; {&lt;br /&gt;  rem = oct % 10;&lt;br /&gt;  prod = rem * mult;&lt;br /&gt;  dec = dec + prod;&lt;br /&gt;  mult = mult * 8;&lt;br /&gt;  oct = oct / 10;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; mult = 1;&lt;br /&gt;&lt;br /&gt; while (dec &gt; 0)&lt;br /&gt; {&lt;br /&gt;  rem = dec % 2;&lt;br /&gt;  prod = rem * mult;&lt;br /&gt;  oct = oct + prod;&lt;br /&gt;  mult = mult * 10;&lt;br /&gt;  dec = dec / 2;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; cout &lt;&lt; &quot;The Binary equivalent is: &quot; &lt;&lt; oct &lt;&lt; &quot;\n\n&quot;;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;source: http://www.planetsourcecode.com/</description><link>http://bscs-student.blogspot.com/2009/06/octal-to-binary-number-converter.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-7339567293773785822</guid><pubDate>Tue, 30 Jun 2009 09:06:00 +0000</pubDate><atom:updated>2009-09-20T06:47:37.778-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Pumping Lema</category><title>Pumping lemma for regular languages</title><description>In the theory of formal languages, the pumping lemma for regular languages describes an essential property of all regular languages. Informally, it says that all sufficiently long words in a regular language may be pumped - that is, have a middle section of the word repeated an arbitrary number of times - to produce a new word which also lies within the same language.&lt;br /&gt;&lt;br /&gt;The pumping lemma was first articulated by Y. Bar-Hillel, M. Perles, E. Shamir in 1961.It is useful for disproving the regularity of a specific language in question. It is one of a few pumping lemmas, each with a similar purpose.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Formal statement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let L be a regular language. Then there exists an integer p ≥ 1 depending only on L such that every string w in L of length at least p (p is called the &quot;pumping length&quot;) can be written as w = xyz (i.e., w can be divided into three substrings), satisfying the following conditions:&lt;br /&gt;&lt;br /&gt; 1. |y| ≥ 1&lt;br /&gt; 2. |xy| ≤ p&lt;br /&gt; 3. for all i ≥ 0, xyiz ∈ L&lt;br /&gt;&lt;br /&gt;y is the substring that can be pumped (removed or repeated any number of times, and the resulting string is always in L). (1) means the loop y to be pumped must be of length at least one; (2) means the loop must occur within the first p characters. There is no restriction on x and z.&lt;br /&gt;&lt;img src=&quot;http://upload.wikimedia.org/math/4/3/d/43d3f742e91c2b954c2bef40cb7517db.png&quot; width=&quot;600&quot;/&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Informal statement and explanation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The pumping lemma describes an essential property of regular languages. It says that a word w of the language L with length of at least m, (where m is a constant, called the pumping length, depending only on the language L) may be split into three substrings, w = xyz, such that the middle portion, y (which must not be empty), can be repeated an arbitrary number of times (including zero times, which removes it) yielding a string that is still in L. This process of repetition is known as &quot;pumping&quot;. Moreover, the pumping lemma guarantees that the length of xy will be at most m, imposing a limit on the ways in which w may be split. Note that finite languages satisfy the pumping lemma trivially by having m equal to the maximum string length in L plus one.&lt;br /&gt;&lt;br /&gt;Use of lemma&lt;br /&gt;&lt;br /&gt;The pumping lemma is often used to prove that a particular language is non-regular: a proof by contradiction (of the language&#39;s regularity) may consist of exhibiting a word (of the required length) in the language which lacks the property outlined in the pumping lemma.&lt;br /&gt;&lt;br /&gt;For example the language L = {anbn : n ≥ 0} over the alphabet Σ = {a, b} can be shown to be non-regular as follows. Let w, x, y, z, p, and i be as stated in the pumping lemma above. Let w in L be given by w = apbp. By the pumping lemma, there must be some decomposition w = xyz with |xy| ≤ p, |y| ≥ 1 such that xyiz in L for every i ≥ 0. If we let |xy|=p and |z|=p, then xy is the first half of w, consisting of p consecutive instances of the letter a. Because |y| ≥ 1, it contains at least one instance of the letter a and xy2z has more instances of the letter a than the letter b. Therefore xy2z is not in L (note that any value of i ≠ 1 will give us a contradiction). We have reached a contradiction because, in this case, the pumped word does not belong to the language L. Therefore, the assumption that L is regular must be incorrect. Hence L is not regular.&lt;br /&gt;&lt;br /&gt;The proof that the language of balanced (i.e., properly nested) parentheses is not regular follows the same idea. Given p, there is a string of balanced parentheses that begins with more than p left parentheses, so that y will consist entirely of left parentheses. By repeating y, we can produce a string that does not contain the same number of left and right parentheses, and so they cannot be balanced.&lt;br /&gt;source: wikipidea</description><link>http://bscs-student.blogspot.com/2009/06/pumping-lemma-for-regular-languages.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-9181032916243742810</guid><pubDate>Thu, 25 Jun 2009 13:41:00 +0000</pubDate><atom:updated>2009-09-20T06:48:05.799-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Binary</category><category domain="http://www.blogger.com/atom/ns#">Codes</category><category domain="http://www.blogger.com/atom/ns#">Conversion</category><category domain="http://www.blogger.com/atom/ns#">Decimal</category><category domain="http://www.blogger.com/atom/ns#">Hex</category><category domain="http://www.blogger.com/atom/ns#">Octal</category><title>Decimal to Binary, Octal and HEX converter</title><description>to be exact here :&lt;br /&gt;&lt;a href=&quot;http://www.c.happycodings.com/Beginners_Lab_Assignments/code18.html&quot;&gt;&lt;br /&gt;http://www.c.happycodings.com/Beginners_Lab_Assignments/code18.html&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#include&lt; stdio.h &gt;&lt;br /&gt;#include&lt; conio.h &gt;&lt;br /&gt;#define MAX 79&lt;br /&gt;#define ESC 27&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;   char res,r;&lt;br /&gt;   int i,k=0,y;&lt;br /&gt;   long j=0,l=0,o=0;&lt;br /&gt;   textcolor(15);&lt;br /&gt;   for(i=0;i&lt;5000;i++)&lt;br /&gt;      cprintf(&quot; &quot;);&lt;br /&gt;   while(1)&lt;br /&gt;   {&lt;br /&gt;      clrscr();&lt;br /&gt;      printf(&quot;Enter Any Number To Be Converted : &quot;);&lt;br /&gt;      scanf(&quot;%ld&quot;,&amp;j);&lt;br /&gt;      l=j;&lt;br /&gt;      o=l;&lt;br /&gt;      k=0;&lt;br /&gt;      if(j&gt;2145555550)&lt;br /&gt;      {&lt;br /&gt;         textcolor(4);&lt;br /&gt;         gotoxy(15,5);&lt;br /&gt;         cprintf(&quot;The Number Is Greater Than Range&quot;);&lt;br /&gt;         textcolor(15);&lt;br /&gt;         getch();&lt;br /&gt;         goto end;&lt;br /&gt;      }&lt;br /&gt;      else&lt;br /&gt;      {&lt;br /&gt;         gotoxy(1,6);&lt;br /&gt;         printf(&quot;Binary Equivalent:-&quot;);&lt;br /&gt;         y=MAX;&lt;br /&gt;         while(j&gt;0)&lt;br /&gt;         {&lt;br /&gt;            k=j%2;&lt;br /&gt;            j=j/2;&lt;br /&gt;            gotoxy(y,6);&lt;br /&gt;            y--;&lt;br /&gt;            printf(&quot;%d&quot;,k);&lt;br /&gt;         }&lt;br /&gt;         gotoxy(1,8);&lt;br /&gt;         printf(&quot;Hexadecimal Equivalent:- &quot;);&lt;br /&gt;         y=MAX;&lt;br /&gt;         while(l&gt;0)&lt;br /&gt;         {&lt;br /&gt;            k=l%16;&lt;br /&gt;            l=l/16;&lt;br /&gt;            gotoxy(y,8);&lt;br /&gt;            y--;&lt;br /&gt;            if(k&lt;=9)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;%d&quot;,k);&lt;br /&gt;            }&lt;br /&gt;            if(k==10)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;A&quot;);&lt;br /&gt;            }&lt;br /&gt;            if(k==11)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;B&quot;);&lt;br /&gt;            }&lt;br /&gt;            if(k==12)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;C&quot;);&lt;br /&gt;            }&lt;br /&gt;            if(k==13)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;D&quot;);&lt;br /&gt;            }&lt;br /&gt;            if(k==14)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;E&quot;);&lt;br /&gt;            }&lt;br /&gt;            if(k==15)&lt;br /&gt;            {&lt;br /&gt;               printf(&quot;F&quot;);&lt;br /&gt;            }&lt;br /&gt;         }&lt;br /&gt;         gotoxy(1,10);&lt;br /&gt;         printf(&quot;Octal Equivalent:- &quot;);&lt;br /&gt;         y=MAX;&lt;br /&gt;         while(o&gt;0)&lt;br /&gt;         {&lt;br /&gt;            k=o%8;&lt;br /&gt;            o=o/8;&lt;br /&gt;            gotoxy(y,10);&lt;br /&gt;            y--;&lt;br /&gt;            printf(&quot;%d&quot;,k);&lt;br /&gt;         }&lt;br /&gt;      }&lt;br /&gt;      gotoxy(15,25);&lt;br /&gt;      printf(&quot;Press Any Key To Continue , ESC To Exit&quot;);&lt;br /&gt;      res=getch();&lt;br /&gt;      if(res==ESC)&lt;br /&gt;      {&lt;br /&gt;         break;&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;   end:&lt;br /&gt;   textcolor(7);&lt;br /&gt;   for(i=0;i&lt;5000;i++)&lt;br /&gt;      cprintf(&quot; &quot;);&lt;br /&gt;   clrscr();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description><link>http://bscs-student.blogspot.com/2009/06/decimal-to-binary-octal-and-hex.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-7565445025298972268</guid><pubDate>Wed, 24 Jun 2009 05:16:00 +0000</pubDate><atom:updated>2009-09-20T06:48:21.750-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Regular Languages</category><title>Regular Languages</title><description>1. L((a+b)*a)= L(a+b)*&lt;br /&gt;             = {a,b}*&lt;br /&gt;             = {e,a,b,aa,ab,ba,bb,...}&lt;br /&gt;   L((a+b)*a)={a,b}*,{a}&lt;br /&gt;             ={a,aa,ba,aaa,aba,...}&lt;br /&gt;             {w  є {a,b}* / w ends in a}&lt;br /&gt;_______________________________________&lt;br /&gt;&lt;br /&gt;2 . L(a*b*) =  L(a*) L(b*)&lt;br /&gt;L(a*) = {e,  a, aa, aaa, aaaa, …}&lt;br /&gt;L(b*) = {e,  b, bb, bbb, bbbb, …}&lt;br /&gt;L(a*) L(b*) = {e,  a, aa, aaa, aaaa, …}&lt;br /&gt;            = {e,  b, bb, bbb, bbbb, …}&lt;br /&gt;other option:&lt;br /&gt;if&lt;br /&gt;L(a*b*) = L(a*)L(b*)&lt;br /&gt;L(a*) = {e,a,aa,aaa,....}&lt;br /&gt;L(b*) = {e,b,bb,bbb,....}&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;L(a*)L(b*)={ee,eb,ebb,ebbb,.....,ae,ab,abb,....}&lt;br /&gt;daun sort nimo lexicographic.&lt;br /&gt;&lt;br /&gt;therefore ang first five kay:&lt;br /&gt;L(a*)L(b*)={e,a,b,aa,ab}&lt;br /&gt;            &lt;br /&gt;_______________________________________&lt;br /&gt;&lt;br /&gt;3.L(00 + 11) = L(00) U L(11)&lt;br /&gt;             = {00, 11}&lt;br /&gt;_______________________________________&lt;br /&gt;&lt;br /&gt;4.L(1(0+1)0) = L(1) L(0+1) L(0)&lt;br /&gt;                       = 1 (L(0)UL(1)) 0&lt;br /&gt;                       = 1 {0,1} 0&lt;br /&gt;                       = {100, 110}&lt;br /&gt;_______________________________________&lt;br /&gt;&lt;br /&gt;5.L((0+1)* 10(0+1)*) = L((0+1)*)  L (10)+ L((0+1)*)&lt;br /&gt;=L(0+1)* L(10) L(0+1)*&lt;br /&gt;=L(0) U L(1)* L(10) (L(0) U L(1))*&lt;br /&gt;=({0} U {1})* {10} ({0} U {1})*&lt;br /&gt;={0,1}* {10} {0,1}*&lt;br /&gt;={e,0,1,...} {10} {e,0,1,...}&lt;br /&gt;={e.10.e,e.10.0,e.10.1,...,0.10.e,0.10.0,0.10.1,...,1.10.e,1.10.0,1.10.1,...}&lt;br /&gt;={10,100,101,010,110,...}&lt;br /&gt;={10,010,100,101,110,...}&lt;br /&gt;_______________________________________&lt;br /&gt;main credits to: &lt;a href=http://ultimatesupremacy.blogspot.com&gt;NR&lt;/a&gt;</description><link>http://bscs-student.blogspot.com/2009/06/regular-languages-assignment.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1130898632109206627.post-7809127564312874530</guid><pubDate>Thu, 18 Jun 2009 12:13:00 +0000</pubDate><atom:updated>2009-09-20T06:48:42.798-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Automata</category><category domain="http://www.blogger.com/atom/ns#">Father of Computer Science</category><title>Automata</title><description>&lt;span style=&quot;color:black;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;1. Who is the Father of Computer Science?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 0);&quot;&gt;Alan Turing, the Father of Computer Science&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center; color: rgb(0, 0, 0);&quot;&gt;&lt;img src=&quot;http://www.codinghorror.com/blog/images/alan-turing-photo-1.jpg&quot; /&gt;&lt;br /&gt;Not only is Alan Turing the father of all modern computer science, he also was the single individual most responsible for breaking the Enigma code during World War II, and he laid the foundation for artificial intelligence by posing the Turing Test in 1950.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center; color: rgb(0, 0, 0);&quot;&gt;Unfortunately, Alan Turing was also terribly persecuted for the &quot;crime&quot; of being a homosexual. He was arrested in 1952 for having sex with another man. It pains me greatly to read about the degrading and inhumane treatment one of our greatest scientific minds was subjected to. Alan Turing ultimately committed suicide not long afterwards at the age of 42.&lt;br /&gt;&lt;br /&gt;The &quot;nobel prize of computing&quot; was founded in Turing&#39;s name in 1966. Reading the list of Turing Award recipients is humbling indeed, a reminder of not only how far we&#39;ve come, but how far we have to go.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;2: &lt;span style=&quot;font-weight: bold;&quot;&gt;Automata/Automation&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color:black;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;The Automata word has come out from Automatic,And Automata is a machine language&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;color:black;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;In &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Theoretical_computer_science&quot; title=&quot;Theoretical computer science&quot;&gt;theoretical computer science&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;, &lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0);&quot;&gt;automata theory&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; is the study of &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Abstract_machine&quot; title=&quot;Abstract machine&quot;&gt;abstract machines&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; and problems which they are able to solve. Automata theory is closely related to &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Formal_language_theory&quot; title=&quot;Formal language theory&quot;&gt;formal language theory&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; as the &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Automata&quot; title=&quot;Automata&quot;&gt;automata&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; are often classified by the class of &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Formal_language&quot; title=&quot;Formal language&quot;&gt;formal languages&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; they are able to recognize.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color:black;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;An automaton is a mathematical model for a &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Finite_state_machine&quot; title=&quot;Finite state machine&quot; class=&quot;mw-redirect&quot;&gt;finite state machine&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; (FSM). A FSM is a machine that, given an input of symbols, &quot;&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0);&quot;&gt;jumps&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&quot;, or &lt;/span&gt;&lt;i style=&quot;color: rgb(0, 0, 0);&quot;&gt;transitions&lt;/i&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;, through a series of states according to a &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Transition_function&quot; title=&quot;Transition function&quot;&gt;transition function&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; (which can be expressed as a table). In the common &quot;&lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://en.wikipedia.org/wiki/Mealy_machine&quot; title=&quot;Mealy machine&quot;&gt;Mealy&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&quot; variety of FSMs, this transition function tells the automaton which state to go to next given a current state and a current symbol.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;color:black;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;1. To introduce formal concepts of automata, grammars and languages.&lt;br /&gt;2. To introduce ideas of computability and decidability.&lt;br /&gt;3. To illustrate the importance of automata, formal language theory and general models  of computation in Computer Science and Artificial Intelligence.&lt;br /&gt;&lt;br /&gt;3. Applications of Automata&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt; Cellular automata, for the modelling of physical systems &lt;/li&gt;&lt;li&gt; Weighted automata, for image processing &lt;/li&gt;&lt;li&gt; Learning automata, for artificial intelligence applications &lt;/li&gt;&lt;li&gt; Symmetrical difference NFAs, for random number generation, cryptology and circuit design. &lt;/li&gt;&lt;li&gt; Chart-based automata, for object oriented modelling (ROOM), GUI  design and test case generation, embedded system design, control systems. &lt;/li&gt;&lt;li&gt; Automata in pattern matching &lt;/li&gt;&lt;li&gt; Automata in graphics animation &lt;/li&gt;&lt;li&gt; Automata in compiling and NLP &lt;/li&gt;&lt;li&gt; Automata in protocol implementation &lt;/li&gt;&lt;li&gt; Automata in Operations Research (max,+), (min,+) &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;source:&lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0);&quot; href=&quot;http://www.codinghorror.com/&quot;&gt;http://www.codinghorror.com&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;www.wikipedia.com&quot;&gt;www.wikipedia.com&lt;/a&gt;</description><link>http://bscs-student.blogspot.com/2009/06/automata.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>