DOC PREVIEW
UT Dallas CS 6385 - Project-1 REPORT

This preview shows page 1-2-24-25 out of 25 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 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 25 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 25 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 25 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

www.CLiki.nethttp://jung.sourceforge.net/ALGORITHMIC ASPECTS OFTELECOMMUNICATION NETWORKSTE 6385Project 1 Implementation of a Basic Network Design ModelBy,Gurudutt NarasimhaNet Id: gxn120830SYNOPSIS:The theme of this project is to implement the basic network design model that is capable of doing the following.OBJECTIVE:Using the given number of nodes and edges obtained by the randomly chosen values in the graph To create the network topology graph To determine the total optimal cost of the network and also to find the capacity of each link. To implement the Floyd-Warshall Shortest path algorithm in order to find the shortest path from every node to another in the network and hence the total minimum cost of the network. To find Density of each network (for various different inputs). To construct a graph to show how the total cost of the network depends on the value of parameter k. Also to construct a graph between Density of the network and value of k and how it changes with the parameter value k, for different values of k.GIVEN: aij is Unit cost values for the potential links bij is Traffic demand values between pairs of nodeINPUT: Number of nodes N is given as input. Random values of aij and bij is provided as the input. Find the total Cost of the network in each experiment before the application of the shortest path algorithm. Set the range of M as [0,1,2,3,4]. get the value of k Find the number of actual nodes in the each iteration depending on the value of k.OUTPUT:The program will result in generating the network topology according to the capacities assigned to the links. Run the program on various examples with N fixed (N=40). Find the shortest path of the random graph generated for every case. Design the network topology with graphs. Find the total cost of the network by multiplying the shortest path of unit cost aij with traffic demand of the network bij.Finally it is required to show the relationship between total cost and parameter k and display these results with the help of a graph.Also calculation of the density of the network for each k is required which is done using the formula given below:Density (D) = 2*m/N*(N-1)Density is defined as the ratio of the actual number of edges versus maximum possible number of edges. Now after finding the total cost it is required to show that the total cost is dependent on the parameter M. Here m is the actual number of required edges in the network. A graph showingthe dependencies of the density of the network on the value of k is also given for each case.PSEUDO CODE : Accept the value of the total number of nodes(n) from the user. Accept the value of k  Initialize values of all the arrays to be used in the code. Initialize aij[i][j] which is the cost value matrix of the network. Also initialize the traffic value matrix bij[i][j].In the main method the cost value array aij and traffic value array bij gets populated by supplyingrandom values to them depending on the value of k. These aij and bij are adjacency matrix. According to the property of the adjacency matrix the diagonal of the matrix remains zero. According to the project we have to feed both the cost value matrix and the traffic value matrix with random numbers. The random () function is used to create random values and then populate both the arrays aij & bij.Initial cost structure of the algorithm is shown in the method DisplayCost ().Now after getting the cost value adjacency matrix, Floyd-Warshall's algorithm to find the shortest path matrix is applied to aij. The implementation of the Floyd-Warshall algorithm is shown in the method shortestPathFloydWarshallalgo(). The Algorithm typically provides the lengths of the paths between all pairs of vertices. Then the shortest path matrix is multiplied by the traffic value matrix bij to get the total cost of the network. It is possible to create a method to reconstruct the actual path between any two endpoint vertices. Hence the total cost flow of the network is calculated using the sum of all the actual link costs.Implmentation of Floyd-Warshall Algorithm:Floyd-Warshall Algorithm is a graph analysis algorithm for finding shortest paths in a weighted graph. A single execution of the algorithm will find the lengths of the shortest paths between all pairs of vertices.Consider a graph G with vertices V, each numbered 1 through N. Furtherconsider a function shortestPath(i, j, k) that returns the shortest possible path from i to j using vertices only from the set {1,2,...,k} as intermediate points along the way. Now, given this function, our goal is to find the shortest path from each i to each j using only vertices 1 to k + 1.There are two candidates for each of these paths: either the true shortest path only uses vertices in the set {1, ..., k} or there exists some path that goes from i to k + 1, then from k + 1 to j that is better. We know that the best path from I to j that only uses vertices 1 through k is defined by shortestPath(i, j, k), and it is clear that if there were a better path from i to k + 1 to j, then the length of this path would be the concatenation of the shortest path from i to k + 1 (using vertices in {1, ..., k}) and the shortest path from k + 1 to j (also using vertices in {1, ..., k}).If w (i,j) is the weight of the edge between vertices i and j, we can defineshortestPath(i, j, k) in terms of the following recursive formula: the base case is shortestPath(i,j,0) = w(i,j) and the recursive procedure isshortestPath(i,j,k)=min(shortestPath(i,j,k1),shortestPath(i,k,k1)+shortestPath(k,j,k-1)Pseudocode of Floyd-Warshall Algorithm : Assume a function edge Cost(i,j) which returns the cost of the edge from i to j. Also assume that n is the number of vertices and edgeCost(i,i) =0int path[][];A 2-dimensional matrix. At each step in the algorithm, path[i][j] is theshortest path from i to j using intermediate vertices (1..k−1). Each path[i][j] is initialized to edgeCost(i,j).Procedure FloydWarshall ()for k := 1 to nfor i := 1 to nfor j := 1 to npath[i][j] = min ( path[i][j], path[i][k]+path[k][j] );Flow ChartStartGenerate thenetwork topologyFor those links along theshortest path from source todestination, assign the b valuesUsing every node in the graph generate theshortest path using Floyd-Warshall Shortest PathAlgorithmGenerate the valuesfor the unit cost ausing M and kGenerate the randomvalues for the linkdemand b using MEnter the value


View Full Document

UT Dallas CS 6385 - Project-1 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 Project-1 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 Project-1 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 Project-1 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?