Leader

> Ri <- sRi; Ro <- sRo; d <- sd; D <- sD
> res <- relCon(D,strategy="leader")
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   2   4   2   3
b   5 Inf   8   1   3   4   4   5   3   4
c   7   8 Inf   4   5   7   9   3   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   4   6   5   7
f   6   4   7   2   6 Inf   6   8   5   7
g   2   4   9   4   4   6 Inf   4   8   2
h   4   5   3   8   6   8   4 Inf   3   4
i   2   3   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 2
1 : 2 1 > 1 2 3 4 5 6 7 8 9 10 
 Inf 4 5 8 7 4 10 9 4 7 
 Inf 1 5 8 4 2 2 3 6 2 
join  2  and  4  at level  1 
] o: 0 8  i: 3 6 9 
a 1 : 0 
b 2 : 0 8 
c 3 : 1 2 5 6 
d 4 : 0 
e 5 : 7 
f 6 : 5 7 2 
g 7 : 10 
h 8 : 6 9 10 
i 9 : 2 
j 10 : 7 
a 1 : 3 
b 2 : 3 6 9 
c 3 : 0 
d 4 : 0 
e 5 : 3 6 
f 6 : 3 8 
g 7 : 5 6 10 
h 8 : 2 
i 9 : 8 
j 10 : 7 8 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   2   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   7   9   3   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   4   6   5   7
f   6   4   7   2   6 Inf   6   8   5   7
g   2   4   9   4   4   6 Inf   4   8   2
h   4   8   3   8   6   8   4 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 6
2 : 6 2 > 1 2 3 5 6 7 8 9 10 
 Inf 8 5 7 2 10 9 2 7 
 Inf 8 5 4 4 2 3 6 2 
join  7  and  10  at level  2 
] o: 0  i: 5 6 8 
a 1 : 0 
b 2 : 0 8 
c 3 : 1 2 5 6 
d 4 : 0 
e 5 : 7 
f 6 : 5 7 2 
g 7 : 0 
h 8 : 6 9 7 
i 9 : 2 
j 10 : 0 
a 1 : 3 
b 2 : 3 6 9 
c 3 : 0 
d 4 : 0 
e 5 : 3 6 
f 6 : 3 8 
g 7 : 5 6 8 
h 8 : 2 
i 9 : 8 
j 10 : 0 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   3   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   7   9   3   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   7   6   5   7
f   6   4   7   2   6 Inf   7   8   5   7
g   3   4   9   4   7   7 Inf   4   8   2
h   4   8   3   8   6   8   4 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 7
3 : 7 3 > 1 2 3 5 6 7 8 9 
 Inf 8 5 7 2 Inf 9 2 
 Inf 8 5 7 4 Inf 3 6 
join  8  and  9  at level  3 
] o: 0 2  i: 2 
a 1 : 0 
b 2 : 0 8 
c 3 : 1 2 5 6 
d 4 : 0 
e 5 : 7 
f 6 : 5 7 2 
g 7 : 0 
h 8 : 0 2 
i 9 : 0 
j 10 : 0 
a 1 : 3 
b 2 : 3 6 8 
c 3 : 0 
d 4 : 0 
e 5 : 3 6 
f 6 : 3 
g 7 : 5 6 
h 8 : 2 
i 9 : 0 
j 10 : 0 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   3   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   7   9   3   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   7   6   5   7
f   6   4   7   2   6 Inf   7   8   5   7
g   3   4   9   4   7   7 Inf   8   8   2
h   4   8   3   8   6   8   8 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 5
4 : 5 4 > 1 2 3 5 6 7 8 
 Inf 8 5 7 2 Inf 2 
 Inf 8 5 7 4 Inf 8 
