09.02.2013 Views

SESSION GRAPH BASED AND TREE METHODS + RELATED ...

SESSION GRAPH BASED AND TREE METHODS + RELATED ...

SESSION GRAPH BASED AND TREE METHODS + RELATED ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

32 Int'l Conf. Foundations of Computer Science | FCS'12 |<br />

At the end of this phase (lines 23 23- 30), there are<br />

omissions of repeated edges of �, and repeated nodes of �.<br />

Moreover, Steiner nodes with the deg less than 2 are also<br />

omitted from �, , and their edges from �. Finally, all the<br />

edges in the set � are the edges of the Steiner tree, tree and the<br />

summation of their weights is the cost of the Steiner tree.<br />

3.4 Time Complexity Analysis<br />

In MSTG algorithm, the most time complexity belongs<br />

to the computations using Dijkstra’s algorithm algorithm. By using<br />

Fibonacci-Heap Heap for implementing Dijkstra’s algorithm, it<br />

has O�� � � log �� time complexity [3].<br />

In the preprocessing phase of the MSTG algorithm,<br />

Dijkstra’s algorithm hasn’t been used. . In the first phase,<br />

Dijkstra’s algorithm has been used for � times and in the<br />

second phase, at the worst condition it has been used for �<br />

times; therefore because � ≤ �, the time complexity of our<br />

algorithm is O���� � � log ��.<br />

4 Experimental Results<br />

The implementation of the proposed algorithm that<br />

called MSTG has been done by Visual C# C#, and it has been<br />

examined on some well-known data sets like the Beasley’s Beasley<br />

data set [12]. The configuration of the system that has been<br />

used for this examination was a 2.50 GHz CPU and a 3 GB<br />

RAM. The results of running the MSTG algorithm on the<br />

sets B, C and D of Beasley’s data set are respectively in<br />

tables 1, 2 and 3. The rate of this algorithm is computed<br />

from the ratio of the cost of MSTG to the optimum cost and<br />

also the time of execution has been show shown in “hour: minute:<br />

second: mille second”.<br />

Table 1: The results of MSTG algorithm on the set B<br />

Graph<br />

Number<br />

1 B<br />

2 B<br />

3 B<br />

4 B<br />

5 B<br />

6 B<br />

7 B<br />

8 B<br />

9 B<br />

10 B<br />

11 B<br />

12 B<br />

13 B<br />

14 B<br />

15 B<br />

16 B<br />

17 B<br />

18 B<br />

Nodes<br />

Count<br />

50<br />

50<br />

50<br />

50<br />

50<br />

50<br />

75<br />

75<br />

75<br />

75<br />

75<br />

75<br />

100<br />

100<br />

100<br />

100<br />

100<br />

100<br />

Edges<br />

Count<br />

63<br />

63<br />

63<br />

100<br />

100<br />

100<br />

94<br />

94<br />

94<br />

150<br />

150<br />

150<br />

125<br />

125<br />

125<br />

200<br />

200<br />

200<br />

Terminals<br />

Count<br />

9<br />

13<br />

25<br />

9<br />

13<br />

25<br />

13<br />

19<br />

38<br />

13<br />

19<br />

38<br />

17<br />

25<br />

50<br />

17<br />

25<br />

50<br />

Optimum<br />

Cost<br />

82<br />

83<br />

138<br />

59<br />

61<br />

122<br />

111<br />

104<br />

220<br />

86<br />

88<br />

174<br />

165<br />

235<br />

318<br />

127<br />

131<br />

218<br />

MSTG<br />

Result<br />

82<br />

83<br />

138<br />

59<br />

61<br />

122<br />

111<br />

104<br />

220<br />

86<br />

92<br />

174<br />

170<br />

235<br />

321<br />

132<br />

131<br />

218<br />

Rate<br />

(Opt/MSTG Opt/MSTG)<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1.045<br />

1<br />

1.03<br />

1<br />

1.009<br />

1.039<br />

1<br />

1<br />

Time<br />

(h:m:s:ms)<br />

0: 0: 0: 10<br />

0: 0: 0: 16<br />

0: 0: 0: 33<br />

0: 0: 0: 15<br />

0: 0: 0: 20<br />

0: 0: 0: 50<br />

0: 0: 0: 28<br />

0: 0: 0: 37<br />

0: 0: 0: 101<br />

0: 0: 0: 54<br />

0: 0: 0: 66<br />

0: 0: 0: 131<br />

0: 0: 0: 69<br />

0: 0: 0: 123<br />

0: 0: 0: 220<br />

0: 0: 0: 125<br />

0: 0: 0: 168<br />

0: 0: 0:350<br />

Table 2: The results of MSTG algorithm on the set C<br />

Graph<br />

Number<br />

1 C<br />

2 C<br />

3 C<br />

4 C<br />

5 C<br />

6 C<br />

7 C<br />

8 C<br />

9 C<br />

10 C<br />

11 C<br />

12 C<br />

13 C<br />

14 C<br />

15 C<br />

16 C<br />

17 C<br />

18 C<br />

19 C<br />

20 C<br />

Nodes<br />

Count<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

500<br />

Edges<br />

Count<br />

625<br />

625<br />

625<br />

625<br />

625<br />

1000<br />

1000<br />

1000<br />

1000<br />

1000<br />

2500<br />

2500<br />

2500<br />

2500<br />

2500<br />

12500<br />

12500<br />

