Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 17802

Questions related to permutations, bijections from a finite (or sometimes infinite) set to itself.

0 votes
3 answers
795 views

Computing Permutations with Partial Duplicates

I am looking for a way to compute the number of $K$ permutations of a multiset with $N*D$ elements where each group has exactly $D$ equal elements (and typically $D < N$ ). … a <- append(1:N, append(1:N, 1:N)) b <- unique(gtools::permutations(length(a), K, a, set=FALSE)) nrow(b) in this case will be 130,302. This is slow and inelegant. …
dustin's user avatar
  • 111