https://github.com/pprattis/Permutations-and-their-properties
Write a program that receives an input with a permutation μ of [n] in the list format from natural numbers separated by the space character (eg 7 10 9 11 2 1 3 5 6 8 4) and prints some properties of the permutation μ.
https://github.com/pprattis/Permutations-and-their-properties
applied-mathematics permutation program python student
Last synced: 5 months ago
JSON representation
Write a program that receives an input with a permutation μ of [n] in the list format from natural numbers separated by the space character (eg 7 10 9 11 2 1 3 5 6 8 4) and prints some properties of the permutation μ.
- Host: GitHub
- URL: https://github.com/pprattis/Permutations-and-their-properties
- Owner: PetePrattis
- License: mit
- Created: 2019-10-15T14:54:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T15:10:23.000Z (over 6 years ago)
- Last Synced: 2024-11-17T11:53:30.922Z (over 1 year ago)
- Topics: applied-mathematics, permutation, program, python, student
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Python Exercise
**This is a simple python project from my early days as a Computer Science student**
_This programm was created for the second semester class Applied Algebra_
> #### Description of project
>
>>Write a program that receives an input with a permutation μ of [n] in the list format from natural numbers separated by the space character (eg 7 10 9 11 2 1 3 5 6 8 4) and prints the following information about the permutation μ:
>>1. The length of μ
>>2. The reverse of μ
>>3. The μ as the product of cycles
>>4. The μ as a product of transpositions
>>5. The parity of μ
> #### About this project
>
> - The comments to make the code understandable, are within the .py archive
> - This program runs for Python version 3.6+
> - This repository was created to show the variety of the work I did and experience I gained as a student
>