Présentation du problème

Ascending Sort


Sort an array of integers in ascending order.

medium
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Determine array size and element distribution"
        }
      ],
      "goal": "Analyze the array structure"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Select a comparison-based algorithm suitable for the array size"
        }
      ],
      "goal": "Choose an appropriate sorting strategy"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Confirm that each element is less than or equal to the next"
        }
      ],
      "goal": "Validate the sorted array"
    }
  ],
  "goal": "Sort an array of integers in ascending order"
}
    

Generated Goals

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

  • Analyze the array structure
  • Determine array size and element distribution
  • Check if the array is already sorted
  • Determine the maximum element in the array
  • Select a comparison-based algorithm suitable for the array size
  • Validate the sorted array
  • Choose an appropriate sorting strategy
  • Count the number of negative numbers in the array
  • Confirm that each element is less than or equal to the next