Présentation du problème

Find Minimum


Find the smallest element in an array.

easy
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Iteratively compare elements to track current minimum"
        }
      ],
      "goal": "Determine the minimal value by comparison"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Confirm no element is smaller than the candidate"
        }
      ],
      "goal": "Validate the identified minimum"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Ensure array is non-empty"
        }
      ],
      "goal": "Handle edge cases"
    }
  ],
  "goal": "Find the smallest element in the array"
}
    

Generated Goals

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

  • Iteratively compare elements to track current minimum
  • Sort the array in ascending order.
  • Determine the minimal value by comparison
  • Count the number of elements in the array.
  • Validate the identified minimum
  • Ensure array is non-empty
  • Determine the maximum element in the array.
  • Handle edge cases
  • Confirm no element is smaller than the candidate