[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-462481-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-462481-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","assessing-graphical-loop-invariant-based-programming-performance-in-a-cs1-course-abstract","Assessing Graphical Loop Invariant Based Programming Performance in a CS1 Course - Abstract","","The study investigates the pedagogical impact of Graphical Loop Invariant Based Programming (GLIBP) in an introductory CS1 course by using a four-condition A/B/C/D experimental design across two loop problems. Students received different GLI scaffolding levels: none, a fill-in-the-blank GLI, self-constructed GLI, or a fully completed GLI. Code analysis indicates that a well-designed GLI reduces errors about loop guards and variable updates, while many students struggle to interpret or represent GLIs, with fill-in-the-blank formats increasing cognitive load.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/assessing-graphical-loop-invariant-based-programming-performance-in-a-cs1-course-abstract/462481/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/assessing-graphical-loop-invariant-based-programming-performance-in-a-cs1-course-abstract/462481.png","ImageObject",300,407,{"name":42,"@type":43},"percent12345","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-09-30",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is GLIBP and how is it used in the study?","Question",{"text":63,"@type":64},"GLIBP has students graphically model a Graphical Loop Invariant (GLI) describing objects, variables, and relationships before writing loop code. The GLI must hold at initial, final, and in-loop states.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How were students grouped in the A/B/C/D experiment?",{"text":68,"@type":64},"Participants were divided into four groups. Group A received no GLI support, Group B used a fill-in-the-blank GLI, Group C created the GLI themselves, and Group D received a completed GLI.",{"name":70,"@type":61,"acceptedAnswer":71},"Which GLI scaffolding worked best and why?",{"text":72,"@type":64},"Providing a completed GLI (Group D) helped students avoid semantic mistakes such as incorrect initialization, misidentifying the loop guard, and reusing variables for multiple roles. The fill-in-the-blank GLI often added cognitive load because many students had difficulty understanding or completing the diagram.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},462481,1791512353,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},1099529851338,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Informatics in Education, 2026, Vol. 25, No. 2, 19–56 19  \n© 2026 G. Brieven, B. Donnet. Published by Vilnius University and Tallinn University DOI: [https://doi.org/10.15388/infedu.2507.010](https://doi.org/10.15388/infedu.2507.010)  \nAssessing Graphical Loop Invariant Based Programming Performance in a CS1 Course  \nGéraldine BRIEVEN 1,∗, Benoit DONNET2  \n1 Montefiore Institute, Université de Liège, Belgium  \n2 Montefiore Institute, Université de Liège, Belgium [e-mail: gbrieven@uliege.be](e-mail: gbrieven@uliege.be), benoit.donnet@uliege.be  \nAbstract. We investigate the pedagogical impact of Graphical Loop Invariant Based Programming (GLIBP) in an introductory programming course. This approach encourages students to visually model the objects and variables handled in the loop, before implementing it. To evaluate the efficiency of this GLI model, a four-condition A/B/C/D test was conducted across two problems, with students receiving varying levels of scaffolding (from no support to a fully constructed GLI) . Analysis of students’ code showed that a well-designed GLI reduced errors related to the loop guard and the update of variables. However, many students struggled to understand or represent a GLI. The fill-in-the-blank GLI version, in particular, often added cognitive load rather than reducing it. Three recommendations emerged: train students to interpret a provided GLI when writing code; second, teach students to sketch their own model by recognizing similarities to previously solved problems; finally, guide students with questions to ensure all necessary variables and relationships are properly identified.  \nKeywords: Graphical Loop Invariant Based Programming, CS1, A/B Testing, Diagrammatic Reasoning, Student Difficulties.  \n1. Introduction  \nImplementing loops remains among the most challenging aspects for novice programmers (Cherenkova et al. (2014); Scapin and Mirolo (2019)) . As main difficulties, Morazán (2020) points out the abstract reasoning required to correctly mutate state variables and terminate the loop. In this paper, we explore Graphical Loop Invariant Based Programming (GLIBP), designed to construct loops in a structured and logical way. GLIBP encourages students to graphically describe variable states through a Graphical Loop Invariant (GLI), before writing any code. This diagrammatic reasoning is intended to shift students’ focus from trial-and-error coding toward more thoughtful and systematic solution analysis.  \nGLIBP draws inspiration from formal methods, particularly invariants, as introduced by Dijkstra (1976) and others. Here, these concepts are made more accessible by using informal, visual representations, referred to as a GLI. A GLI illustrates the objects and the variables involved in a loop solution, as well as the relationships between them. The GLI  \n∗Corresponding author.  \n20 G. Brieven, B. Donnet  \nmust hold at each evaluation of the loop guard: before entering the loop (Initial State), when exiting the loop (Final State), and before and after each iteration of the loop body (In-loop State) . During the execution of the loop body, intermediate results are refined and the GLI may temporarily become false. However, subsequent updates within the same iteration must restore the GLI while making progress toward loop termination. Once the GLI is successfully restored and progress is ensured, the loop body is complete.  \nIn practice, Walker (2023) and our own observations suggest that GLIBP introducesa notable learning curve. Students often struggle to construct meaningful representations or interpret instructor-provided ones. It raises questions about its practical effectiveness in introductory programming (CS1) settings. To address them, we designed a controlled classroom experiment to evaluate the effectiveness and limitations of GLIBP. Our study is guided by three research questions (RQs):  \nRQ 1: Does the GLI help students in finding a solution to a loop-based problem?  \nRQ 2: Does GLI","cbCaiaMplsZNlEUQ","https://ap.wps.com/l/cbCaiaMplsZNlEUQ","pdf",6144096,38,"English","# Introduction\n## Background and motivation\n## Research questions\n## Study design and groups\n## Evaluation approach and measures\n## Results and recommendations","[{\"question\":\"What is GLIBP and how is it used in the study?\",\"answer\":\"GLIBP has students graphically model a Graphical Loop Invariant (GLI) describing objects, variables, and relationships before writing loop code. The GLI must hold at initial, final, and in-loop states.\"},{\"question\":\"How were students grouped in the A/B/C/D experiment?\",\"answer\":\"Participants were divided into four groups. Group A received no GLI support, Group B used a fill-in-the-blank GLI, Group C created the GLI themselves, and Group D received a completed GLI.\"},{\"question\":\"Which GLI scaffolding worked best and why?\",\"answer\":\"Providing a completed GLI (Group D) helped students avoid semantic mistakes such as incorrect initialization, misidentifying the loop guard, and reusing variables for multiple roles. The fill-in-the-blank GLI often added cognitive load because many students had difficulty understanding or completing the diagram.\"}]","Assessing Graphical Loop Invariant Based Programming Performance in a CS1 Course - Abstract | PDF",1790764205,96,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/840b23a37b6ed2e523cde7e03b0c09a6.webp",983,1387,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c4ba2bfe23f967f5bf34f8f910e9aea4.webp",982,1386,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3092061598bf935b71268ecabbb0bb73.webp",981,1385,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f8fc0f145c91f07d262e44d41cd8c275.webp",980,1383]