If n objects are to be permuted, this can be done in n! different ways. One finds several algorithms on the internet producing tables of permutations
with fancy properties. I once found a fast algorithm to compute the Nth permutation of length n (0
You may contact with the website administrators and ask them where they got this algorithm from.
Good luck with that.
This algorithm connects Factorial Number System with permutations.
Maybe this is the first article about it:
Laisant, Charles-Ange (1888), "Sur la numération factorielle, application aux permutations", Bulletin de la Société Mathématique de France (in
French) 16: 176–183.
Since, i can't get it from your algorithm, i implement it in few lines of Python from the article given by Vera.
You can get it from the attached link.
https://github.com/christophesaintjean/christophesaintjean.github.io/blob/master/Python/Factorial%20numeration%20and%20permutations.ipynb
Ahmad, the perl website still exists but the content is far too old and the purpose was just to show off with a compact program. There was no further reference.
Vera, the paper you cited indeed contains the required information. Thank you. I somehow expected the procedure to link with an old result.
Christophe, your implementation is probably more efficient than my old C-implementation.
Thanks to all. I can now give due reference whenever I use this kind of algorithm.
Let two positive integers n and m be given. How many pairs of integers (x,y) can one find in the range 1..n such that (i) all x's are different, (ii) all y's are different, (iii) all x+y's are...
04 May 2016 1,546 15 View
Suppose given an m-sequence M over a field Fq of size q (a prime power) and of order s. In other words: there is a primitive polynomial f(x) of degree s over Fq serving as the characteristic...
09 October 2015 6,919 6 View
Hiiiii everyone! I have an enquiry on statistical analysis. I was looking for many forum and it's still cannot solve my problem. I want to compare means of two groups of data but only with two...
03 March 2021 8,796 3 View
I am on the lookout for the Enhanced Yellow Fluorescent Protein (Aequorea victoria) DNA sequence. Does anyone know where I can find it? Thank you in advance
03 March 2021 3,568 1 View
Hi, I want to start testing pitfall trap to obtain ants samples, but I need to conduct molecular analysis on those insects. So, what kind of fluid can I use? Ethanol expires too early and I need...
03 March 2021 5,978 5 View
What's the best way to measure growth rates in House sparrow chicks from day 2 to day 10? Since, the growth curve from day 2 to 10 won't be like the "Logistic curve" it might not follow logistic...
03 March 2021 1,401 3 View
Hi, I am after the reference below, my library says it cannot obtain a copy either locally or internationally, any help appreciated! Chris Wang ZM, Heshka S, Wielopolski L, Pi-Sunyer FX, Pierson...
03 March 2021 6,193 1 View
I have conducted and published a systematic review and meta-analysis research with the topic related to public health and health pomotion (protocol was registed in PROSPERO). Now we want to...
03 March 2021 8,920 3 View
dear community, my model is based feature extraction from non stationary signals using discrete Wavelet Transform and then using statistical features then machine learning classifiers in order to...
03 March 2021 6,994 5 View
I'm dealing with a mediation model and am using the PROCESS module in SPSS. Due to SPSS and PROCESS being limited in the imputation methods - being unable to handle multiple imputation - the other...
02 March 2021 4,362 1 View
I just wanted to check if I need to run a linear regression separately if I am using PROCESS MACRO to run mediation analysis. Thank you.
02 March 2021 4,359 3 View
If the detection range is in ng/ml but the reference range is in ug/ml for a molecule or protein in serum or plasma .how to dilute and what is the initial volume to be taken for quantitative analysis
02 March 2021 7,670 3 View