Question 1
Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer:
- Ira and Omar report to Cyrus.
- Mira and Gaurav report to Ira.
- Sahil reports to Omar.
- The Head is Cyrus in HR department.
Question: Who is the direct manager of Gaurav?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Cyrus → Ira
- Cyrus → Omar
- Ira → Mira
- Ira → Gaurav
- Omar → Sahil
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Cyrus → Ira
- Cyrus → Omar
- Ira → Mira
- Ira → Gaurav
- Omar → Sahil
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.