Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Today, we are delving into derangements—these are permutations where no element appears in its original spot. Can anybody summarize what they think a derangement is?
A derangement is when we rearrange elements so that none of them stays in the same place.
Exactly! Now, let’s consider three elements: A, B, and C. What would a derangement look like?
One derangement could be C, A, B. Because A is not in the first place.
Great example! So, how many different derangements can we have with three items?
I think there are two: B, C, A and C, A, B.
Correct! There are 2 derangements for three items. Remember, the key concept is ensuring each element does not end up in its original position.
Now that we understand derangements, let's derive the recurrence relation for D(n), the number of derangements of n objects.
How do we start?
We consider the first element. If we place 'a' in the first position, where can it go next? This leads us to two categories of arrangement. Can any of you elaborate on those categories?
If 'a' goes to the kth position, we have D(n-2). But if it can't be in that position, we have D(n-1).
Exactly! So what do we get when we combine these ideas?
D(n) equals (n-1)(D(n-1) + D(n-2))!
Well done! This recurrence relation is crucial for calculating derangements efficiently as it reduces our problem size.
Derangements are more than theoretical constructs—they also apply in various fields! Can anyone think of situations where derangements might be useful?
Maybe in scheduling tasks, where no one gets assigned to their original tasks to ensure fairness?
Excellent point! They also appear in cryptography, matching problems like wedding arrangements, and organizational logic. Remember, understanding derangements helps in making these computations and decisions!
In derangements, not one can stay, each must move another way.
Imagine three friends, A, B, and C, who must swap places; they can't sit where they started. A sits in C's chair, C sits in B's, and B sits in A's—this is a derangement!
Remember D(n) = (n-1)(D(n-1) + D(n-2)) for calculating derangements!
D for Derangement, N for None in their own place!
Term
What is a derangement?
Click to flip
Term
What is the recurrence formula for derangements?
Click to flip
A permutation of n objects where none of the objects appear in their original position.
A formula that relates the terms of a sequence or series; in this case, it defines how to calculate derangements based on previous values.
The logical process of counting, arranging, and selecting objects in various configurations.
This section discusses the concept of derangements—permutations of n objects where no object appears in its original position—and derives the recurrence relation for calculating derangements.
The section illustrates the definition and properties of derangements in detail, categorizing them based on where the first element ends up. It establishes a recurrence relation to simplify calculating derangements and explains the significance of this in discrete mathematics and combinatorial contexts.
This section provides a thorough exploration of derangements, defined as permutations of n elements in which no element appears in its initial position. The focus is on deriving a recurrence relation for computing the number of derangements, denoted as D(n). The concept is grounded in combinatorial reasoning—where placement of the first element informs the configurations of the remaining elements.
The text introduces two key scenarios based on where the first element ends up:
Combining both categories leads to the relational formula:
D(n) = (n - 1) * (D(n - 1) + D(n - 2))
This recurrence relation offers a clear pathway to calculate derangements efficiently, reinforcing its application in combinatorial problems and decision-making scenarios involving arrangements.