Algorithm 1 Pseudocode for identifying independently folded nucleic acid substructures. |
Input: Set of all subchains C, Set of interacting subchains for each subchain x
|
Output: Independently folded
|
←C ▹ records all subchains not assigned to substructures |
forx in C do
|
if x in then ▹ Find the substructure containing subchain x
|
|
▹ records newly added subchains in each loop below |
while not empty do
|
▹ updates the substructure in each loop |
for z in do
|
▹ Include interacting subchains for each newly added subchain |
end for
|
|
|
end while
|
← ▹ Remove subchains in from
|
Add to
|
end if
|
end for
|