[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685729-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-685729-en":130,"doc-similar-685729":152},{"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","chapter-14-linked-lists-chapter-14-operations-and-implementations-of-singly-linked-lists","Chapter 14 Linked Lists - Chapter 14 - Operations and Implementations of Singly Linked Lists","","Chapter 14 introduces Abstract Data Types (ADT) and their core operations, then contrasts arrays and linked lists as fixed versus dynamic storage structures. It defines nodes, pointers, and null pointers, and categorizes linked lists by structure, emphasizing singly linked lists for the rest of the chapter. Using OOP, it explains how to create and manipulate a singly linked list, including inserting and deleting nodes, searching for data, and accessing all nodes, as well as covering linked list variants through a free space list concept.",{"@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/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/chapter-14-linked-lists-chapter-14-operations-and-implementations-of-singly-linked-lists/685729/",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/chapter-14-linked-lists-chapter-14-operations-and-implementations-of-singly-linked-lists/685729.png","ImageObject",300,407,{"name":42,"@type":43},"8796093062539","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-19","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What operations define an Abstract Data Type (ADT)?","Question",{"text":63,"@type":64},"An ADT includes operations to create a new instance, insert an element, delete an element, find/update an element, and access all elements in a systematic manner.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does a linked list differ from an array?",{"text":68,"@type":64},"An array stores items in contiguous memory and holds a fixed number of same-type items, while a linked list is dynamic and stores nodes in available memory locations connected by pointers.",{"name":70,"@type":61,"acceptedAnswer":71},"What are the steps to insert a node at the beginning of an unordered singly linked list?",{"text":72,"@type":64},"Create the new node so its next pointer references the current Start pointer, then set the Start pointer to point to the new node.","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},685729,1794017196,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,100,105,110,115,120,123,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":29,"show_sort_weight":93,"slug":94},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":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"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":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":11,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":108,"preview_page_count":26,"preview_urls":143},8796093062539,"VJC/ H2Computing/9569  \nChapter 14 Linked Lists  \nContents  \n1 Abstract Data Type (ADT)  \n2 Linked Lists  \n3 Operations of Singly Linked Lists using OOP  \n3.1 Creating a new linked list  \n3.2 Inserting a node  \n3.3 Deleting a node  \n3.4 Search for data  \n3.5 Access all nodes stored in the Linked List  \n4 Linked list using arrays  \n4.1 Inserting a node  \n4.2 Deleting a node  \n5 Free space list  \nSyllabus Learning Outcomes  \n1.3 Data Structures  \nUnderstand concept and write algorithms for stack, queue (linear and circular) , linear linked list and binary search tree.  \n1.3.1 Understand the concept of static allocation of memory.  \n1.3.2 Understand the concept of dynamic allocation of memory.  \n1.3.4 Understand the concept of free space list (which could be another linked list or an array) .  \n1.3.5 Create, update (edit, insert, delete) and search operations for a linear linked list. Exclude: doubly-linked list and circular linked list  \n2.3 Implementing Algorithms and Data Structures  \nUse programming language elements and constructs to implement sort and search algorithms such as insertion sort, bubble sort, quicksort, merge sort, linear search, binary search and hash table search, as well as data structures such as stacks, queues, linear linked lists and binary search trees.  \n2.3.3 Write programs to implement operations for stacks, queues (linear and circular) , linear linked lists and binary search trees.  \nExclude: doubly-linked list and circular linked list  \nVJC/ H2Computing/9569  \n1 Abstract Data Type (ADT)  \nAn Abstract Data Type (ADT) is a collection of data and a set of associated operations:  \n- create a new instance of the data structure  \n- insert a new element into the data structure  \n- delete an element from the data structure  \n- find/update an element in the data structure  \n- access all elements stored in the data structure in a systematic manner.  \nOne can use an ADT’s operations without knowing how the operations are implemented or how the data is stored. Examples of ADTs: Linked lists, stacks, queues and binary trees.  \n2 Linked Lists  \nAn array is defined as a collection of items that are stored at contiguous (adjacent) memory locations. It is a container which can hold a fixed number of items, and these items should be of the same type.  \nA linked list is a dynamic data structure, which holds a collection of elements. The individual element may not be stored in contiguous memory locations but at whatever location that is available, and the elements are linked into an ordered sequence using pointers.  \nAn element in the list is called a node. A node contains both data and a “link” to the next element. The “link” is usually referred to as a pointer, which is a variable that stores the address of the next node it points to.  \nA pointer that does not point at anything, indicating no further elements, is called a null pointer. It is usually represented by Ø . In program code, we set it to None. The start/head pointer stores the address of the first element (a link that points to the first node) .  \nThere are different types of linked list: singly linked list, doubly linked list and circular linked list.  \nA singly linked list is a collection of nodes, each containing one pointer pointing to the next node. The start pointer points to the first node, and the point er in the last node points to null. When the list is empty, the start pointer points to null. With only one pointer, it can only traverse forward along the list.  \nA doubly linked list is a collection of nodes, each containing two pointers, one pointing to the previous node and the other pointing to the next node respectively. With two pointers, we can traverse forward and backward along the list. ( Not in syllabus)  \nA circular linked list is similar to a singly linked list, but with the pointer in the last node pointing back to the first node. ( Not in syllabus)  \nFor the remaining of this chapter, we will focus on singly linked list.  \n2  \nVJC/ H2","cbCaigtgwJPpPcCZ","https://ap.wps.com/l/cbCaigtgwJPpPcCZ","pdf",359384,16,"English","# Abstract Data Type (ADT)\n## Linked Lists\n# Operations of Singly Linked Lists using OOP\n## Creating a new linked list\n## Inserting a node\n## Deleting a node\n## Search for data\n## Access all nodes stored in the Linked List\n# Linked list using arrays\n# Free space list","[{\"question\":\"What operations define an Abstract Data Type (ADT)?\",\"answer\":\"An ADT includes operations to create a new instance, insert an element, delete an element, find/update an element, and access all elements in a systematic manner.\"},{\"question\":\"How does a linked list differ from an array?\",\"answer\":\"An array stores items in contiguous memory and holds a fixed number of same-type items, while a linked list is dynamic and stores nodes in available memory locations connected by pointers.\"},{\"question\":\"What are the steps to insert a node at the beginning of an unordered singly linked list?\",\"answer\":\"Create the new node so its next pointer references the current Start pointer, then set the Start pointer to point to the new node.\"}]","Chapter 14 Linked Lists - Chapter 14 - Operations and Implementations of Singly Linked Lists | PDF",[144,148],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ef6bb0fc7287e11272b596fbce6d8c62.webp",983,1272,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/94ccfecc2fe116d63d3bb39c1282ea1a.webp",982,1270,{"list":153,"token":11},[154,160,166,172,178,185,191,197,204,210],{"doc_id":155,"doc_title":156,"file_type":136,"home_preview_img_url":157,"slug":158,"view_count":111,"category_name":29,"create_tm":159},685761,"Singly-Linked List Class - Exam 1 - Review and HW5 Card Game Efficiency","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999691124/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=NoxPSMP2pCFhnTT8o9B%2BxbUy%2B%2FY%3D","singly-linked-list-class-exam-1-review-and-hw5-card-game-efficiency",1794017629,{"doc_id":161,"doc_title":162,"file_type":136,"home_preview_img_url":163,"slug":164,"view_count":101,"category_name":29,"create_tm":165},697956,"Linked List - Lecture 23-24 - Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010142265/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=dsecB0QZ3i%2Fv3LjNO2MzEB9IdA8%3D","linked-list-lecture-23-24-notes",1794446335,{"doc_id":167,"doc_title":168,"file_type":136,"home_preview_img_url":169,"slug":170,"view_count":55,"category_name":29,"create_tm":171},685768,"CS 2351 Data Structures - Linked Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000198125/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=5Pj6aCPMyAv3EatnM%2BHlyH7HTb8%3D","cs-2351-data-structures-linked-lists",1794017950,{"doc_id":173,"doc_title":174,"file_type":136,"home_preview_img_url":175,"slug":176,"view_count":30,"category_name":29,"create_tm":177},732882,"Linked Lists in MIPS - MIPS Implementation, Recursive Functions, ISA and x86 vs MIPS Comparison","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413521/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=lXQoIAaMq1jH945THcYdVOyCEVs%3D","linked-lists-in-mips-mips-implementation-recursive-functions-isa-and-x86-vs-mips-comparison",1795382683,{"doc_id":179,"doc_title":180,"file_type":136,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":29,"create_tm":184},391235,"C Language Questions and Answers - Study & Interview Quick Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917369724/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=12bGjwnlxrFo2K68j22TkPRQ5OA%3D","c-language-questions-and-answers-study-interview-quick-reference",17,1790350259,{"doc_id":186,"doc_title":187,"file_type":136,"home_preview_img_url":188,"slug":189,"view_count":30,"category_name":29,"create_tm":190},697964,"UNIT III - PART-A - Linear Data Structures and ADTs: List, Stack, and Queue","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010143042/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=Bw6ndssABXUfAgp%2FK0WAsXWchqU%3D","unit-iii-part-a-linear-data-structures-and-adts-list-stack-and-queue",1794446383,{"doc_id":192,"doc_title":193,"file_type":136,"home_preview_img_url":194,"slug":195,"view_count":116,"category_name":29,"create_tm":196},685668,"C++ Linked Lists - Review - List Operations and Traversal","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000175845/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=NjrCF71xLlPvfzyeTj0ZwUK0U1c%3D","c-linked-lists-review-list-operations-and-traversal",1794016536,{"doc_id":198,"doc_title":199,"file_type":136,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},501607,"Teach Yourself C++ in 21 Days - Fifth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229931378078/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=HwjsrnbO5IdD%2FywbLuNJ8OYA9MY%3D","teach-yourself-c-in-21-days-fifth-edition",18,1791021431,{"doc_id":205,"doc_title":206,"file_type":136,"home_preview_img_url":207,"slug":208,"view_count":33,"category_name":29,"create_tm":209},697947,"Linked List in Python - Lecture 4 - Implementation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010140976/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=aK79fyW7AMLk4Hge3DWp6e40zjs%3D","linked-list-in-python-lecture-4-implementation",1794446273,{"doc_id":211,"doc_title":212,"file_type":136,"home_preview_img_url":213,"slug":214,"view_count":106,"category_name":29,"create_tm":215},686726,"Lists - Topic 12 - The List ADT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001098829/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796166959&Signature=k1ku164fjxnUlYIm3Ibo30Axptk%3D","lists-topic-12-the-list-adt",1794062170]