{
"children": [
{
"children": [
{
"children": [],
"goal": "Check if array is sorted"
}
],
"goal": "Analyze array characteristics"
},
{
"children": [
{
"children": [],
"goal": "Choose linear search if unsorted, binary search if sorted"
}
],
"goal": "Select search strategy"
},
{
"children": [],
"goal": "Validate presence result"
}
],
"goal": "Determine if a target value is present in the array"
}
Mixed goals generated by the LLM (correct + distractors).