Strict

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

pro/relc/gdstr.txt · Last modified: 2018/03/05 18:26 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