Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Devise an algorithm for generating all the r-permutations of a finite set when repetition is allowed.

Short Answer

Expert verified

Device an algorithm for generating all the \(r - \)permutation of a finite set when repetition is allowed.

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Step 1:

\({a_1},{a_2},.............,{a_n}\)and each\({a_i} < n\)

\(i = r\)

When\({r_i} = n\)

\(\left\{ \begin{array}{l}{a_i} = 1\\i:i - 1\end{array} \right\}\)

\(\left\{ {{a_i} = {a_i} + 1} \right\}\)

02

Step 2:

Given:

Repetition is allowed.

Concept used.

\(r\)Permutation of n element when repetition is allowed\({n_{{p_r}}} = \frac{{n!}}{{r!}}\)

Calculation:

\({a_1},{a_2},{a_3}.............,{a_n}\) be positive integer, \({a_i} < n\) procedure

\(i = r\)

While\({a_i} = n\)

\(\begin{array}{l}{a_i} = 1\\i:i - 1\end{array}\)

So, the result will be

\({a_1},{a_2},.............,{a_r}\) Is the next permutation in lexicographic order.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Show that (pr)(qr)and are logically equivalent

What is the coefficient ofx9in(2x)19?

An ice cream parlour has \({\rm{28}}\) different flavours, \({\rm{8}}\) different kinds of sauce, and \({\rm{12}}\) toppings.

a) In how many different ways can a dish of three scoops of ice cream be made where each flavour can be used more than once and the order of the scoops does not matter?

b) How many different kinds of small sundaes are there if a small sundae contains one scoop of ice cream, a sauce, and a topping?

c) How many different kinds of large sundaes are there if a large sundae contains three scoops of ice cream, where each flavour can be used more than once and the order of the scoops does not matter; two kinds of sauce, where each sauce can be used only once and the order of the sauces does not matter; and three toppings, where each topping can be used only once and the order of the toppings does not matter?

a) What is the difference between an r-combination and an r-permutation of a set with n elements?

b) Derive an equation that relates the number of r-combinations and the number of r-permutations of a set with n elements.

c) How many ways are there to select six students from a class of 25 to serve on a committee?

d) How many ways are there to select six students from a class of 25 to hold six different executive positions on a committee?

a) Derive a formula for the number of permutations ofobjects of k different types, where there aren1 indistinguishable objects of type one,n2 indistinguishable objects of type two,..., andnk indistinguishable objects of type k.

b) How many ways are there to order the letters of the word INDISCREETNESS?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free