{
"children": [
{
"children": [
{
"children": [],
"goal": "Identify base case and recursive relation"
}
],
"goal": "Understand factorial definition"
},
{
"children": [
{
"children": [],
"goal": "Choose iterative or recursive approach"
}
],
"goal": "Plan computation strategy"
},
{
"children": [
{
"children": [],
"goal": "Check against known factorial values"
}
],
"goal": "Validate result"
}
],
"goal": "Calculate the factorial of a positive integer"
}
Mixed goals generated by the LLM (correct + distractors).