项目作者: AlexPof

项目描述 :
C and Python code for brute-force enumeration of homometric subsets of dihedral groups
高级语言: C
项目地址: git://github.com/AlexPof/D_2n_Homometry.git
创建时间: 2017-11-20T21:45:00Z
项目社区:https://github.com/AlexPof/D_2n_Homometry

开源协议:

下载


D_2n Homometry

C algorithm for brute-force enumeration of homometric sets in the dihedral groups D_2n

See the paper Genuys G., Popoff A. (2017) Homometry in the Dihedral Groups: Lifting Sets from ℤn to Dn. In: Agustín-Aquino O., Lluis-Puebla E., Montiel M. (eds) Mathematics and Computation in Music. MCM 2017. Lecture Notes in Computer Science, vol 10527. Springer, Cham for more theoretical information.

==========

Compile the C program with gcc and start:

  1. >>> ./D2n_homomenumerate n p output_file

where

  • n is an integer defining the order of the D_2n dihedral group
  • p is an integer defining the cardinality of the subsets of D_2n to be
    1. examined.
  • output_file is the name of the output file to be written

For example:

  1. >>> ./D2n_homomenumerate 12 5 output.txt

Use the python script to count the unique homometric n-uples:

  1. >>> python D2n_homomcounts.py output.txt

With the above example:

  1. >>> python D2n_homomcounts.py
  2. # of left homometric subsets
  3. 2-uples: 8
  4. 3-uples: 2
  5. # of simultaneous left and right homometric subsets
  6. 2-uples: 8
  7. 3-uples: 2

The zip file partial_results.zip contains a partial enumeration of subsets of cardinality p in the dihedral groups D_2n, for p=4,5,6,7 and n from 8 to 18.