join  6  and  2  at level  4 
] o: 0 8  i: 3 8 
a 1 : 0 
b 2 : 0 
c 3 : 1 5 6 
d 4 : 0 
e 5 : 7 
f 6 : 0 8 
g 7 : 0 
h 8 : 0 6 
i 9 : 0 
j 10 : 0 
a 1 : 3 
b 2 : 0 
c 3 : 0 
d 4 : 0 
e 5 : 3 
f 6 : 3 8 
g 7 : 5 
h 8 : 6 
i 9 : 0 
j 10 : 0 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   3   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   8   9   3   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   7   6   5   7
f   6   4   8   2   6 Inf   7   8   5   7
g   3   4   9   4   7   7 Inf   8   8   2
h   4   8   3   8   6   8   8 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 2
5 : 2 5 > 1 3 5 6 7 8 
 Inf 5 7 8 Inf 6 
 Inf 5 7 8 Inf 8 
join  3  and  5  at level  5 
] o: 0 7  i: 0 
a 1 : 0 
b 2 : 0 
c 3 : 0 7 
d 4 : 0 
e 5 : 0 
f 6 : 0 8 
g 7 : 0 
h 8 : 0 6 
i 9 : 0 
j 10 : 0 
a 1 :  
b 2 : 0 
c 3 : 0 
d 4 : 0 
e 5 : 0 
f 6 : 8 
g 7 : 3 
h 8 : 6 
i 9 : 0 
j 10 : 0 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   3   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   8   9   6   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   7   6   5   7
f   6   4   8   2   6 Inf   7   8   5   7
g   3   4   9   4   7   7 Inf   8   8   2
h   4   8   6   8   6   8   8 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 3
6 : 3 8 > 1 3 6 7 8 
 Inf 7 8 Inf 6 
 Inf 9 8 Inf 8 
join  6  and  8  at level  8 
] o: 0  i:  
a 1 : 0 
b 2 : 0 
c 3 : 0 7 
d 4 : 0 
e 5 : 0 
f 6 : 0 
g 7 : 0 
h 8 : 0 
i 9 : 0 
j 10 : 0 
a 1 :  
b 2 : 0 
c 3 : 0 
d 4 : 0 
e 5 : 0 
f 6 :  
g 7 : 3 
h 8 : 0 
i 9 : 0 
j 10 : 0 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   3   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   8   9   6   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   7   6   5   7
f   6   4   8   2   6 Inf   8   8   5   7
g   3   4   9   4   7   8 Inf   8   8   2
h   4   8   6   8   6   8   8 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 2
7 : 2 9 > 1 3 6 7 
 Inf 7 Inf Inf 
 Inf 9 Inf Inf 
join  3  and  7  at level  9 
] o: 0  i: 0 
a 1 : 0 
b 2 : 0 
c 3 : 0 
d 4 : 0 
e 5 : 0 
f 6 : 0 
g 7 : 0 
h 8 : 0 
i 9 : 0 
j 10 : 0 
a 1 :  
b 2 : 0 
c 3 : 0 
d 4 : 0 
e 5 : 0 
f 6 :  
g 7 : 0 
h 8 : 0 
i 9 : 0 
j 10 : 0 
    a   b   c   d   e   f   g   h   i   j
a Inf   5   7   4   6   6   3   4   2   3
b   5 Inf   8   1   3   4   4   8   6   4
c   7   8 Inf   4   5   8   9   6   2   5
d   4   1   4 Inf   3   2   4   8   6   3
e   6   3   5   3 Inf   6   7   6   5   7
f   6   4   8   2   6 Inf   8   8   5   7
g   3   4   9   4   7   8 Inf   8   8   2
h   4   8   6   8   6   8   8 Inf   3   4
i   2   6   2   6   5   5   8   3 Inf   5
j   3   4   5   3   7   7   2   4   5 Inf
 int 1
8 : 1 Inf > 1 3 6 
 Inf Inf Inf 
 Inf Inf Inf 
several components
m
 -2 -7 -8 -6 -3 4 5 NA NA -4 -10 -9 1 -5 3 2 NA NA 
node
 0 1 7 0 0 6 2 3 0 0 
weight
 1 2 4 1 1 5 2 2 1 1 
> plot(res,hang=-1,main="leader / maximum")

pro/relc/gdldr.txt · Last modified: 2018/03/05 18:05 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki