DBox: Scaffolding Algorithmic Programming Learning through Learner-LLM Co-Decomposition
Shuai Ma, Junling Wang, Yuanhao Zhang, Xiaojuan Ma, April Yi Wang
TL;DR
DBox introduces a learner-led, LLM-supported approach to algorithmic programming learning by employing a structured step-tree that bridges thought processes and code. Through a two-stage workflow—solution formation and implementation—DBox provides adaptive, multi-level hints while preserving learner autonomy, addressing gaps identified in formative studies. Technical and user studies show that DBox improves learning outcomes, cognitive engagement, and perceived mastery, albeit with occasional LLM misjudgments that users navigate with hints and verification. The work offers design implications for personalized AI-powered programming education and argues for careful role allocation between learners and AI to maintain independence and critical thinking. Overall, DBox demonstrates the viability of learner-LLM co-decomposition as a scalable, student-centered tool for complex problem-solving in CS education.
Abstract
Decomposition is a fundamental skill in algorithmic programming, requiring learners to break down complex problems into smaller, manageable parts. However, current self-study methods, such as browsing reference solutions or using LLM assistants, often provide excessive or generic assistance that misaligns with learners' decomposition strategies, hindering independent problem-solving and critical thinking. To address this, we introduce Decomposition Box (DBox), an interactive LLM-based system that scaffolds and adapts to learners' personalized construction of a step tree through a "learner-LLM co-decomposition" approach, providing tailored support at an appropriate level. A within-subjects study (N=24) found that compared to the baseline, DBox significantly improved learning gains, cognitive engagement, and critical thinking. Learners also reported a stronger sense of achievement and found the assistance appropriate and helpful for learning. Additionally, we examined DBox's impact on cognitive load, identified usage patterns, and analyzed learners' strategies for managing system errors. We conclude with design implications for future AI-powered tools to better support algorithmic programming education.
