Nested structure elements
The structure elements involving nested base pairs can be classified by a given base pair and the other base pairs that are nested and accessible from this pair. For a more elaborate description we refer the reader to [Sankoff et al., 1983] and [Zuker and Sankoff, 1984].
If the nucleotides with position number  form a base pair
and
 form a base pair
and 
 , then we say that the base pair
, then we say that the base pair  is
accessible from
 is
accessible from  if there is no intermediate base pair
 if there is no intermediate base pair
 such that
 such that 
 . This means that
. This means that  is nested within the pair
 is nested within the pair  and there is no other base pair
in between.
 and there is no other base pair
in between.
Using the number of accessible pase pairs, we can define the following distinct structure elements:
- Hairpin loop  ( ). A base pair with 0 other accessible base pairs forms a hairpin loop. The energy
  contribution of a hairpin is determined by the length of the
  unpaired (loop) region and the two bases adjacent to the closing
  base pair which is termed a terminal mismatch (see figure 22.29A). ). A base pair with 0 other accessible base pairs forms a hairpin loop. The energy
  contribution of a hairpin is determined by the length of the
  unpaired (loop) region and the two bases adjacent to the closing
  base pair which is termed a terminal mismatch (see figure 22.29A).
- A base pair with 1 accessible base pair can give rise to three distinct structure elements:
  
- Stacking of base pairs  ( ). A stacking of two consecutive pairs occur if ). A stacking of two consecutive pairs occur if . Only canonical base pairs ( . Only canonical base pairs ( or or or or ) are allowed (see figure 22.29B). The energy contribution is determined by the
type and order of the two base pairs. ) are allowed (see figure 22.29B). The energy contribution is determined by the
type and order of the two base pairs.
- Bulge  ( ). A bulge loop occurs if ). A bulge loop occurs if or or but not both. This means that the two base pairs enclose an unpaired region of length 0 on one side and
    an unpaired region of length but not both. This means that the two base pairs enclose an unpaired region of length 0 on one side and
    an unpaired region of length on the other side (see figure 22.29C). The energy
    contribution of a bulge is determined by the length of the
  unpaired (loop) region and the two closing base pairs. on the other side (see figure 22.29C). The energy
    contribution of a bulge is determined by the length of the
  unpaired (loop) region and the two closing base pairs.
- Interior loop  ( ).An interior loop occurs if both ).An interior loop occurs if both and and This means that the two base pairs enclose an unpaired region of length This means that the two base pairs enclose an unpaired region of length on both sides (see figure 22.29D). The energy contribution of an interior loop is
  determined by the length of the
  unpaired (loop) region and the four unpaired bases adjacent to the opening- and the closing
  base pair. on both sides (see figure 22.29D). The energy contribution of an interior loop is
  determined by the length of the
  unpaired (loop) region and the four unpaired bases adjacent to the opening- and the closing
  base pair.
 
- Stacking of base pairs  (
- Multi loop opened  ( ). A base pair with more than two accessible base pairs gives rise to a multi loop, a loop from which three or more stems are
  opened (see figure 22.29E). The energy contribution of a multi loop depends on the
  number of Stems opened in multi-loop  ( ). A base pair with more than two accessible base pairs gives rise to a multi loop, a loop from which three or more stems are
  opened (see figure 22.29E). The energy contribution of a multi loop depends on the
  number of Stems opened in multi-loop  ( ) that protrude from the loop. ) that protrude from the loop.
