<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS606 Assignment 3 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">CS606 – Compiler Construction<br />
Assignment # 03<br />
Fall 2019	<br />
Total marks = 20</p>
<p dir="auto">Deadline Date<br />
22nd January, 2020</p>
<p dir="auto">Please carefully read the following instructions before attempting assignment.</p>
<p dir="auto">RULES FOR MARKING<br />
It should be clear that your assignment would not get any credit if:<br />
	The assignment is submitted after the due date.<br />
	The submitted assignment does not open or file is corrupt.<br />
	Strict action will be taken if submitted solution is copied from any other student or from the internet.</p>
<p dir="auto">You should consult the recommended books to clarify your concepts as handouts are not enough.</p>
<p dir="auto">You are supposed to submit your assignment in .doc or docx format.<br />
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.</p>
<p dir="auto">OBJECTIVE<br />
Objective of this assignment is to increase the learning capabilities of the students about<br />
•	Context-Free Grammars<br />
•	LL(1) Table constructions<br />
•	Follow Sets</p>
<p dir="auto">NOTE</p>
<p dir="auto">No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.</p>
<p dir="auto">If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.</p>
<p dir="auto">For any query, feel free to email at:<br />
<a href="mailto:cs606@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs606@vu.edu.pk</a></p>
<p dir="auto">Questions No 01					                                      12+8=20 Marks</p>
<p dir="auto">Consider the grammar given below:</p>
<p dir="auto">S → XaXb<br />
S → Yb<br />
X → €<br />
Y → €</p>
<p dir="auto">Where € (epsilon) is empty string.</p>
<p dir="auto">a)	Find First and Follow sets for above grammar. [12]<br />
b)	Construct LL (1) parsing table. [8]</p>
<p dir="auto">Good Luck!</p>
]]></description><link>https://community.secnto.com//topic/1144/cs606-assignment-3-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:04:44 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1144.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Jan 2020 14:28:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Fri, 24 Jan 2020 09:56:42 GMT]]></title><description><![CDATA[<p dir="auto">The FIRST of a sentential form is the set of terminal symbols that lead any sentential from derived from the very first sentential form. In this particular case X and Y only derive the empty string and as a result the empty string is the FIRST set of both non-terminal symbols X and Y. The FIRST of S, however, includes “a” as in the first production once can derive a sentential form that starts with an “a” given that X can be replaced by the empty string. X similar reasoning allows you to include “b” in the FIRST(S).<br />
summary: FIRST(X) = {e}, FIRST(Y) = {e}, FIRST(S) = {a, b}</p>
<p dir="auto">The FOLLOW set of a non-terminal symbol is the set of terminals that can appear after that non-terminal symbol in any sentential form derived from the grammar’s start symbol. By definition the follow of the start symbol will automatically include the $ sign which represents the end of the input string. In this particular case by looking at the productions of S one can determine right away that the follow of X includes the terminal “a” and “b” and that the FOLLOW of Y includes the terminal “b”. Given that the non-terminal S does not appear in any productions, not even in its own productions, the FOLLOW of S is only $.<br />
summary: FOLLOW(S) = {$}, FOLLOW(X) = {a, b}, FOLLOW(Y) = {b}.</p>
<p dir="auto">b) YES, because the intersection of the FIRST for every non-terminal symbol in empty. This leads to the parsing table for this LL method as indicated below. As there is no conflict in entry then grammar is clearly LL (1).<br />
[23/01, 21:33] Waqas Ahmad: a b $<br />
S S→XaXb S → Yb<br />
A X→ε X→ε<br />
B Y→ε</p>
]]></description><link>https://community.secnto.com//post/3148</link><guid isPermaLink="true">https://community.secnto.com//post/3148</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Fri, 24 Jan 2020 09:56:42 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 19:39:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramsha-kanwal" aria-label="Profile: ramsha-kanwal">@<bdi>ramsha-kanwal</bdi></a><br />
Simple reply the topic and upload file<br />
<img src="https://i.imgur.com/Mxi0ADU.png" alt="Capture+_2020-01-24-00-38-48.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/3137</link><guid isPermaLink="true">https://community.secnto.com//post/3137</guid><dc:creator><![CDATA[mehwish]]></dc:creator><pubDate>Thu, 23 Jan 2020 19:39:33 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 19:00:06 GMT]]></title><description><![CDATA[<p dir="auto">ab to so hi jana chaye fr</p>
]]></description><link>https://community.secnto.com//post/3136</link><guid isPermaLink="true">https://community.secnto.com//post/3136</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 19:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:58:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nabeel-chaudhary" aria-label="Profile: Nabeel-Chaudhary">@<bdi>Nabeel-Chaudhary</bdi></a>  btay?</p>
]]></description><link>https://community.secnto.com//post/3135</link><guid isPermaLink="true">https://community.secnto.com//post/3135</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:56:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nabeel-chaudhary" aria-label="Profile: Nabeel-Chaudhary">@<bdi>Nabeel-Chaudhary</bdi></a>  w8 kru k so  jau?</p>
]]></description><link>https://community.secnto.com//post/3134</link><guid isPermaLink="true">https://community.secnto.com//post/3134</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:50:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nabeel-chaudhary" aria-label="Profile: Nabeel-Chaudhary">@<bdi>Nabeel-Chaudhary</bdi></a>  <a href="mailto:ramsha.vu@gmail.com" target="_blank" rel="noopener noreferrer nofollow ugc">ramsha.vu@gmail.com</a></p>
]]></description><link>https://community.secnto.com//post/3133</link><guid isPermaLink="true">https://community.secnto.com//post/3133</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:48:30 GMT]]></title><description><![CDATA[<p dir="auto">mery pas file hai pr mujhy idhr uplod ni krni aa rahi</p>
]]></description><link>https://community.secnto.com//post/3132</link><guid isPermaLink="true">https://community.secnto.com//post/3132</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:48:30 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:42:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nabeel-chaudhary" aria-label="Profile: Nabeel-Chaudhary">@<bdi>Nabeel-Chaudhary</bdi></a>  plz send me solution file at <a href="mailto:univers666jana@gmail.com" target="_blank" rel="noopener noreferrer nofollow ugc">univers666jana@gmail.com</a></p>
]]></description><link>https://community.secnto.com//post/3142</link><guid isPermaLink="true">https://community.secnto.com//post/3142</guid><dc:creator><![CDATA[kainat univers]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:42:24 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:35:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nabeel-chaudhary" aria-label="Profile: Nabeel-Chaudhary">@<bdi>Nabeel-Chaudhary</bdi></a> bhai agr ap k pas file ha to send kr do plz</p>
]]></description><link>https://community.secnto.com//post/3131</link><guid isPermaLink="true">https://community.secnto.com//post/3131</guid><dc:creator><![CDATA[awais sharif]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:30:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramsha-kanwal" aria-label="Profile: ramsha-kanwal">@<bdi>ramsha-kanwal</bdi></a> Give me your email or something i will send you a file</p>
]]></description><link>https://community.secnto.com//post/3130</link><guid isPermaLink="true">https://community.secnto.com//post/3130</guid><dc:creator><![CDATA[Nabeel Chaudhary]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:30:32 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:19:32 GMT]]></title><description><![CDATA[<p dir="auto">allah hi puchy ga</p>
]]></description><link>https://community.secnto.com//post/3129</link><guid isPermaLink="true">https://community.secnto.com//post/3129</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:19:32 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:17:23 GMT]]></title><description><![CDATA[<p dir="auto">bta dy file hai k ni plz</p>
]]></description><link>https://community.secnto.com//post/3128</link><guid isPermaLink="true">https://community.secnto.com//post/3128</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:08:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramsha-kanwal" aria-label="Profile: ramsha-kanwal">@<bdi>ramsha-kanwal</bdi></a> File hai hi nahi in k pas</p>
]]></description><link>https://community.secnto.com//post/3127</link><guid isPermaLink="true">https://community.secnto.com//post/3127</guid><dc:creator><![CDATA[Nabeel Chaudhary]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:08:22 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 18:01:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> This does not make any sense. I also downloaded this type of sketch from internet. Its so confusing. The thing is our assignment is gone.</p>
]]></description><link>https://community.secnto.com//post/3126</link><guid isPermaLink="true">https://community.secnto.com//post/3126</guid><dc:creator><![CDATA[Nabeel Chaudhary]]></dc:creator><pubDate>Thu, 23 Jan 2020 18:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 17:58:55 GMT]]></title><description><![CDATA[<p dir="auto">plz file send kr dy</p>
]]></description><link>https://community.secnto.com//post/3125</link><guid isPermaLink="true">https://community.secnto.com//post/3125</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 17:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 17:31:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nabeel-chaudhary" aria-label="Profile: Nabeel-Chaudhary">@<bdi>Nabeel-Chaudhary</bdi></a> Solution idea posted so please follow these step as required assignment with minimum changes.</p>
]]></description><link>https://community.secnto.com//post/3123</link><guid isPermaLink="true">https://community.secnto.com//post/3123</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Thu, 23 Jan 2020 17:31:33 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 17:24:58 GMT]]></title><description><![CDATA[<p dir="auto">How much time does it take to upload solution file? No one is getting this idea. We are going out of time.</p>
]]></description><link>https://community.secnto.com//post/3121</link><guid isPermaLink="true">https://community.secnto.com//post/3121</guid><dc:creator><![CDATA[Nabeel Chaudhary]]></dc:creator><pubDate>Thu, 23 Jan 2020 17:24:58 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 17:05:06 GMT]]></title><description><![CDATA[<p dir="auto">ye solution correct ha?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> said in <a href="/post/3110">CS606 Assignment 3 Solution and Discussion</a>:</p>
<blockquote>
<p dir="auto"><strong>Solution:</strong><br />
<img src="https://i.imgur.com/6aBjilU.png" alt="546a5c58-b72d-4b1e-80b1-59f71029248f-image.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">ye correct ha</p>
]]></description><link>https://community.secnto.com//post/3118</link><guid isPermaLink="true">https://community.secnto.com//post/3118</guid><dc:creator><![CDATA[awais sharif]]></dc:creator><pubDate>Thu, 23 Jan 2020 17:05:06 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 16:54:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> how much time need</p>
]]></description><link>https://community.secnto.com//post/3114</link><guid isPermaLink="true">https://community.secnto.com//post/3114</guid><dc:creator><![CDATA[Muhammad Zulqarnain]]></dc:creator><pubDate>Thu, 23 Jan 2020 16:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 16:40:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/feri-khan" aria-label="Profile: Feri-Khan">@<bdi>Feri-Khan</bdi></a><br />
Just posted</p>
]]></description><link>https://community.secnto.com//post/3112</link><guid isPermaLink="true">https://community.secnto.com//post/3112</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Thu, 23 Jan 2020 16:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 16:40:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zaasmi" aria-label="Profile: zaasmi">@<bdi>zaasmi</bdi></a> kn sa idea?</p>
]]></description><link>https://community.secnto.com//post/3111</link><guid isPermaLink="true">https://community.secnto.com//post/3111</guid><dc:creator><![CDATA[Feri Khan]]></dc:creator><pubDate>Thu, 23 Jan 2020 16:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Fri, 24 Jan 2020 09:59:27 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Solution:</strong><br />
<img src="https://i.imgur.com/6aBjilU.png" alt="546a5c58-b72d-4b1e-80b1-59f71029248f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><a href="https://facultyfp.salisbury.edu/despickler/personal/archive/m362S12/Exam02a.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">Source</a></p>
]]></description><link>https://community.secnto.com//post/3110</link><guid isPermaLink="true">https://community.secnto.com//post/3110</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Fri, 24 Jan 2020 09:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 16:27:13 GMT]]></title><description><![CDATA[<p dir="auto">12 aj aesy hi bj jy gyyyyyyyyyyyyyyyyyyy</p>
]]></description><link>https://community.secnto.com//post/3109</link><guid isPermaLink="true">https://community.secnto.com//post/3109</guid><dc:creator><![CDATA[ramsha kanwal]]></dc:creator><pubDate>Thu, 23 Jan 2020 16:27:13 GMT</pubDate></item><item><title><![CDATA[Reply to CS606 Assignment 3 Solution and Discussion on Thu, 23 Jan 2020 16:15:47 GMT]]></title><description><![CDATA[<p dir="auto">hello file mily jay g kya ya nahe??</p>
]]></description><link>https://community.secnto.com//post/3108</link><guid isPermaLink="true">https://community.secnto.com//post/3108</guid><dc:creator><![CDATA[Na VVeed Wajid]]></dc:creator><pubDate>Thu, 23 Jan 2020 16:15:47 GMT</pubDate></item></channel></rss>