ChatGPT:s påverkan på effektivitet inom programmering
2024 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
ChatGPT:s effect on efficiency in programming (English)
Abstract [en]
Due to the increase in use and development of AI in recent times, institutions and companies around the world are becoming increasingly wary of the effects the use of AI will have on programming. Does the use of AI lead to increased efficiency and if so, how does it speed up the programming process and what effects can AI have on programming education? In this study, we examined how the assistance of ChatGPT affects time efficiency in programming. To investigate this an experimental study, in which 17 participants were asked to solve selected programming tasks of two varying difficulty levels, with and without the assistance of ChatGPT has been performed. Time efficiency was measured by comparing the time it took for participants to solve the task with and without ChatGPT, then calculating the average time it took to solve both tasks with and without the assistance of ChatGPT. The results showed that solving a programming task with the support of ChatGPT was more time-efficient, as participants on average solved both programming tasks faster with ChatGPT. The results further show that ChatGPT was more beneficial for advanced programming tasks where the time savings were more significant compared to simpler tasks where the time difference was not as noticeable.
Abstract [sv]
På grund av den ökande användningen och utvecklingen av AI på senare tid blir institutioner och företag runt om i världen alltmer oroade över vilka effekter användningen av AI kommer att ha på programmering. Leder användningen av AI till ökad effektivitet och i så fall, hur påskyndar den programmeringsprocessen och vilka effekter AI kan ha på programmeringsutbildning? I denna studie undersöks hur assistans av ChatGPT påverkar tids effektiviteten vid programmering. För att undersöka problemet har 17 deltagare utfört programmeringsuppgifter på olika svårighetsgrader, med och utan assistans av ChatGPT för att avgöra ChatGPT:s påverkan på tidseffektiviteten. Tidseffektiviteten mättes genom att jämföra tiden det tog för deltagarna att lösa uppgiften med och utan ChatGPT för att därefter få ut ett medelvärde på tiden det tog att lösa båda uppgifterna med och utan assistans av ChatGPT. Resultatet visade att programmering med ChatGPT som stöd var mer tidseffektivt då deltagarna i genomsnitt löste båda programmering uppgifterna snabbare med ChatGPT. Resultatet visade även att ChatGPT var till större nytta för avancerade programmeringsuppgifter där tidsbesparingarna var mer betydelsefull jämfört med enklare uppgifter där tidsskillnaden inte visade sig vara lika signifikant.
Place, publisher, year, edition, pages
2024. , p. 11
Series
TRITA-EECS-EX ; 2024:234
Keywords [en]
ChatGPT, OpenAI, Människa-Data interaktion, Programmering
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-349954OAI: oai:DiVA.org:kth-349954DiVA, id: diva2:1881810
Supervisors
Examiners
2024-08-082024-07-032024-08-08Bibliographically approved