"Stirling Number"

Source: Internet
Author: User

Introduction and distinction of two types of Stirling number (refer to csdn from Acdreamer)

Stirling number I ---s (n,k): A method that ranks n objects into a K non-empty loop arrangement (ring).

Recursive: S (n, k) = (n-1) *s (n-1, K) + S (n-1, k-1); 1<= K<n

Explanation: Consider the n+1 element 1, the formation of a circular arrangement alone, the remainder of the S (n-1, k-1) species method

2, and other elements together to form a circular arrangement, n-1 elements to form K loop arrangement method number is S (n-1,k), insert a total of n methods, a total of n*s (n-1,k) species

Boundary Condition: s (i, 0) = 0, i>=1
S (i, I) = 1, i>=0

Stirling number II ---S (n,k): total of n elements placed in K-sets ( number of methods to divide n individuals into K non-empty rooms without differences )

K! S (p,k): The number of methods to divide n individuals into k (e.g., rooms marked with a room number) (no vacancies).

Recursive: S (n, k) = K*s (n-1,k) +s (n-1,k-1), 1<= k<n
Boundary Condition: s (i, 0) = 0, i>=1
S (i, I) = 1, i>=0

Stirling number I and Stirling number II have the same initial conditions, but the recurrence relationship is different .

Expand

Bell Number---b[n]

B N is the number of partitioning methods for the set of cardinality n . A division of Set s is a family of 22 disjoint non-empty sets defined as s , and they are s.

Each bell number is the Stirling Number II.

"Stirling Number"

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.