Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
23.5.1. Categories of Derangements
Learn content
Interactive Audio Lesson
Unlock the classroom podcast
The transcript is free to read. A free account plays the conversation back.
Today, we are going to explore derangements. A derangement is essentially a permutation where no object is in its original position. For example, if we have three objects labeled 1, 2, and 3, the derangements would be 2, 3, 1 and 3, 1, 2.
So, if I understood correctly, for a derangement, each number has to move?
Exactly! Think about it like a party where no one can stay in their assigned seat. This ensures all arrangements are deranged.
Unlock the classroom podcast
The transcript is free to read. A free account plays the conversation back.
Now, let’s categorize derangements based on where the first element is placed. If we fix the first element in one position and see where it could go next, it can lead to two scenarios.
What are those scenarios?
First, the designated element can occupy another position, and we need to derange the remaining elements. The second scenario is when we don’t place the first element in its original seat, which alters the arrangement altogether.
Does this mean we can use previous results to find new derangements?
Precisely! This leads us to a recurrence relation.
Unlock the classroom podcast
The transcript is free to read. A free account plays the conversation back.
The recurrence relation is defined as D(n) = (n - 1) * (D(n - 1) + D(n - 2)). This means the number of derangements of n items can be expressed using its two previous terms. The initial conditions are D(0) = 1 and D(1) = 0.
Could you explain why those initial conditions are set that way?
Certainly! For D(0), there's one way to correctly arrange zero items, and for D(1), it’s impossible to derange one item.
Got it! So, using this relation, we can find derangements for larger sets?
Exactly! This is the power of recurrence! Let’s practice some calculations.
Overview
Short Summary
This section discusses the concept of derangements, defining them as permutations where none of the objects are in their original positions.
Medium Summary
Derangements, often represented by the notation D(n), are explored through a recursive framework. The section categorizes derangements based on where the first element could be placed and outlines a recurrence relation to express D(n) in terms of previous derangement values.
Detailed Summary
In this section, we delve into the concept of derangements, defined as specific permutations of n objects such that no object appears in its original position. We categorize derangements based on the position of the first element. We explore two primary scenarios: one where the first element is placed in a deranged position and one where it is not. This categorization leads us to the formulation of a recurrence relation, expressed as D(n) = (n-1) * (D(n-1) + D(n-2)), with initial conditions D(0) = 1 and D(1) = 0. Identifying the structured nature of derangements illuminates their combinatorial significance and applications in various mathematical contexts.
Reference YouTube Videos
Audio Book
Unlock the audio lesson
The script is above and free to read. A free account plays it back, in the voice you pick.
Create a free accountA derangement of n objects is a permutation of those n objects such that none of the objects is at its correct position.
Detailed Explanation
A derangement is a specific type of arrangement (or permutation) of objects where no object appears in its original position. For example, if we have three objects labeled 1, 2, and 3, a derangement would be an arrangement like (2, 3, 1) or (3, 1, 2), where no object retains its original index (1 is not in position 1, 2 is not in position 2, and so forth).
Examples & Analogies
Imagine you and two friends each have a unique hat, and you want to swap the hats such that no one wears their own hat. If everyone swaps their hats in a way that ends up with each person wearing a different friend's hat (like you wearing your friend's hat #3 and so on), that's a derangement.
Unlock the audio lesson
The script is above and free to read. A free account plays it back, in the voice you pick.
Create a free accountWe can divide the set of the derangements of n objects into 2 categories based on the element in the first position.
Detailed Explanation
The concept of categorizing derangements begins by fixing an item (let's call it 'a') in the first position. There are two scenarios to consider for the position of this item in a valid derangement. In the first category, the item 'a' can be placed in another position (let's say position 'k'). In this case, you will have disturbed the original arrangement of 'a' and will focus on deranging the remaining objects. In the second category, you avoid placing 'a' in position 'k'. This means you're further restricted as 'a' cannot occupy its original position or leave its assigned place, focusing now on the derangement of the rest of the items.
Examples & Analogies
Thinking of a class where students are rearranging their seats, let’s fix John in the front row. In the first category, John moves to a different seat in the same row, causing his previous seat to be filled by someone else, which changes how everyone else rearranges. In the second category, if John moves to another row entirely, he has still disrupted another person's seat arrangement while ensuring he doesn't end up where he started.
Unlock the audio lesson
The script is above and free to read. A free account plays it back, in the voice you pick.
Create a free accountCategory one: where element 'a' is occurring at the kth position; category two: where element 'a' is not allowed to occur at the kth position.
Detailed Explanation
In category one, placing 'a' in the kth position allows you to once again derange the remaining elements filling in the gaps. Thus, you can derive a number of derangements from the arrangements that only include the remaining n-2 elements. In category two, if 'a' cannot occupy the kth spot, the problem simplifies to deranging n-1 elements since 'a' now has other constraints on its movement. Effectively, both categories lead to manageable subproblems that can be solved systematically.
Examples & Analogies
Returning to our classroom analogy: if John can sit in another chair (the kth position), we're left with a bunch of seats available to rearrange others into new positions (which is category one). But if we've decided John cannot sit anywhere near his original desk (the kth position), then he has to choose from other options, leaving us to rethink the rest of the seating, narrowing our focus to a constrained arrangement of n-1 students.
--
Key concepts
Core takeaways and short definitions to help you quickly recall the key ideas from this section.
- Derangement:
A permutation where no element appears in its initial position.
- Recurrence Relation:
A mathematical expression related to prior terms that helps to generate new terms.
- Initial Conditions:
Specific known values that start the recursive sequence.
Examples
Memory aids
Imagine a dinner party where all guests must swap places with someone else, ensuring no one sits in their own seat.