Identifier
- St000879: Permutations ⟶ ℤ
Values
[1] => 0
[1,2] => 0
[2,1] => 0
[1,2,3] => 0
[1,3,2] => 0
[2,1,3] => 0
[2,3,1] => 0
[3,1,2] => 0
[3,2,1] => 1
[1,2,3,4] => 0
[1,2,4,3] => 0
[1,3,2,4] => 0
[1,3,4,2] => 0
[1,4,2,3] => 0
[1,4,3,2] => 1
[2,1,3,4] => 0
[2,1,4,3] => 0
[2,3,1,4] => 0
[2,3,4,1] => 0
[2,4,1,3] => 0
[2,4,3,1] => 1
[3,1,2,4] => 0
[3,1,4,2] => 0
[3,2,1,4] => 1
[3,2,4,1] => 1
[3,4,1,2] => 0
[3,4,2,1] => 2
[4,1,2,3] => 0
[4,1,3,2] => 1
[4,2,1,3] => 1
[4,2,3,1] => 2
[4,3,1,2] => 2
[4,3,2,1] => 8
[1,2,3,4,5] => 0
[1,2,3,5,4] => 0
[1,2,4,3,5] => 0
[1,2,4,5,3] => 0
[1,2,5,3,4] => 0
[1,2,5,4,3] => 1
[1,3,2,4,5] => 0
[1,3,2,5,4] => 0
[1,3,4,2,5] => 0
[1,3,4,5,2] => 0
[1,3,5,2,4] => 0
[1,3,5,4,2] => 1
[1,4,2,3,5] => 0
[1,4,2,5,3] => 0
[1,4,3,2,5] => 1
[1,4,3,5,2] => 1
[1,4,5,2,3] => 0
[1,4,5,3,2] => 2
[1,5,2,3,4] => 0
[1,5,2,4,3] => 1
[1,5,3,2,4] => 1
[1,5,3,4,2] => 2
[1,5,4,2,3] => 2
[1,5,4,3,2] => 8
[2,1,3,4,5] => 0
[2,1,3,5,4] => 0
[2,1,4,3,5] => 0
[2,1,4,5,3] => 0
[2,1,5,3,4] => 0
[2,1,5,4,3] => 2
[2,3,1,4,5] => 0
[2,3,1,5,4] => 0
[2,3,4,1,5] => 0
[2,3,4,5,1] => 0
[2,3,5,1,4] => 0
[2,3,5,4,1] => 1
[2,4,1,3,5] => 0
[2,4,1,5,3] => 0
[2,4,3,1,5] => 1
[2,4,3,5,1] => 1
[2,4,5,1,3] => 0
[2,4,5,3,1] => 3
[2,5,1,3,4] => 0
[2,5,1,4,3] => 2
[2,5,3,1,4] => 2
[2,5,3,4,1] => 3
[2,5,4,1,3] => 5
[2,5,4,3,1] => 15
[3,1,2,4,5] => 0
[3,1,2,5,4] => 0
[3,1,4,2,5] => 0
[3,1,4,5,2] => 0
[3,1,5,2,4] => 0
[3,1,5,4,2] => 2
[3,2,1,4,5] => 1
[3,2,1,5,4] => 2
[3,2,4,1,5] => 1
[3,2,4,5,1] => 1
[3,2,5,1,4] => 2
[3,2,5,4,1] => 6
[3,4,1,2,5] => 0
[3,4,1,5,2] => 0
[3,4,2,1,5] => 2
[3,4,2,5,1] => 3
[3,4,5,1,2] => 0
[3,4,5,2,1] => 5
[3,5,1,2,4] => 0
[3,5,1,4,2] => 2
>>> Load all 601 entries. <<<
search for individual values
searching the database for the individual values of this statistic
/
search for generating function
searching the database for statistics with the same generating function
Description
The number of long braid edges in the graph of braid moves of a permutation.
Given a permutation π, let Red(π) denote the set of reduced words for π in terms of simple transpositions si=(i,i+1). We now say that two reduced words are connected by a long braid move if they are obtained from each other by a modification of the form sisi+1si↔si+1sisi+1 as a consecutive subword of a reduced word.
For example, the two reduced words s1s3s2s3 and s1s2s3s2 for
(124)=(12)(34)(23)(34)=(12)(23)(34)(23)
share an edge because they are obtained from each other by interchanging s3s2s3↔s3s2s3.
This statistic counts the number of such short braid moves among all reduced words.
Given a permutation π, let Red(π) denote the set of reduced words for π in terms of simple transpositions si=(i,i+1). We now say that two reduced words are connected by a long braid move if they are obtained from each other by a modification of the form sisi+1si↔si+1sisi+1 as a consecutive subword of a reduced word.
For example, the two reduced words s1s3s2s3 and s1s2s3s2 for
(124)=(12)(34)(23)(34)=(12)(23)(34)(23)
share an edge because they are obtained from each other by interchanging s3s2s3↔s3s2s3.
This statistic counts the number of such short braid moves among all reduced words.
Code
def long_braid_move_graph(pi):
V = [ tuple(w) for w in pi.reduced_words() ]
is_edge = lambda w1,w2: w1 != w2 and any( w1[:i] == w2[:i] and w1[i+3:] == w2[i+3:] and w1[i] != w2[i] and w1[i+2] != w2[i+2] and w1[i] == w1[i+2]for i in range(len(w1)-2) )
return Graph([V,is_edge])
def statistic(pi):
return len( long_braid_move_graph(pi).edges() )
Created
Jul 03, 2017 at 16:58 by Christian Stump
Updated
Apr 01, 2018 at 22:25 by Martin Rubey
searching the database
Sorry, this statistic was not found in the database
or
add this statistic to the database – it's very simple and we need your support!