Skip to main content
. 2018 Aug 22;18(9):2764. doi: 10.3390/s18092764
Algorithm 1. Computing the 0–1 covering matrix.
Input: V={I1,I2,In} , G1=(V1,E1) , delay τ
Output: T(m×n)
1: Double dist[N];
2: For int i=1 to n
3: Dijkstra (G1, dist,Ii);
4: For int j=1 to m
5: Compute tji according to Formula (6);
6: If (tjiτ)Tji=1;
7: Else if (tji>τ)Tji=0;
8: End for
9: End for