5.279. no_valley

DESCRIPTIONLINKSAUTOMATON
Origin

Derived from πšŸπšŠπš•πš•πšŽπš’.

Constraint

πš—πš˜_πšŸπšŠπš•πš•πšŽπš’(πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚)

Argument
πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚πšŒπš˜πš•πš•πšŽπšŒπšπš’πš˜πš—(πšŸπšŠπš›-πšπšŸπšŠπš›)
Restrictions
|πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚|>0
πš›πšŽπššπšžπš’πš›πšŽπš(πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚,πšŸπšŠπš›)
Purpose

A variable V k (1<k<m) of the sequence of variables πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚=V 1 ,β‹―,V m is a valley if and only if there exists an i (1<i≀k) such that V i-1 >V i and V i =V i+1 =β‹―=V k and V k <V k+1 . The total number of valleys of the sequence of variables πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚ is equal to 0.

Example
(1,1,4,8,8,2)

The πš—πš˜_πšŸπšŠπš•πš•πšŽπš’ constraint holds since the sequence 1 1 4 8 8 2 does not contain any valley.

Figure 5.279.1. Illustration of the Example slot: a sequence of five variables V 1 , V 2 , V 3 , V 4 , V 5 , V 6 respectively fixed to values 1, 1, 4, 8, 8, 2 without any valley
ctrs/no_valley-1-tikz
Typical
|πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚|>3
πš›πšŠπš—πšπšŽ(πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚.πšŸπšŠπš›)>1
Symmetries
  • Items of πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚ can be reversed.

  • One and the same constant can be added to the πšŸπšŠπš› attribute of all items of πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚.

Arg. properties

Contractible wrt. πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚.

Counting
Length (n)2345678
Solutions95029517921108869498439791

Number of solutions for πš—πš˜_πšŸπšŠπš•πš•πšŽπš’: domains 0..n

ctrs/no_valley-2-tikz

ctrs/no_valley-3-tikz

See also

comparison swapped: πš—πš˜_πš™πšŽπšŠπš”.

generalisation: πšŸπšŠπš•πš•πšŽπš’Β (introduce a πšŸπšŠπš›πš’πšŠπš‹πš•πšŽ counting the number of valleys).

implied by: πšπšŽπšŒπš›πšŽπšŠπšœπš’πš—πš, πšπš•πš˜πš‹πšŠπš•_πšŒπš˜πš—πšπš’πšπšžπš’πšπš’, πš’πš—πšŒπš›πšŽπšŠπšœπš’πš—πš.

implies: πšŠπš•πš•_πšŽπššπšžπšŠπš•_πšŸπšŠπš•πš•πšŽπš’_πš–πš’πš—.

related: πš™πšŽπšŠπš”.

Keywords

characteristic of a constraint: automaton, automaton without counters, automaton with same input symbol, reified automaton constraint.

combinatorial object: sequence.

constraint network structure: sliding cyclic(1) constraint network(1).

Automaton

FigureΒ 5.279.2 depicts the automaton associated with the πš—πš˜_πšŸπšŠπš•πš•πšŽπš’ constraint. To each pair of consecutive variables (πš…π™°πš i ,πš…π™°πš i+1 ) of the collection πš…π™°πšπ™Έπ™°π™±π™»π™΄πš‚ corresponds a signature variable S i . The following signature constraint links πš…π™°πš i , πš…π™°πš i+1 and S i : (πš…π™°πš i <πš…π™°πš i+1 ⇔S i =0) ∧ (πš…π™°πš i =πš…π™°πš i+1 ⇔S i =1) ∧ (πš…π™°πš i >πš…π™°πš i+1 ⇔S i =2).

Figure 5.279.2. Automaton of the πš—πš˜_πšŸπšŠπš•πš•πšŽπš’ constraint
ctrs/no_valley-4-tikz
Figure 5.279.3. Hypergraph of the reformulation corresponding to the automaton of the πš—πš˜_πšŸπšŠπš•πš•πšŽπš’ constraint (since all states of the automaton are accepting there is no restriction on the last variable Q n-1 )
ctrs/no_valley-5-tikz