Comp Sci Computional Methods Problem with Fortran programming

AI Thread Summary
Fortran programming is being explored for a project involving the representation of permutation groups as a data structure. The main program will utilize a module with type definitions, functions, and subroutines, employing operator overloading for permutation multiplication and exponentiation. Suggested functionalities include creating subroutines for inverting permutations, converting to cycle notation, and determining the parity of permutations. A reference link for generating permutations is provided to assist in the project. The discussion highlights the need for guidance on starting the implementation.
kevek
Messages
12
Reaction score
0
Is there anyone familiar with Fortran programming, who can give me some simple ideas or resources how can I strart this project? Many thanks


Data Structures - The Permutation Group
In this project, the group of permutations on N elements (where N is probably fairly small, perhaps N= 9 or less) is represented as a data structure. The main program employs the USE command to access a module containing the declarations, type definitions, functions and subroutines.
The module should use operator overloading to make * the multiplication operator between permutations, and ** a permutation taken to some ower. The module should also have a function or subroutine that determines the order of the permutation.

Options
1. Create a subroutine that inverts a permutation.
2. Create a subroutine that converts a permutation to cycle notation.
3. Create a subroutine that determines whether a permutation is even or odd.
4. Discuss how other algebraic structures could be represented and calculated.
 
Physics news on Phys.org
hi kevek.
did u figure how to start this ? i need your help with this question.
tq
 

Similar threads

Replies
1
Views
2K
Replies
5
Views
2K
Replies
7
Views
2K
Replies
8
Views
4K
Replies
7
Views
4K
Replies
10
Views
2K
Replies
1
Views
3K
Back
Top