Reduce the size of a routing table.
[R] = NL_R_RTReduction(R)
Routing table.
NL_R_RTReduction 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]=NL_F_NLPath();//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]=NL_R_RTReduction(rt);//application of NARVAL_R_ShortestRT rt(1:10,:)//final state [a,b]=max(rt(:,1));//longest path rt(b,:) | ![]() | ![]() |