12500<br />

12500<br />

12500<br />

Terminals<br />

Count<br />

5<br />

10<br />

83<br />

125<br />

250<br />

5<br />

10<br />

83<br />

125<br />

250<br />

5<br />

10<br />

83<br />

125<br />

250<br />

5<br />

10<br />

83<br />

125<br />

250<br />

Optimum<br />

Cost<br />

85<br />

144<br />

754<br />

1079<br />

1579<br />

55<br />

102<br />

509<br />

707<br />

1093<br />

32<br />

46<br />

258<br />

323<br />

556<br />

11<br />

18<br />

113<br />

146<br />

267<br />

Table 3: The results of MSTG algorithm on the set D<br />

Graph<br />

Number<br />

1 D<br />

2 D<br />

3 D<br />

4 D<br />

5 D<br />

6 D<br />

7 D<br />

8 D<br />

9 D<br />

10 D<br />

11 D<br />

12 D<br />

13 D<br />

14 D<br />

15 D<br />

16 D<br />

17 D<br />

18 D<br />

19 D<br />

20 D<br />

Nodes<br />

Count<br />

Edges<br />

Count<br />

1000 1250<br />

1000 1250<br />

1000 1250<br />

1000 1250<br />

1000 1250<br />

1000 2000<br />

1000 2000<br />

1000 2000<br />

1000 2000<br />

1000 2000<br />

1000 5000<br />

1000 5000<br />

1000 5000<br />

1000 5000<br />

1000 5000<br />

1000 25000<br />

1000 25000<br />

1000 25000<br />

1000 25000<br />

1000 25000<br />

Terminals<br />

Count<br />

5<br />

10<br />

167<br />

250<br />

500<br />

5<br />

10<br />

167<br />

250<br />

500<br />

5<br />

10<br />

167<br />

250<br />

500<br />

5<br />

10<br />

167<br />

250<br />

500<br />

Optimum<br />

Cost<br />

106<br />

220<br />

1565<br />

1935<br />

3250<br />

67<br />

103<br />

1072<br />

1448<br />

2110<br />

29<br />

42<br />

500<br />

667<br />

1116<br />

13<br />

23<br />

223<br />

310<br />

537<br />

MSTG<br />

Result<br />

85<br />

144<br />

760<br />

1090<br />

1581<br />

55<br />

102<br />

519<br />

720<br />

1100<br />

33<br />

49<br />

262<br />

330<br />

561<br />

12<br />

20<br />

119<br />

152<br />

268<br />

MSTG<br />

Result<br />

107<br />

220<br />

1578<br />

1951<br />

3265<br />

73<br />

105<br />

1097<br />

1470<br />

2120<br />

29<br />

42<br />

517<br />

676<br />

1129<br />

15<br />

24<br />

237<br />

328<br />

542<br />

Rate<br />

(Opt/MSTG)<br />

1<br />

1<br />

1.008<br />

1.01<br />

1.001<br />

1<br />

1<br />

1.019<br />

1.018<br />

1.006<br />

1.031<br />

1.065<br />

1.015<br />

1.021<br />

1.009<br />

1.09<br />

1.111<br />

1.0531<br />

1.041<br />

1.003<br />

Rate<br />

(Opt/MSTG)<br />

1.009<br />

1<br />

1.008<br />

1.008<br />

1.004<br />

1.09<br />

1.019<br />

1.023<br />

1.015<br />

1.005<br />

1<br />

1<br />

1.034<br />

1.013<br />

1.012<br />

1.154<br />

1.043<br />

1.063<br />

1.058<br />

1.009<br />

Time<br />

(h:m:s:ms)<br />

0: 0: 0: 547<br />

0: 0: 1: 306<br />

0: 0: 4: 203<br />

0: 0: 7: 578<br />

0: 0: 17: 409<br />

0: 0: 0: 969<br />

0: 0: 1: 281<br />

0: 0: 7: 640<br />

0: 0: 10: 625<br />

0: 0: 22: 110<br />

0: 0: 1: 265<br />

0: 0: 1: 579<br />

0: 0: 7: 547<br />

0: 0: 11: 500<br />

0: 0: 25: 656<br />

0: 0: 1: 901<br />

0: 0: 2: 891<br />

0: 0: 6: 937<br />

0: 0: 9: 312<br />

0: 0: 37: 16<br />

Time<br />

(h:m:s:ms)<br />

0: 0: 2: 890<br />

0: 0: 4: 47<br />

0: 0: 42: 515<br />

0: 0: 52: 016<br />

0: 4: 4: 484<br />

0: 0: 5: 782<br />

0: 0: 7: 719<br />

0: 0: 50: 907<br />

0: 1: 23: 578<br />

0: 5: 9: 631<br />

0: 0: 6: 734<br />

0: 0: 7: 375<br />

0: 0: 55: 94<br />

0: 1: 24: 375<br />

0: 5: 27: 762<br />

0: 0: 28: 690<br />

0: 0: 30: 336<br />

0: 1: 47: 301<br />

0: 2: 38: 931<br />

0: 4: 56: 388<br />

In Fig. 4, there are two samples of obtained Steiner<br />

trees from MSTG algorithm on graphs B1 B and C15 that has<br />

been drawn with random vertices.<br />

(a)<br />

(b)<br />

Fig.4: Two samples of MSTG algorithm on graph<br />

B1 (a) and graph C15 (b)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!