DOC PREVIEW
UT Dallas CS 6385 - Project2_Report

This preview shows page 1-2-3-4-5-6 out of 17 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1 ALGORITHMIC ASPECTS OF TELECOMMUNICATION NETWORKS CS 6385 PROJECT #2 IMPLEMENTATION OF NAGAMOCHI – IBARAKI ALGORITHM Submitted by Devangna Kaushish ID:20211724992 CONTENTS OBJECTIVE ........................................................................................................ 3 NAGAMOCHI AND IBARAKI ALGORITHM ................................................ 4 IMPLEMENTATION ............................................................................................5 FLOWCHART .......................................................................................................6 RESULTS ...............................................................................................................7 CONCLUSION .......................................................................................................11 APPENDIX .............................................................................................................12 REFERNCES ..........................................................................................................173 OBJECTIVE The aim of this project is to create an implementation of the Nagamochi – Ibaraki Algorithm for finding the minimum cut in an undirected graph and experiment with it. The tasks to be performed are:- - Implementation of the Nagamochi – Ibaraki Algorithm, explaining how it works and providing its pseudo code. - Writing a computer program showing its implementation. - Run the program on randomly generated examples. Consider the number of nodes to be fixed at n=25. Let m be the number of edges which vary between 50 and 550, increasing in steps of 5. Once a value of m is selected, the program creates a graph with n=25 nodes and m edges. Actual edges are selected randomly with parallel edges allowed and excluding self loops. - Experiment with your random graph examples to find an experimental connection between the average degree of the graph and its edge- connectivity λ(G). λ(G ) is taken to be 0 if the graph happens to be disconnected. The connectivity depends on the average degree. The average degree in a graph characterizes the density of the graph, as it is expressible as d = 2m/n, where m; n are the number of edges and nodes, respectively. The relationship between λ(G) as a function of the average degree d, while keeping n = 25 fixed is exhibited through a diagram. - Let us call an edge critical, if its deletion decreases the connectivity. That is, an edge e is critical, if λ(G-e)< λ(G), where G-e denotes the graph G with edge e deleted. Let C(G) denote the number of critical edges in graph G. Using the random graphs generated above, show an experimental relationship between the number of critical edges and the average degree d of the graph. That is, show C(G) graphically as the function of d, while keeping n = 25 fixed. - To give a short explanation to describe why the functions in items (4) and (5) look the way the look. We need to explain what behaviour is expected.4 NAGAMOCHI-IBARAKI ALGORITHM Nagamochi-Ibaraki Algorithm is a simple deterministic algorithm discovered by Nagamochi and Ibaraki for finding minimum cuts of a graph G. Let the edge connectivity of a graph G be denoted by λ(G) and connectivity between two different nodes x and y be denoted by λ(x,y). Let Gxy be the graph obtained from G by merging the nodes x and y. In this operation we omit the possibly arising loop (if x, y were connected in G), but keep the parallel edges. We can now use the following result that is not hard to prove: For any two nodes x and y λ(G) =min{ λ(x,y) , λ(Gxy) } Thus, if we can find two nodes x,y for which λ(x,y) can be computed easily (without a flow computation), then the above formula yields a simple recursive algorithm. One can easily find such a pair of nodes. This is done via the Maximum Adjacency (MA) ordering. An MA ordering v1,....,vn of the nodes is generated recursively by the following algorithm:- - Take any of the nodes for v1. - Once v1,....,vn is already chosen, take a node for vi+1 that has the maximum number of edges connecting it with the set { v1,....,vn }. Nagamochi and Ibaraki proved that this ordering has the following nice property: Theoram: In any MA ordering v1,....,vn of the nodes λ(vn-1,vn)=d(vn) holds, where d(.) denotes the degree of the node. Therefore, it is enough to create an MA ordering, as described above, and take the last 2 nodes in this ordering for x, y. Then the connectivity between them will be equal to the degree of the last node in the MA ordering. Then one can apply the above formula recursively to get the minimum cut. Here we make use of the fact that it reduces the problem to computing λ(Gxy) and Gxy is already a smaller graph.5 IMPLEMENTATION Implementation – C language Graph Implementation - Excel The Implementation of the Nagamochi-Ibaraki Algorithm for nodes=25 and value of m between 50 to 550 is done as follows:- The main method contains the four functions-createGraph(),MA_Order(),CutMinimum() and Generation_CriticalEdges(). 1. The number of nodes are taken as 25 and we find the minimum cut of the graph by taking edges in the range 50 to 550 in increments of 5% , for the given number of the nodes. Then we create the graph, find the minimum cut and find the critical edges. This entire action is performed by the main() method. 2. A graph is created by using the function rand() which is stored as a 2-dimensional array in the variable graph[][]. A copy of this is stored in graph_copy[][] which is used to find the critical edges. This is performed by the createGraph() method. 3. Then we find the minimum cut of the graph. This is done by taking the total number of nodes in the original graph and the remaining nodes as its argument. This works on the variable graph[][] and the minimum cut of the graph is returned. Then MA ordering helps to compute the minimum cut between the last two nodes in the ordering. If the graph is disconnected, 0 is returned. The degree of the last node in MA ordering is the minimum cut between the last two nodes. These two nodes are then merged and is compared with the minimum cut of the merged graph. However, if only two nodes remain then the minimum cut of the last two nodes is returned. This is performed by the CutMinimum()


View Full Document

UT Dallas CS 6385 - Project2_Report

Documents in this Course
assn1

assn1

2 pages

38rel2

38rel2

5 pages

Report

Report

3 pages

networks

networks

18 pages

lp2

lp2

44 pages

lp2 (2)

lp2 (2)

27 pages

lp1(1)

lp1(1)

21 pages

integer1

integer1

50 pages

FrankR2

FrankR2

3 pages

duality

duality

28 pages

CMST

CMST

44 pages

hw4

hw4

3 pages

for 1

for 1

11 pages

ENCh02

ENCh02

33 pages

pree

pree

2 pages

new  3

new 3

2 pages

new  2

new 2

2 pages

hw4a

hw4a

2 pages

T2_Sol

T2_Sol

4 pages

ISM3

ISM3

8 pages

hw4_sol

hw4_sol

6 pages

Elm04_06

Elm04_06

11 pages

atn proj2

atn proj2

20 pages

12CUT1

12CUT1

8 pages

09Ford

09Ford

23 pages

08FLOW

08FLOW

6 pages

03LP_su

03LP_su

6 pages

40REL40

40REL40

5 pages

39rel3

39rel3

5 pages

38arel2

38arel2

5 pages

37REL1

37REL1

3 pages

24TABU

24TABU

3 pages

22DYNPR

22DYNPR

3 pages

21B&C

21B&C

2 pages

20BBEX0

20BBEX0

3 pages

19BB

19BB

5 pages

14CAPBUD0

14CAPBUD0

11 pages

35BRXCH

35BRXCH

2 pages

34COMB

34COMB

4 pages

32CAPAS

32CAPAS

4 pages

31QUEUE

31QUEUE

3 pages

Load more
Download Project2_Report
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Project2_Report and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Project2_Report 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?