Fortran Understanding Permutations in Fortran Programming

AI Thread Summary
The discussion centers on seeking guidance for starting with Fortran programming, particularly in relation to a project involving permutations. The user is working with a set of colored balls and is exploring permutation composition, specifically how to determine the order of a permutation through repeated composition until reaching the identity. Key reasons for using Fortran include maintaining existing code, long-term familiarity, performance benefits, and course requirements. Participants encourage sharing pseudocode or existing code to provide targeted help rather than starting from scratch. Clarifications are requested regarding permutation notation and the identity operator's representation. The conversation emphasizes the importance of understanding the underlying concepts of permutations in the context of the project.
kevek
Messages
12
Reaction score
0
Is there anyone familiar with Fortran programming, who can give me some ideas how can I strart this? Many thanks


Take 5 colored balls(1,2,3,4,5).
The "multiplication" in the group is simply performing them after one another.
Permute the first and third one. Now permute the third and fifth one (note: by third one I mean the one in the third position, not the third ball which is not in the first position).
You have just composed the permutations (13) and (35). In effect, you have moved the first one to the fifth, the fifth one to the third and the third one to the first, so in cycle notation:
(35) o (13) = (153).
(where the composition o is to be read as: "after")
Then as in any group, a power is simply composing the permutation with itself, e.g.
(13)^2 = (13) o (13) = 1
(153)^2 = (153)(153) = (135)


subroutine that determines the order of the permutation
e.g. working out the order is simply composing until you get the identity e.g. (153)^3 = (135)(153) = 1
 
Technology news on Phys.org
Sorry to ask an impertinent question!
Most people who run fortran do so mostly for one of the following reasons:
1. working with existing Fortran code or libraries
2. know fortran for the past 35 years and have no intention or need to learn a new language
3. Fortran will generate the fastest code without much tweaking, a notion not agreed by all, but there is a certain degree of truth to it.
4. Many manual optimization/tweaking techniques are possible.
5. Required by the course instructor.

Do you happen to fall into the last category? Could you share with us the reasons for not using Excel, Java, C, C++, VB, Perl, Python, Mathlab, Maxima, Scilab??
 
cuz it's a part of my project.
 
If I understand correctly, you have to do your project using Fortran, with which you are not yet familiar.

I believe you have certainly acquired some experience in programming of some kind. Would you kindly show us your proposed pseudocode, and if possible, the actual code in Fortran or any other language, so we can better see where we could offer you help, instead of doing the project from scratch for you, which we are not permitted to do in this Forum.

Note:
As a matter of notation, you have quite clearly defined (13) as the permutation of 1 and 3. Could you kindly explain the meaning of the notation (153)=(35) o (13). Where do the digits 153 come from, and how are they ordered?
Could you confirm that the number 1 (without parentheses) represents the identity operator, or does it mean something else?
Hope to hear from you soon.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
10
Views
2K
Replies
8
Views
4K
Replies
16
Views
2K
Replies
5
Views
4K
Replies
5
Views
5K
Replies
2
Views
4K
Replies
1
Views
2K
Back
Top