Calculating the base pair similarity score for two multiloop structures is complex due to the variety of inner loop elements, which may be regular or interrupted stems. A multiloop s M i ðxÞ can be decomposed into an outer stem s o i ðxÞ and a set of inner structure elements