5.343. sequence_folding
DESCRIPTION | LINKS | GRAPH | AUTOMATON |
- Origin
J.Β Pearson
- Constraint
- Argument
- Restrictions
- Purpose
Express the fact that a sequence is folded in a way that no crossing occurs. A sequence is modelled by a collection of letters. For each letter of a sequence, we indicate the next letter located after that is directly in contact with ( itself if such a letter does not exist).
- Example
-
FigureΒ 5.343.1 gives the folded sequence associated with the previous example. Each number represents the index of an item. The constraint holds since no crossing occurs.
Figure 5.343.1. Folded sequence (in blue) of the Example slot: links from a letter to a distinct letter are represented by a dashed arc, while self-loops are not drawn
- Typical
- Usage
Motivated by RNA foldingΒ [FlammHofackerStadler99].
- See also
- Keywords
application area: bioinformatics.
characteristic of a constraint: automaton, automaton without counters, reified automaton constraint.
combinatorial object: sequence.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.343.2 respectively show the initial and final graph associated with the Example slot. Since we use the graph property, the arcs of the final graph are stressed in bold.
Figure 5.343.2. Initial and final graph of the constraint
(a) (b) - Signature
Consider the first graph constraint. Since we use the arc generator on the collection the maximum number of arcs of the final graph is equal to . Therefore we can rewrite the graph property to and simplify to .
Consider now the second graph constraint. Since we use the arc generator on the collection the maximum number of arcs of the final graph is equal to . Therefore we can rewrite the graph property to and simplify to .
- Automaton
FigureΒ 5.343.3 depicts the automaton associated with the constraint. Consider the and the items of the collection . Let and respectively denote the and the attributes of the item of the collection . Similarly, let and respectively denote the and the attributes of the item of the collection . To each quadruple corresponds a signature variable , which takes its value in , as well as the following signature constraint:
.
Figure 5.343.3. Automaton of the constraint