Generate Permutations from Combinations Algorithm

Click For Summary
An algorithm for generating a specific permutation of a combination does exist, allowing users to input a combination and the desired permutation position to receive the output. The discussion highlights that while a simple algorithm is available, it is likely that similar algorithms are found elsewhere. The common method for generating permutations involves recursion, which is a widely recognized technique in programming. A reference link to a page explaining permutation generation through recursion is provided for further understanding.
mtanti
Messages
172
Reaction score
0
Does an algorithm exist for generating a particular permutation of a combination? You just input the combination and the position of the permutation and it outputs the permutation.
 
Computer science news on Phys.org
permutation #... yes i have one...but it prolly exists elsewhere too ..very simple algo .
 
ok but can you explain how it works? :/
 
I’ve spent nearly my entire life online, and witnessed AI become integrated into our lives. It’s clear that AI is apart of us now whether we like it or not, unless your a anti tech cabin lover. AI has some form of control over your life. But what I’ve seen very recently is that people are loosing their ingenuity and deciding to use AI. I feel as if it’ll bleed into STEM which is kinda has already and, every idea or thought could become fully reliant on AI. Yeah AI makes life easier but at a...

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
1K
Replies
9
Views
2K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K