Reduce the size of a routing table.
[rti]=NARVAL_R_ShortestRT(rti)
routing table.
NARVAL_R_ShortestRT reduces the size of the routing table rti. The quantity of columns of rti 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 | ![]() | ![]() |