multidimensional necklaces
play

Multidimensional Necklaces: Enumeration, Generation, Ranking and - PowerPoint PPT Presentation

Multidimensional Necklaces: Enumeration, Generation, Ranking and Unranking Duncan Adamson , Argyrios Deligkas, Vladimir V. Gusev and Igor Potapov University of Liverpool, Department of Computer Science April 8, 2020 Background Necklaces


  1. Multidimensional Necklaces: Enumeration, Generation, Ranking and Unranking Duncan Adamson , Argyrios Deligkas, Vladimir V. Gusev and Igor Potapov University of Liverpool, Department of Computer Science April 8, 2020

  2. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Crystals Crystals are a fundamental material structure defined by an infinitely repeating unit cell. Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 1 / 21

  3. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Unit Cells O − O − Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 2 / 21

  4. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Unit Cells O − O − Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 3 / 21

  5. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography The Problem • Given a unit cell in d dimensions of size N 1 × N 2 × . . . × N d , and k − 1 types of ions, how many ways of arraigning ions in the cell are there up to translational equivalence? • We assume that the space is discrete and there is no limits on how many of each type of ion can be placed. Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 4 / 21

  6. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography The Problem • Given a unit cell in d dimensions of size N 1 × N 2 × . . . × N d , and k − 1 types of ions, how many ways of arraigning ions in the cell are there up to translational equivalence? • We assume that the space is discrete and there is no limits on how many of each type of ion can be placed. • Idea: Represent each unit cell as a multidimensional string. • Represent each ion as a character plus one for blank space. • This gives an alphabet of size k . Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 4 / 21

  7. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography A side note on Quasicrystals • Normally one would assume 3 dimensions would be sufficient to capture real world objects. • Quasicrystals are an exception to this, they are translationally symmetric, but only when considered as the embedding of a higher dimensional structure into 3 dimensions. • In three dimensions they appear aperiodic with regards to translational symmetry. Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 5 / 21

  8. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Necklaces • In one dimension, counting the number of arraignments corresponds to counting the number of Necklaces of size N 1 over an alphabet of size k . • A necklace is the lexicographically smallest representation of a cyclic string. • This means every necklace is unique under cyclic rotation. a a abbc bbca c b bcab b cabb Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 6 / 21

  9. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Necklaces • In one dimension, counting the number of arraignments corresponds to counting the number of Necklaces of size N 1 over an alphabet of size k . • A necklace is the lexicographically smallest representation of a cyclic string. • This means every necklace is unique under cyclic rotation. a a abbc bbca c b bcab b cabb • Problem • Crystals are not 1d. • How can we generalise the concept of necklaces to multiple dimensions? Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 6 / 21

  10. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography What is known about necklaces? • Necklaces are a heavily studied combinatorial object, the main results are: • Enumeration : How many necklaces are there for a given alphabet? • Generation : How can we quickly generate all necklaces in order? • Ranking : How many necklaces are there smaller than a given necklace? • Unranking : How can we generate the necklace corresponding to a given rank? Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 7 / 21

  11. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Multidimensional Necklaces • A multidimensional cyclic string is the generalisation of a cyclic string into more than 1 dimension. • Here we may rotate along one or more dimension. • A multidimensional necklace is the lexicographically smallest rotation of a cyclic string. • The lexicographical ordering will be “book” style. d 1 1 2 3 10 11 12 d 2 4 5 6 13 14 15 7 8 9 16 17 18 d 3 Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 8 / 21

  12. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Multidimensional Necklaces d 1 (1 , 0) d 2 (1 , 1) (0 , 1) (0,1) (1,0) Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 8 / 21

  13. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Multidimensional Necklaces • Each necklace will be defined over some alphabet Σ of length k . • The largest dimension will be denoted d . • The length of the necklace in dimension i will be N i . • This gives the total size as N 1 × N 2 × . . . × N d . • We will use m to denote the total number of positions, i.e. m = N 1 × N 2 × . . . × N d . • The set of necklaces of size N 1 × N 2 × . . . × N d over alphabet k will be denoted N N 1 , N 2 ,..., N d . k Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 9 / 21

  14. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Enumeration • The symmetry of this space may be captured by the direct product of the cyclic groups Z N i for each i from 1 to d . • G = × d i =1 Z N i • This can be used with the P´ olya ennumeration theorem to giving: 1 � � � N N 1 , N 2 ,..., N d � k c ( g ) � = � � k | G | g ∈ G • Here c ( g ) returns the number of cycles of group operation g . • Note also that | G | = m by definition. Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 10 / 21

  15. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Example (2) (4) (2) (4) (2) (4) = Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 11 / 21

  16. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography c ( g ) • Given an action g ∈ G with a rotation by g i in dimension i , what is c ( g )? • Let l i be the length of the cycles in dimension i . • In one dimension, we want the smallest l i such that l i · g i mod N i ≡ 0. N i • This is given by l i = GCD ( N i , g i ) . • As all cycles will have the same length under translation, this gives (for one dimension): c ( i ) = N i = GCD ( N i , g i ) l i Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 12 / 21

  17. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography c ( g ) in multiple dimensions • Observe that the rotation in each dimension acts independently. • For the cycle to be complete, we need the smallest j such that, for each i from 1 to d , j · g i mod N i ≡ 0. • Note that each l i must be a factor of j so that j · g i mod N i ≡ 0. • Therefore the smallest j will be the least common multiple of l 1 , l 2 , . . . , l d . • Thus: c ( g ) = m m j = LCM ( GCD ( N 1 , g 1 ) , . . . , GCD ( N d , g d )) Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 13 / 21

  18. Background Necklaces Multidimensional Necklaces Enumeration Other Results Bibliography Enumeration - Can we do better • If we can work out quickly how many times each value of c ( g ) occurs, we remove a large amount of computation. • In the 1 d case, this is quite straight forward: • Given two rotations, by i and j , c ( i ) = c ( j ) iff GCD ( N 1 , i ) = GCD ( N 1 , j ). • This means we only need to consider factors of N 1 , as for any rotation by i , GCD ( N 1 , i ) must be a factor of N 1 . • Given GCD ( N 1 , i ) = l , the number of groups where c ( g ) = l � � N 1 is given by φ . l • Putting these observations together gives: � = 1 � N 1 � � � � N N 1 � k f φ � � k N 1 f f | N 1 Duncan Adamson , Argyrios Deligkas, Multidimensional Necklaces: Vladimir V. Gusev and Igor Potapov April 8, 2020 14 / 21

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend