Présentation du problème

Fibonacci


Display the first n terms of the Fibonacci sequence.

medium
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Identify base cases"
        },
        {
          "children": [],
          "goal": "Define recurrence relation"
        }
      ],
      "goal": "Determine Fibonacci generation strategy"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Collect terms into a list"
        },
        {
          "children": [],
          "goal": "Output the list"
        }
      ],
      "goal": "Format and present the sequence"
    }
  ],
  "goal": "Generate and display the first n Fibonacci terms"
}
    

Generated Goals

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

  • Define recurrence relation
  • Output the list
  • Explore the relationship between Fibonacci numbers and the golden ratio
  • Collect terms into a list
  • Identify base cases
  • Investigate the use of recursion versus iteration in generating Fibonacci numbers
  • Format and present the sequence
  • Determine Fibonacci generation strategy
  • Analyze the time complexity of generating Fibonacci numbers