Python for education: permutations
From MaRDI portal
Publication:6243657
arXiv1307.7042MaRDI QIDQ6243657
Author name not available (Why is that?)
Publication date: 26 July 2013
Abstract: Python implementation of permutations is presented. Three classes are introduced: Perm for permutations, Group for permutation groups, and PermError to report any errors for both classes. The class Perm is based on Python dictionaries and utilize cycle notation. The methods of calculation for the perm order, parity, ranking and unranking are given. A random permutation generation is also shown. The class Group is very simple and it is also based on dictionaries. It is mainly the presentation of the permutation groups interface with methods for the group order, subgroups (normalizer, centralizer, center, stabilizer), orbits, and several tests. The corresponding Python code is contained in the modules perms and groups.
Has companion code repository: https://github.com/ufkapano/perms-dict
This page was built for publication: Python for education: permutations
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6243657)