0
0
Agentic AIml~20 mins

Task decomposition strategies in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Task Decomposition Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Task Decomposition in Agentic AI

Which of the following best describes the purpose of task decomposition in agentic AI systems?

ARandomly assigning tasks to agents without any hierarchy or structure
BCombining multiple simple tasks into one large task to reduce computation time
CEliminating subtasks to simplify the overall task and reduce errors
DBreaking a complex task into smaller, manageable subtasks to improve problem-solving efficiency
Attempts:
2 left
💡 Hint

Think about how big problems are easier to solve when split into smaller parts.

Model Choice
intermediate
2:00remaining
Choosing a Decomposition Strategy for Sequential Tasks

You have a task that requires completing steps in a strict order. Which decomposition strategy suits this best?

AHierarchical decomposition, where subtasks are arranged in a sequence with dependencies
BParallel decomposition, where subtasks run simultaneously without order
CRandom decomposition, where subtasks are assigned randomly to agents
DNo decomposition, solving the entire task as one block
Attempts:
2 left
💡 Hint

Consider the importance of order and dependencies between subtasks.

Predict Output
advanced
3:00remaining
Output of Recursive Task Decomposition Function

What is the output of the following Python function that decomposes a task recursively?

Agentic AI
def decompose(task, depth=0):
    if depth == 2:
        return [task]
    else:
        return [task + '_sub1'] + decompose(task + '_sub2', depth + 1)

result = decompose('task')
print(result)
A['task_sub1', 'task_sub2_sub1', 'task_sub2_sub2']
B['task_sub1', 'task_sub2_sub1']
C['task_sub1', 'task_sub2_sub1', 'task_sub2_sub2', 'task_sub2_sub2_sub1']
D['task_sub1']
Attempts:
2 left
💡 Hint

Trace the recursive calls and note when the base case stops recursion.

Metrics
advanced
2:00remaining
Evaluating Efficiency of Task Decomposition

You measure the time taken to complete a task with and without decomposition. Which metric best shows improvement due to decomposition?

ANumber of subtasks created regardless of time
BMemory usage increase after decomposition
CDecrease in average time per subtask compared to whole task time
DIncrease in total computation time after decomposition
Attempts:
2 left
💡 Hint

Think about how breaking tasks affects time efficiency.

🔧 Debug
expert
3:00remaining
Debugging Task Decomposition Logic in Agentic AI

Given the following pseudocode for decomposing tasks, which line causes a logical error that prevents proper subtask creation?

1: function decompose(task):
2:   subtasks = []
3:   if task is simple:
4:     return [task]
5:   for sub in task.subtasks:
6:     subtasks.append(decompose(task))
7:   return subtasks
ALine 2: Initializing subtasks as an empty list
BLine 6: Recursively decomposing the same task instead of the subtask
CLine 3: Incorrect condition to check if task is simple
DLine 7: Returning subtasks instead of the original task
Attempts:
2 left
💡 Hint

Look carefully at what is passed to the recursive call inside the loop.