<< NARVAL_R_SearchStartW NARVAL NARVAL_R_ShowPath >>

NARVAL >> NARVAL > NARVAL_R_ShortestRT

NARVAL_R_ShortestRT

Reduce the size of a routing table.

Calling Sequence

[r] = NARVAL_R_ShortestRT(r)

Parameters

r :

routing table.

Description

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

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
[a,b]=max(rt(:,1));//longest path
rt(b,:)

Authors

Foued Melakessou

Contact

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

Home Page


<< NARVAL_R_SearchStartW NARVAL NARVAL_R_ShowPath >>