קבוצות חלוקה לילדות
To divide the class into groups of 4 and ensure that every girl has at least one friend in her group, you can use a systematic approach. Here's a suggested way to do it:
Create a list of all the girls and their preferred friends:
makefileאיה: שירה, כרמל, קטורה ברכה: קטורה, שירה, ורד גילה: יהלי, ורד, צילה דינה: טליה, דינה, ורד הילה: סיגל, כרמל, טליה ורד: שירה, יהלי, טליה זיוה: שירה, יהלי, דינה חיה: כרמל, טליה, קטורה טליה: צילה, הילה, דינה יהלי: תמרה, דינה, קטורה כרמל: ורד, חיה, ברכה ליאת: ורד, דינה, תמרה מלכי: זיוה, סיגל, תמרה נעמי: שירה, הילה, חיה סיגל: שירה, נעמי, הילה ערפה: נעמי, הילה, סיגל פארלי: חיה, ליאת, זיוה צילה: צילה, ליאת, שירה קטורה: יהלי, טליה, נעמי רינה: יהלי, טליה, צילה שירה: ברכה, תמרה, צילה תמרה: נעמי, תמרה, חיה
Start with the girl who has the fewest friends in her preferences. In this case, it's "פארלי," who only has one friend, "חיה."
Assign "פארלי" and "חיה" to the same group. This ensures that "פארלי" has at least one friend in her group.
Remove "פארלי" and "חיה" from the list of girls and their preferences.
Repeat the process with the remaining girls, starting with the girl who now has the fewest friends in her preferences.
Continue assigning girls to groups until everyone is assigned to a group of 4.
Here's how the groups might look:
Group 1:
- פארלי
- חיה
- שירה
- תמרה
Group 2:
- ערפה
- נעמי
- הילה
- סיגל
Group 3:
- דינה
- מלכי
- זיוה
- טליה
Group 4:
- איה
- קטורה
- ורד
- ברכה
Group 5:
- יהלי
- כרמל
- נעמי
- צילה
Group 6:
- גילה
- ליאת
- תמרה
- רינה
This division ensures that every girl has at least one friend in her group, and the groups have an approximately equal number of girls.