Reduce the size of a routing table.
[r] = NARVAL_R_ShortestRT(r)
routing table.
NARVAL_R_ShortestRT reduces the size of the routing table r. The quantity of columns of r is reduced to the largest path length, plus 2 (one slot for the path hop length and one slot for the path length).
[path]=NARVAL_F_NARVALPath();//path to NARVAL module path=path+'/demos/';//folder path load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables [l c]=size(rt1);//size of the routing table rt1 rt=[rt1 zeros(l,2)];//addition of two empty columns rt(1:10,:)//initial state [rt]=NARVAL_R_ShortestRT(rt);//application of NARVAL_R_ShortestRT rt(1:10,:)//final state [a,b]=max(rt(:,1));//longest path rt(b,:) | ![]() | ![]() |
Dr. Foued Melakessou
Research Associate
Interdisciplinary Centre for Security, Reliability and Trust
Room F106
University of Luxembourg
6, rue Coudenhove Kalergi
L-1359 Luxembourg-Kirchberg
E-mail: foued.melakessou@uni.lu
Tel: (+352) 46 66 44 5346