Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fundamentals of Algorithms CS502-Spring solution fall 2010
#1
Objectives

This assignment will help you to understand the concepts of Graph theory particularly initial representation techniques and traversing techniques of Graphs BFS and DFS logics.
Guidelines
1. In order to attempt this assignment you should have full command on Lecture # 33 to Lecture # 37
2. To explore traversing techniques you must also read the chapter of “Elementary Graph algorithms” of recommended book below.
3. In order to solve this assignment you should have strong concepts about following topics
 Graphs basic representation techniques
 Breadth First Search
 Depth First Search



Recommended book for solving assignment
Cormen, Leiserson, Rivest, and Stein (CLRS) 2001, Introduction to Algorithms, (2nd ed.) McGraw Hill.
Estimated Time 3.5 hours
Question understanding time is one hour and to develop and implement the logic of part “a” you require half an hour and to develop part “b” you required at most two hours .It all depend upon your sheer concentration while developing the assignment.



























Question# 1
a) Give the adjacency matrix and adjacency list for the following graph. Fig 1.1 (2.5+2.5)

b) Apply the BFS and DFS on the following graph and show values in queue/stack stepwise on the following graph Take node 1 as source node. fig1.1 (7.5+7.5)

[Image: cs502.png]
Reply
#2
Download the attachment its the right solution. so please download and its in the PDF format not in the .Doc format.


Attached Files
.pdf   ADJANCY.pdf (Size: 99.92 KB / Downloads: 237)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,904 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,925 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,161 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,237 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,962 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,660 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,793 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,696 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,794 01-20-2016, 06:19 PM
Last Post: Vuhelper
  Data Warehousing– CS614 Assignment No. 3 solution 20th Jauary 2016 Vuhelper 0 9,571 01-20-2016, 06:16 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)