Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Find the minimum number of squads that you can send to battle meeting the given constraints. Background You are assembling a Rebel Army to fight
Find the minimum number of squads that you can
send to battle meeting the given constraints.
Background
You are assembling a Rebel Army to fight against
the Galactic Empire. For this you have invited
people from several influential families to join your
army. You want to create squads that can be sent
to battle the Empire. However you find that as
soon as you add a person with their
child, grandchild or any descendant in the same
squad they begin to give orders to the descendant
and the squad quickly falls apart. Your goal is to
find the minimum number of such squads that
you can create which do not have this problem.
In your army, each person has a maximum of
parent. A person may have one or more
ancestors that may be direct or indirect. is an
ancestor of if at least one of the following is true:
is a parent of direct ancestor
If is a parent of and is a parent of
then is an indirect ancestor of Indirect
ancestor is transitive through any number of
levels.
No two people will ever be mutual ancestors, and
no person is a parent of themselves. Determine
the minimum number of squads that must be
formed so that no person is in the same
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started