Présentation du problème

Linear Search


Check whether a value exists in an array.

easy
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Identify array length"
        }
      ],
      "goal": "Examine array characteristics"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Decide between linear or binary search"
        }
      ],
      "goal": "Choose search strategy"
    },
    {
      "children": [],
      "goal": "Validate search result"
    }
  ],
  "goal": "Determine if a target value is present in the array"
}
    

Generated Goals

Mixed goals generated by the LLM (correct + distractors).

  • Study the effect of array element ordering on search efficiency
  • Decide between linear or binary search
  • Validate search result
  • Choose search strategy
  • Analyze how array indexing affects cache performance
  • Examine the trade-offs between using a dynamic array versus a static array for lookup operations
  • Examine array characteristics
  • Identify array length