[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685723-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-685723-en":130,"doc-similar-685723":173},{"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","fundamentals-of-linked-lists-chapter-summary","Fundamentals of Linked Lists - Chapter Summary","","Chapter 4 focuses on the linked list data structure and how it models a sequence of elements connected by links. It introduces nodes as components holding an element and a reference (arrow) to the next node, including the use of an “end marker” for the last node. The text explains how links establish order, how head and tail nodes are used to access a list, and how linked lists are built and manipulated using node references. It then previews methods, full-list manipulation, and projects using linked lists within ADTs.",{"@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/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/fundamentals-of-linked-lists-chapter-summary/685723/",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/fundamentals-of-linked-lists-chapter-summary/685723.png","ImageObject",300,407,{"name":42,"@type":43},"The UK Girl","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-12","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is a linked list, and how does it represent order?","Question",{"text":63,"@type":64},"A linked list is a sequence of elements where each element is connected to the next by a “link.” The links place the nodes in a particular order by referencing the successor node.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What information does a node contain in this chapter’s examples?",{"text":68,"@type":64},"Each node contains two pieces of information: an element value (shown as an integer in examples) and an arrow/reference to the next node in the list.",{"name":70,"@type":61,"acceptedAnswer":71},"How are the head and tail nodes used when working with a linked list?",{"text":72,"@type":64},"Most operations access the list through the head (the first node). Programs may also maintain a reference to the tail (the last node) so the list’s endpoints are quickly reachable.","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},685723,1794016982,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,104,109,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":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",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":55,"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":101,"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":94,"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":143,"preview_page_count":105,"preview_urls":144},2199028711991,"https://us-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","java04.frm Page 171 Saturday, August 26, 2000 6:03 PM  \nLinked Lists  \nThe simplest way to interrelate or link a set of elements is  \nto line them up in a single list   For, in this case, only a  \nsingle link is needed for each element to refer to its  \nsuccessor.  \nNIKLAUS WIRTH  \nAlgorithms + Data Structures = Programs  \n4. 1 FUNDAMENTALS OF LINKED LISTS  \n4.2 METHODS FOR MANIPULATING NODES  \n4.3 MANIPULATING AN ENTIRE LINKED LIST  \n4.4 THE BAG ADT WITH A LINKED LIST  \n4.5 PROGRAMMING PROJECT:  \nTHE SEQUENCE ADT WITH A LINKED LIST  \n4.6 ARRAYS VS. LINKED LISTS VS. DOUBLY LINKED LISTS CHAPTER SUMMARY  \nSOLUTIONS TO SELF-TEST EXERCISES  \nPROGRAMMING PROJECTS  \nWe begin this chapter with a concrete discussion of a new data structure, the linked list, which is used to implement a list of elements arranged in some kind of order. The linked list structure uses memory that shrinks and grows as needed but in a different manner than arrays. The discussion of linked lists includes the specification and implementation of a node class, which incorporates the fundamental notion of a single element of a linked list.  \nOnce you understand the fundamentals, linked lists can be used as part ofan ADT, similar to the way that arrays have been used in previous ADTs. For example, linked lists can be used to reimplement the bag and sequence ADTs.  \n&+$37 (5  \n4  \nlinked lists are used to implement a list of elements arranged in some kind of order  \n171  \njava04.frm Page 172 Saturday, August 26, 2000 6:03 PM  \n172 Chapter 4 / Linked Lists  \n\n|   12  \u003Cbr>|  |  |\n| --- | --- | --- |\n| |  |  |\n|  |  |  |\n\n|  |  |  |  |\n| --- | --- | --- | --- |\n|  |   14   |  |  |\n|  |  |  |  |\n|  |  |  |  |\n|  |  |  |  |\n| |  |  |  |\n|  |  |  |  |\n|  |   -4   |  |  |\n|  |  |  |  |\n|  |  |  |  |\n|  |  |  |  |\n| |  |  |  |\n|  |  |  |  |\n|  |   9  \u003Cbr>|  |  |\n|  | |  |  |\n|  |  |  |  |\n| |  |  |  |\n|  |  |  |  |\n|  |   10   |  |  |\n|  |  |  |  |\n|  |  end marker   |  |  |\n|  |  |  |  |\n\nFIGURE 4.1  \nA Linked List Made of Nodes Connected with Links  \nBy the end of the chapter you will understand linked lists well enough to use them in various programming projects (such as the revised bag and sequence ADTs) and in the ADTs of future chapters. You will also know the advantagesand drawbacks of using linked lists versus arrays for these ADTs.  \n4.1 FUNDAMENTALS OF LINKED LISTS  \nA linked list is a sequence of elements arranged one after another, with each element connected to the next element by a “link.” A common programming practice is to place each element together with the link to the next element, resulting in a component called a node. A node is represented pictorially as a box with the element written inside the box and the link drawn as an arrow pointing out of the box. Several typical nodes are drawn in Figure 4.1. For example, the topmost node has the number 12 as its element. Most of the nodes in the figure also have an arrow pointing out of the node. These arrows, or links, are used to connect one node to another.  \nThe links are represented as arrows because they do more than simply connect two nodes. The links also place the nodes in a particular order. In Figure 4.1, the five nodes form a chain from top to bottom. The first node is linked to the second node; the second node is linked to the third node; and so on until we reach the last node. We must do something special when we reach the last node, since the last node is not linked to another node. In this special case, we will replace the link in this node with a note saying “end marker.”  \nDeclaring a Class for Nodes  \nEach node contains two pieces of information: an element (which is a number for these example nodes) and an arrow. But just what are those arrows? Each arrow points to another node, or you could say that each arrow refers to another node. With this in mind, we can implement a Java class for a node using two instance variables: an instance variable to hold the element, and a second instance va","cbCaiqGdp3sPErym","https://ap.wps.com/l/cbCaiqGdp3sPErym","pdf",1424174,"English","# 4.1 Fundamentals of Linked Lists\n## Declaring a Class for Nodes\n## Head Nodes, Tail Nodes\n## Building and Manipulating Linked Lists\n# 4.2 Methods for Manipulating Nodes\n# 4.3 Manipulating an Entire Linked List\n# 4.4 The Bag ADT with a Linked List\n# 4.5 Programming Project: The Sequence ADT with a Linked List\n# 4.6 Arrays vs. Linked Lists vs. Doubly Linked Lists\n# Chapter Summary\n# Solutions to Self-Test Exercises\n# Programming Projects","[{\"question\":\"What is a linked list, and how does it represent order?\",\"answer\":\"A linked list is a sequence of elements where each element is connected to the next by a “link.” The links place the nodes in a particular order by referencing the successor node.\"},{\"question\":\"What information does a node contain in this chapter’s examples?\",\"answer\":\"Each node contains two pieces of information: an element value (shown as an integer in examples) and an arrow/reference to the next node in the list.\"},{\"question\":\"How are the head and tail nodes used when working with a linked list?\",\"answer\":\"Most operations access the list through the head (the first node). Programs may also maintain a reference to the tail (the last node) so the list’s endpoints are quickly reachable.\"}]","Fundamentals of Linked Lists - Chapter Summary | PDF",176,[145,149,153,157,161,165,169],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c700e9fa904e2a7b1e392bf8582b5890.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/04b16fff0e11749b5d3beb6908099e33.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/cdd4a92c2bc39b5501378bb4527567ef.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/dd75680d4ee2952dd0412231ffd00f90.webp",980,1268,{"page_no":55,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5655c47f66ae44e0f390cff9a43e24c9.webp",979,1267,{"page_no":101,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/11ec2af7582e74d9bcaeb124e53d092d.webp",978,1265,{"page_no":105,"url":170,"width":171,"height":172},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/357bade6a6ffda21341c590f3ac24adc.webp",977,1264,{"list":174,"token":11},[175,181,187,193,199,205,211,217,223,229],{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":55,"category_name":29,"create_tm":180},685726,"L6b - Linked List Variations - Lecture 6b","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000185855/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=N9gGJyiLPdA%2FYPXKfTO21j2VHhc%3D","l6b-linked-list-variations-lecture-6b",1794017196,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":101,"category_name":29,"create_tm":186},685766,"Linked Lists - Fundamentals - Core Concepts and C++ Implementation Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000198068/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=jTGOXMLhrsM70kUbcw6aSvkkUAo%3D","linked-lists-fundamentals-core-concepts-and-c-implementation-notes",1794017949,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":30,"category_name":29,"create_tm":192},719597,"Chapter 15 - Linked Data Structures - Java Linked Lists - Key Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023815525/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=aTU66SC4ON3OM6leyvjjCIsHxTs%3D","chapter-15-linked-data-structures-java-linked-lists-key-concepts",1795006731,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":33,"category_name":29,"create_tm":198},697936,"Lecture 11 - Doubly Linked Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010136454/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=KN7Zqbr30Ry62XTF%2FdE4CriDKE8%3D","lecture-11-doubly-linked-lists",1794446060,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":30,"category_name":29,"create_tm":204},732873,"Singly Linked Lists in C - Introduction and Traversal Example","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413508/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=mz7VKOSSjvguv0n1e868VdFI8tU%3D","singly-linked-lists-in-c-introduction-and-traversal-example",1795382670,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":26,"category_name":29,"create_tm":210},719606,"Linked Lists - Data Structures and Algorithms in Java","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023515214/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=WTibK1VHXXWzPnyxtkY9vkPvLZ0%3D","linked-lists-data-structures-and-algorithms-in-java",1795006758,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":105,"category_name":29,"create_tm":216},685760,"CS62 Class 8 - Linked lists - Basic Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000192614/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=vDU%2FxvpuuXUvv1poCAe1YbnFNHk%3D","cs62-class-8-linked-lists-basic-data-structures",1794017629,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":30,"category_name":29,"create_tm":222},719600,"Recitation 12 - Root Finding, Sorting, Stacks, Queues - Linked Lists and Object References","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023815740/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=UuI2CKTeQYl2EjaPv6os38GgwVo%3D","recitation-12-root-finding-sorting-stacks-queues-linked-lists-and-object-references",1795006740,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":26,"category_name":29,"create_tm":228},719605,"Linked Lists - lecture notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023815899/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=Yzkw0SNXjd0%2B%2FjEBTNt1Vgx79Q8%3D","linked-lists-lecture-notes",1795006752,{"doc_id":230,"doc_title":231,"file_type":137,"home_preview_img_url":232,"slug":233,"view_count":30,"category_name":29,"create_tm":234},732877,"Linked Data Structures - Linked Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413515/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110799&Signature=Fm9wqeC8JmwBhh0T6z77BHnnubs%3D","linked-data-structures-linked-lists",1795382677]