<< NARVAL_R_SearchStartW NARVAL NARVAL_R_ShowPath >>

NARVAL >> NARVAL > NARVAL_R_ShortestRT

NARVAL_R_ShortestRT

Reduce the size of a routing table.

Calling Sequence

[rti]=NARVAL_R_ShortestRT(rti)

Parameters

rti :

routing table.

Description

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).

Examples

[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

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_R_SearchStartW NARVAL NARVAL_R_ShowPath >>