<?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[CS502 Assignment 3 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No. 03<br />
SEMESTER Fall 2019<br />
CS502- Fundamentals of Algorithms	<br />
Total Marks: 20</p>
<p dir="auto">Due Date: 15/01/2020<br />
Instructions<br />
Please read the following instructions carefully before solving &amp; submitting assignment:<br />
It should be clear that your assignment will not get any credit  if:<br />
•	The assignment is submitted after due date.<br />
•	The submitted assignment does not open or file corrupt.<br />
•	The assignment is fully or partially copied from (other student or ditto copy from handouts or internet).<br />
•	Student ID is not mentioned in the assignment File or name of file is other than student ID.<br />
•	The assignment is not submitted in .doc or .docx format.<br />
Uploading instructions<br />
Your submission must include:</p>
<p dir="auto">•	Assignment should be in .doc or .docx format.<br />
•	Save your assignment with your ID (e.g. bx180200786.doc).<br />
Assignment submission through email is NOT acceptable<br />
Objective<br />
The objective of this assignment is<br />
•	To give basic knowledge and understanding of Graphs.<br />
•	To develop the understanding between adjacency list and adjacency matrix representations.</p>
<p dir="auto">Note:<br />
Your answer must follow the below given specifications.<br />
•	 Font style: “Times New Roman”<br />
•	 Font color: “Black”<br />
•	 Font size: “12”<br />
•	 Bold for heading only.<br />
•	 Font in Italic is not allowed at all.<br />
•	 No formatting or bullets are allowed to use.<br />
•	Your answer should be precise and to the point, avoid irrelevant detail.</p>
<p dir="auto">Lectures Covered: This assignment covers Lecture # 28<br />
Deadline<br />
Your assignment must be uploaded/submitted at or before 15/01/2020.</p>
<p dir="auto">Assignment Statement:</p>
<p dir="auto">Everywhere we see objects and some sort of interaction between them. If we are needed to model this connection or relationship between them, the graphs is a good way to model it.<br />
A graph G = (V, E) consists of a finite set of vertices V (or nodes) and E, a binary relation on V called edges. E is a set of pairs from V. If a pair is ordered, we have a directed graph. For unordered pair, we have an undirected graph.<br />
There are two ways of representing graphs: using an adjacency matrix and using an adjacency list.</p>
<p dir="auto">Question No  01:   (Marks:  10)</p>
<p dir="auto">Draw an undirected Graph for the following Adjacency list representation as given below,</p>
<p dir="auto"><img src="https://i.imgur.com/UpPt7RI.png" alt="e5754efc-b6bf-4975-8417-d71e6c4945d6-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Question No  02:   (Marks:  10)</p>
<p dir="auto">Draw a directed graph for the following matrix format representation,<br />
<img src="https://i.imgur.com/phVL6cO.png" alt="15a35cf7-f143-437f-897d-7c03d0cd4980-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">=====================================Ended=======================================</p>
<p dir="auto">For any query about the assignment, contact at <a href="mailto:CS502@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">CS502@vu.edu.pk</a></p>
<p dir="auto">GOOD LUCK</p>
]]></description><link>https://community.secnto.com//topic/924/cs502-assignment-3-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 21:39:15 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/924.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jan 2020 12:18:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS502 Assignment 3 Solution and Discussion on Thu, 16 Jan 2020 15:00:26 GMT]]></title><description><![CDATA[<p dir="auto">Q.1 Answer<br />
<img src="https://i.imgur.com/75vrAb3.png" alt="09060a11-e58a-4510-b329-9e0ee2e4ea71-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Q.2 Answer<br />
<img src="https://i.imgur.com/1S6Tme3.png" alt="3cd1afd9-1b1a-40ab-b8e3-96784cc3c253-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/2803</link><guid isPermaLink="true">https://community.secnto.com//post/2803</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Thu, 16 Jan 2020 15:00:26 GMT</pubDate></item><item><title><![CDATA[Reply to CS502 Assignment 3 Solution and Discussion on Tue, 14 Jan 2020 06:57:18 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://i.imgur.com/yeYk412.png" alt="efe5770e-b8a4-420f-aa98-3a15db0dfc4f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="https://i.imgur.com/jJwA7J8.png" alt="99abdf7f-c9c2-4f9d-b09e-5acd87686969-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/2651</link><guid isPermaLink="true">https://community.secnto.com//post/2651</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 14 Jan 2020 06:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to CS502 Assignment 3 Solution and Discussion on Tue, 14 Jan 2020 06:53:25 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/oLw5lt0LQOE" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/oLw5lt0LQOE</a></p>
]]></description><link>https://community.secnto.com//post/2650</link><guid isPermaLink="true">https://community.secnto.com//post/2650</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 14 Jan 2020 06:53:25 GMT</pubDate></item><item><title><![CDATA[Reply to CS502 Assignment 3 Solution and Discussion on Tue, 14 Jan 2020 06:53:14 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/dlUB_Sb31Qw" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/dlUB_Sb31Qw</a></p>
]]></description><link>https://community.secnto.com//post/2649</link><guid isPermaLink="true">https://community.secnto.com//post/2649</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 14 Jan 2020 06:53:14 GMT</pubDate></item><item><title><![CDATA[Reply to CS502 Assignment 3 Solution and Discussion on Tue, 14 Jan 2020 06:53:02 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/U0gP98eL4x8" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/U0gP98eL4x8</a></p>
]]></description><link>https://community.secnto.com//post/2648</link><guid isPermaLink="true">https://community.secnto.com//post/2648</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 14 Jan 2020 06:53:02 GMT</pubDate></item><item><title><![CDATA[Reply to CS502 Assignment 3 Solution and Discussion on Tue, 14 Jan 2020 06:52:51 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/Dd_F84AoNqU" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/Dd_F84AoNqU</a></p>
]]></description><link>https://community.secnto.com//post/2647</link><guid isPermaLink="true">https://community.secnto.com//post/2647</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 14 Jan 2020 06:52:51 GMT</pubDate></item></channel></rss>