First class Stirling number and second class Stirling number __ theory

Source: Internet
Author: User
First class Stirling number S (p,k)

A combinatorial interpretation of S (p,k) is the number of methods that arrange P objects into K-non-empty loops.

Recursive formula for S (p,k): s (p,k) = (p-1) *s (p-1,k) +s (p-1,k-1), 1<=k<=p-1

Boundary conditions:s (p,0) =0, p>=1 S (p,p) =1, p>=0

Description of recurrence Relationship:

Considering the P item, p can constitute a non-empty loop arrangement, so that the former p-1 items constitute k-1 loops, and the method number is S (p-1,k-1);

It is also possible for the former p-1 to form a K-Non-empty loop, while the P-item is inserted to the left of the first item, which has the (p-1) *s (p-1,k) method. Second Class Stirling number S (p,k)

A combinatorial interpretation of S (P,K) is the number of methods that divide p objects into K-Non-empty, indistinguishable (which can be understood to be no number of boxes).

S (p,k) is the number of methods that separate p individuals into k-rooms (e.g., marked with room numbers) (no vacancies).

The recursive formula for S (p,k) is:s (p,k) =k*s (p-1,k) +s (p-1,k-1), 1<= k<=p-1

Boundary conditions:s (p,p) =1, p>=0 S (p,0) =0, P>=1

Description of recurrence Relationship:

Considering the P item, p can constitute a non-empty set, at which point the former P-1 object constitutes a k-1, Non-empty set, with the method number S (p-1,k-1);

It is also possible to form a K-non-empty set of p-1 items, and the P items are placed in any one, so that there is a k*s (p-1,k) method.

The first kind of Stirling number has the same initial condition as the second kind of Stirling number, but the recurrence relation is different.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.