in Combinatory
229 views
0 votes
0 votes
Develop an algorithm for generating the $r$-permutations of a set of $n$ elements.
in Combinatory
by
229 views

1 Answer

0 votes
0 votes
1. Let us take two variables r and n (r<=n)

2. Permutation (n,r)

3.for (I=n,i<=n-r+1,i--)

 do n*r

4.sum of all these products

5.final answer.//    ( I am not sure , I require help)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true