[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-467699-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-467699-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":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","empirical-evaluation-of-unoptimized-sorting-algorithms-on-8-bit-avr-arduino-microcontrollers-academic-study","Empirical Evaluation of Unoptimized Sorting Algorithms on 8-Bit AVR Arduino Microcontrollers - Academic Study","","Resource-constrained sensor nodes in Internet-of-Things and embedded sensing rely on low-cost microcontrollers where algorithmic design choices affect latency, energy use, and memory footprint. This study empirically evaluates six classical sorting algorithms (Bubble, Insertion, Selection, Merge, Quick, Heap) on Arduino Uno, Leonardo, and Mega 2560 using unoptimized implementations. Performance is measured via execution time, write operations, and SRAM usage across random, ascending, and descending datasets as array size increases. Results contrast O(n2) versus O(n log n), highlighting memory limitations and identifying heap sort as the most robust choice under SRAM constraints.",{"@graph":14,"@context":72},[15,34,55],{"@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/empirical-evaluation-of-unoptimized-sorting-algorithms-on-8-bit-avr-arduino-microcontrollers-academic-study/467699/",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/empirical-evaluation-of-unoptimized-sorting-algorithms-on-8-bit-avr-arduino-microcontrollers-academic-study/467699.png","ImageObject",300,407,{"name":42,"@type":43},"hdkawk","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-09-30",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Which sorting algorithms are evaluated in the study?","Question",{"text":62,"@type":63},"The study evaluates Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Quick Sort, and Heap Sort.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How is the performance of each algorithm measured?",{"text":67,"@type":63},"Execution time, number of write operations, and SRAM (memory usage) are measured while running unoptimized implementations.",{"name":69,"@type":60,"acceptedAnswer":70},"What determines whether an algorithm can handle larger inputs?",{"text":71,"@type":63},"On these 8-bit AVR Arduino-class microcontrollers, available SRAM capacity limits the maximum feasible array size, and recursive/stack-heavy behavior can cause failures even if runtime seems acceptable.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},467699,1792166963,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"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":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"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":33,"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},3985747859855,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Article  \nEmpirical Evaluation of Unoptimized Sorting Algorithms on 8-Bit AVR Arduino Microcontrollers  \nJulia Golonka and Filip Kruel *  \nAcademic Editor: Rosario Schiano LoMoriello  \nReceived: 25 November 2025  \nRevised: 21 December 2025  \nAccepted: 27 December 2025  \nPublished: 29 December 2025  \nCopyright: © 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.  \nFaculty of Computer Science and Mathematics, Cracow University of Technology, 31-155 Kraków, Poland; [julia.golonka@student.pk.edu.pl](julia.golonka@student.pk.edu.pl)  \n* [Correspondence: filip.kruzel@pk.edu.pl](Correspondence: filip.kruzel@pk.edu.pl)  \nAbstract  \nResource-constrained sensor nodes in Internet-of-Things (IoT) and embedded sensing applications frequently rely on low-cost microcontrollers, where even basic algorithmic choices directly impact latency, energy consumption, and memory footprint. This study evaluates six sorting algorithms—Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Quick Sort, and Heap Sort—in the restricted environment that microcontrollers provide. Three Arduino boards were used: Arduino Uno, Arduino Leonardo, and Arduino Mega 2560. Each algorithm was implemented in its unoptimized form and tested on datasets of increasing size, emulating buffered time-series sensor readings in random, ascending, and descending order. Execution time, number of write operations, and memory usage were measured. The tests show clear distinctions between the slower O(n2 ) algorithms and the more efficient O (n log n ) algorithms. For random inputs of n = 1000 elements, Bubble Sort required 1,958,193.75 µson average, whereas Quick Sort completed it in 54,260.50 µs and Heap Sort in 92,429.00 µs, i.e., speedups of more than one order of magnitude compared to the quadratic baseline. These gains, however, come with very different memory footprints. Merge Sort kept the runtime below 100,000 µs at n = 1000 but required approximately 2023 bytes of additional static random-access memory (SRAM), effectively exhausting the 2 kB SRAM of the Arduino Uno. QuickSort used approximately 311 bytes of extra SRAM and failed to process larger ascending and descending datasets on the more constrained boards due to its recursive pattern and stack usage. Heap Sort offered the best overall tradeoff: it successfully executed all tested sizes up to the SRAM limit of each board while using only about 12–13 bytes of additional SRAM and keeping the runtime below 100,000 µs for n = 1000. The results provide practical guidelines for selecting sorting algorithms on 8-bit AVR Arduino-class microcontrollers, which are widely used as simple sensing and prototyping nodes operating under strict RAM, program-memory, and energy constraints.  \nKeywords: embedded systems; 8-bit AVR microcontrollers; Arduino boards; sorting algorithms; performance evaluation; execution time; SRAM usage; write operations; resource-constrained devices  \n1. Introduction  \n1.1. Aim and Scope  \nThe primary aim of this study is to compare the behavior of several classic sorting algorithms when executed on 8-bit AVR Arduino-class microcontroller boards with severe resource constraints. The tested algorithms include Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Quick Sort, and Heap Sort, representing both O(n2 ) and O (n log n ) time  \ncomplexity classes. The algorithms were evaluated on three widely used Arduino boards: Arduino Uno, Arduino Leonardo, and Arduino Mega 2560 . Each board’s processor runs at a 16 MHz clock, but they differ significantly in static random-access memory (SRAM) capacity and program memory, which directly influence the maximum problem size and the viability of certain algorithmic strategies.  \nEach algorithm was tested using arrays of increasing sizes and various element orders: random, ascending, and descending. To ensure fairness and to","cbCaiiAWPFUCaJ5g","https://ap.wps.com/l/cbCaiiAWPFUCaJ5g","pdf",789542,38,"English","# 1. Introduction\n## 1.1. Aim and Scope\n## 1.2. Justification of the Topic Selection","[{\"question\":\"Which sorting algorithms are evaluated in the study?\",\"answer\":\"The study evaluates Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Quick Sort, and Heap Sort.\"},{\"question\":\"How is the performance of each algorithm measured?\",\"answer\":\"Execution time, number of write operations, and SRAM (memory usage) are measured while running unoptimized implementations.\"},{\"question\":\"What determines whether an algorithm can handle larger inputs?\",\"answer\":\"On these 8-bit AVR Arduino-class microcontrollers, available SRAM capacity limits the maximum feasible array size, and recursive/stack-heavy behavior can cause failures even if runtime seems acceptable.\"}]","Empirical Evaluation of Unoptimized Sorting Algorithms on 8-Bit AVR Arduino Microcontrollers - Academic Study | PDF",1790773220,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/cbd5253214a83cf21678f87537ffd9a8.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/746ac6963d6bb2c94e4b602409164b10.webp",982,1388,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b299d0ffe3025499ad5c6cbfbaf91366.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7c06cd28597adbc21bcfd597ab50e195.webp",980,1385]