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'll discuss derangements. Can anyone tell me what a derangement is?
Is it like a permutation where everything is out of order?
Exactly! A derangement is a permutation of n objects where none of the objects appears in its original position. For example, if we have objects 1, 2, and 3, a derangement could be (2, 3, 1), but not (1, 2, 3).
So, how do we calculate the number of derangements?
Good question! We will derive a recurrence relation for it, which we’ll cover in detail later.
Can we think of a derangement as a shuffle of sorts?
That's a great analogy! A derangement ensures that every element 'shuffles' away from its original position.
Now let's discuss how we can categorize these derangements by looking at what happens with the first object. Why might that be useful?
It sounds like we can simplify the problem!
Exactly! We can have two categories. In the first, we consider the case where the first object occupies another position, say position k. What do we do then?
That leaves us with a smaller problem of deranging the remaining n-2 objects?
Correct! Now let’s say: If the first object cannot be in position k, what do we do?
We still have to derange all n-1 objects, and we have to ensure the first object isn’t in its original position.
That's right! Making these distinctions helps us break down the problem.
Let’s piece everything together into a recurrence relation for derangements D(n). Who can remind me what we had for our two categories?
One where we derange n-2 and one where we derange n-1!
Right! The formula we come up with is: D(n) = (n-1)(D(n-1) + D(n-2)). Understand why we multiply by (n-1)?
Because there are n-1 choices for the first position!
Excellent! Now let’s discuss what D(0) and D(1) are. What would they be?
D(0) would be 1 since there’s one way to arrange nothing.
And D(1) is 0 because we can’t derange a single object.
Great! So, we have our base cases. Remember this relation for solving problems involving derangements!
Can anyone give me an example of where we might encounter derangements in real life?
What about in password generation? Where elements should not be in their usual position?
Exactly! This idea is crucial in ensuring security. Another might be in assigning tasks where no one can be assigned to their original task. Any other examples?
How about seating arrangements for a wedding where nobody wants to sit next to their partner?
Spot on! Situations like these show how derangements are important in various fields.
I feel like I understand better how to apply derangements now.
A derangement is a permutation where none of the objects remains in its original position, specifically focusing on arrangements where the first object cannot occupy the first position.
The section outlines two primary categories of derangements, depending on whether the first element is allowed to occupy specific positions in the permutation or not.
The relationship between derangements of n objects is established by looking at the contributions from these two categories, leading to a recurrence relation.
This framework allows for simplifying the task of counting derangements and lays the groundwork for deeper exploration in combinatorial enumeration.
Derangements make a twist, all objects must be missed, in their places they can't reside, in new positions they must hide.
Once upon a time, a group of friends had to switch seats at a party, ensuring none of them sat in their own place. This curious game changed everything, showcasing how derangements work!
Remember: 'Derangements Demand Different Destinations!'
DOD: Derangement = Objects displaced.
Term
What is a derangement?
Click to flip
Term
What is the recurrence relation for D(n)?
Click to flip
The section discusses the concept of derangements, exploring the categorization and recursive relationships involved in determining the number of derangements for a given set of n objects.
This section focuses on derangements, defined as permutations where no object appears in its original position. It categorizes derangements based on the position of the first element and establishes a recurrence relation, illustrating the different cases to arrive at the total number of derangements.
Derangements of a set of n objects is a key concept in combinatorial mathematics. A derangement is defined as a permutation of elements where no element appears in its original position. This section introduces a systematic way to understand derangements by classifying them based on the position of the first element.
This framework allows for simplifying the task of counting derangements and lays the groundwork for deeper exploration in combinatorial enumeration.