Algorithm 2: Splicing (, , , , , ). |
1) Input: , , , , , and . |
2) Initialize , and set |
. |
3) For , do |
, |
Let , and solve |
If , then |
, |
End for |
4) If , then . |
5) Output (). |
Algorithm 2: Splicing (, , , , , ). |
1) Input: , , , , , and . |
2) Initialize , and set |
. |
3) For , do |
, |
Let , and solve |
If , then |
, |
End for |
4) If , then . |
5) Output (). |