Utilizing ChatGPT in a Data Structures and Algorithms Course: A Teaching Assistant's Perspective

Pooriya Jamie, Reyhaneh HajiHashemi and Sharareh Alipour

Abstract

Integrating large language models (LLMs) like ChatGPT into computer science education offers transformative potential for complex courses such as data structures and algorithms (DSA). This study examines ChatGPT as a supplementary tool for teaching assistants (TAs), guided by structured prompts and human oversight, to enhance instruction and student outcomes. A controlled experiment compared traditional TA-led instruction with a hybrid approach where TAs used ChatGPT-4o and ChatGPT o1 to generate exercises, clarify concepts, and provide feedback. Structured prompts emphasized problem decomposition, real-world context, and code examples, enabling tailored support while mitigating over-reliance on AI. Results demonstrated the hybrid approach’s efficacy, with students in the ChatGPT-assisted group scoring 16.50 points higher on average and excelling in advanced topics. However, ChatGPT’s limitations necessitated TA verification. This framework highlights the dual role of LLMs: augmenting TA efficiency while ensuring accuracy through human oversight, offering a scalable solution for human-AI collaboration in education.

Venue
CHI 2025
Volume
Proceedings of the Extended Abstracts of the CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3706599.3720291
PDF
https://dl.acm.org/doi/pdf/10.1145/3706599.3720291
Anthology ID
2025.chi-ea.794

Cite

@inproceedings{jamie-etal-2025-utilizing,
    title = {{Utilizing ChatGPT in a Data Structures and Algorithms Course: A Teaching Assistant's Perspective}},
    author = {Pooriya Jamie and Reyhaneh HajiHashemi and Sharareh Alipour},
    booktitle = {Proceedings of the Extended Abstracts of the CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400713958},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3706599.3720291},
    url = {https://doi.org/10.1145/3706599.3720291},
    abstract = {Integrating large language models (LLMs) like ChatGPT into computer science education offers transformative potential for complex courses such as data structures and algorithms (DSA). This study examines ChatGPT as a supplementary tool for teaching assistants (TAs), guided by structured prompts and human oversight, to enhance instruction and student outcomes. A controlled experiment compared traditional TA-led instruction with a hybrid approach where TAs used ChatGPT-4o and ChatGPT o1 to generate exercises, clarify concepts, and provide feedback. Structured prompts emphasized problem decomposition, real-world context, and code examples, enabling tailored support while mitigating over-reliance on AI. Results demonstrated the hybrid approach’s efficacy, with students in the ChatGPT-assisted group scoring 16.50 points higher on average and excelling in advanced topics. However, ChatGPT’s limitations necessitated TA verification. This framework highlights the dual role of LLMs: augmenting TA efficiency while ensuring accuracy through human oversight, offering a scalable solution for human-AI collaboration in education.}
}