[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-578213-105":59,"doc-detail-578213-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","assessing-graphical-loop-invariant-based-programming-performance-in-a-cs1-course","Assessing Graphical Loop Invariant Based Programming Performance in a CS1 Course","","The study investigates the pedagogical impact of Graphical Loop Invariant Based Programming (GLIBP) in an introductory CS1 programming course. Students visually model objects and variables involved in loop execution through a Graphical Loop Invariant (GLI) before coding. A four-condition A/B/C/D experiment across two loop problems compares different scaffolding levels, measuring code correctness, semantic error types, and GLI quality, alongside an anonymous survey. Results indicate that well-designed GLI support reduces loop-guard and variable-update errors, while many students struggle to understand or represent GLI, especially fill-in-the-blank versions.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/assessing-graphical-loop-invariant-based-programming-performance-in-a-cs1-course/578213/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/assessing-graphical-loop-invariant-based-programming-performance-in-a-cs1-course/578213.png","ImageObject",300,407,{"name":92,"@type":93},"Ivy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-10-15",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is Graphical Loop Invariant Based Programming (GLIBP) in this study?","Question",{"text":112,"@type":113},"GLIBP uses a Graphical Loop Invariant (GLI) to help students visually model objects and variables handled in a loop before writing code. The GLI is meant to support reasoning about loop guard evaluation and state changes.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How was GLIBP evaluated in the CS1 course?",{"text":117,"@type":113},"The authors ran a controlled classroom experiment with first-year CS students divided into four groups (A/B/C/D). Across two loop problems, students received different levels of GLI scaffolding and their code and GLI were analyzed using multiple metrics plus an anonymous survey.",{"name":119,"@type":110,"acceptedAnswer":120},"Which GLI scaffolding approach reduced student errors the most?",{"text":121,"@type":113},"Providing a completed GLI (Group D) helped students avoid semantic mistakes, such as incorrect variable initialization, wrong loop-guard identification, and reusing the same variable for multiple roles. Fill-in-the-blank GLI support (Group B) often increased cognitive burden.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},578213,1792231916,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":4},549758252649,"https://ap-avatar.wpscdn.com/avatar/8000253669c5317157?_k=1778319167496531819","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","cbCaiflJXNlNoQiu","https://ap.wps.com/l/cbCaiflJXNlNoQiu","pdf",1426017,38,"English","# Introduction\n## GLIBP and Graphical Loop Invariants (GLI)\n## Research questions and experimental design\n## Scaffolding conditions (A/B/C/D)\n# Findings and recommendations","[{\"question\":\"What is Graphical Loop Invariant Based Programming (GLIBP) in this study?\",\"answer\":\"GLIBP uses a Graphical Loop Invariant (GLI) to help students visually model objects and variables handled in a loop before writing code. The GLI is meant to support reasoning about loop guard evaluation and state changes.\"},{\"question\":\"How was GLIBP evaluated in the CS1 course?\",\"answer\":\"The authors ran a controlled classroom experiment with first-year CS students divided into four groups (A/B/C/D). Across two loop problems, students received different levels of GLI scaffolding and their code and GLI were analyzed using multiple metrics plus an anonymous survey.\"},{\"question\":\"Which GLI scaffolding approach reduced student errors the most?\",\"answer\":\"Providing a completed GLI (Group D) helped students avoid semantic mistakes, such as incorrect variable initialization, wrong loop-guard identification, and reusing the same variable for multiple roles. Fill-in-the-blank GLI support (Group B) often increased cognitive burden.\"}]","Assessing Graphical Loop Invariant Based Programming Performance in a CS1 Course | PDF",1792033301,96]