[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685764-105":59,"doc-detail-685764-en":130,"doc-similar-685764":157},{"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","lists-and-linked-lists-part-1-introduction","Lists and Linked Lists - Part 1 - Introduction","","A structured learning resource on lists as an abstract data type and their concrete implementations. It defines ordered finite sequences, introduces typical abstract operations such as Insert, Delete, Search, Get, Length, and Traverse, and explains the difference between an abstract interface and a representation. The document then compares array and linked representations, including access and update cost, before detailing singly linked list nodes, insertion, and deletion procedures.",{"@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":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/lists-and-linked-lists-part-1-introduction/685764/",{"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/lists-and-linked-lists-part-1-introduction/685764.png","ImageObject",300,407,{"name":92,"@type":93},"Riley West","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is a list in this document’s definition?","Question",{"text":112,"@type":113},"A list is a finite ordered sequence of elements with a well-defined order and a position relative to predecessor and/or successor.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the typical operations provided by a list as an abstract data type?",{"text":117,"@type":113},"The document lists Insert(i,x), Delete(i), Search(x), Get(i), Length(), and Traverse() as typical abstract operations.",{"name":119,"@type":110,"acceptedAnswer":120},"How does an array representation compare with a linked representation?",{"text":121,"@type":113},"Array representation supports direct indexing but may require moving elements for middle insertions/deletions, while linked representation uses nodes and references and changes performance depending on whether the position or node is already known.","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},685764,1794017635,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"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":129,"read_time":144,"preview_page_count":81,"preview_urls":145},1099523885074,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Lists and Linked Lists Concept, representation, operations  \nLists and Linked Lists 1 / 29  \nContents  \n1 The List Concept  \n2 Representation  \n3 Singly Linked List  \n4 Doubly Linked List  \n5 Sentinel List  \n6 Operations and Complexity  \n7 Pseudocode  \nLists and Linked Lists  2 / 29   \nThe List Concept  \n\n| \u003Cbr>De✜nition |\n| --- |\n| \u003Cbr>A list is a ✜nite ordered sequence of elements. The elements have a well-de✜ned order, and an element has a position relative to its predecessor and/or successor. |\n\n Elements are typically of the same logical type.  \n The length of a list may change dynamically.  \n Typical operations: insertion, deletion, search, traversal.  \n A list does not necessarily store its elements in consecutive memory locations.  \nLists and Linked Lists 3 / 29  \nList as an Abstract Data Type  \nTypical abstract list operations include:  Insert(i,x) ✕ insert x at position i;  \n Delete(i) ✕ delete the element at position i;  Search(x) ✕ locate x;  \n Get(i) ✕ retrieve the i-th element;  \n Length() ✕ return the number of elements;  Traverse() ✕ visit all elements.  \nImportant  \nThe abstract list and its concrete representation are di✛erent concepts. The same abstract operations can be implemented using an array or a linked structure.  \nLists and Linked Lists 4 / 29  \nArray Representation  \nThe elements are stored in consecutive array positions:  \nA [0], A [1],..., A [n − 1] .  \n\n| 12 | 25 | 7 | 31 | 18 |\n| --- | --- | --- | --- | --- |\n\n Advantage: direct indexing and good cache locality.  \n Disadvantage: insertion/deletion in the middle requires moving elements.  A dynamic array must also manage its capacity.  \nLists and Linked Lists 5 / 29  \nLinked Representation  \nA linked list consists of nodes. In addition to data, each node contains a reference to another node.  \n\n|  |  |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- |\n\n\n| 12 | 25 | 7 | 31 |\n| --- | --- | --- | --- |\n| next  | next  | next  | null |\n\nThe beginning of the list is usually represented by a head reference.  \nLists and Linked Lists 6 / 29  \nArray vs. Linked Representation  \nOperation  \nArray  \nLinked list  \nAccess i-th element Search  \nInsert at front  \nDelete at front  \nInsert after known position Delete after known node  \nO (1)  \nO (n) O (n)*  \nO (n)* O (n)  \nO (n)  \nO (n)  \nO (n)  \nO (1)  \nO (1) O (1)**  \nO (1)**  \n* for a simple ✜xed array representation; dynamic arrays have di✛erent amortized behavior.  \n** assuming the relevant node/reference is already available.  \nLists and Linked Lists 7 / 29  \nSingly Linked List  \n\n| \u003Cbr>Node |\n| --- |\n| \u003Cbr>A node has two essential components:\u003Cbr>Node = (data, next) . |\n\n data: stored value;  \n next: reference to the next node;  the last node has next = null.  \nhead  \n| A |\n| --- |\n| next |\n\n| B |\n| --- |\n| next |\n\n| C |\n| --- |\n| \u003Cbr>null |\n\nLists and Linked Lists 8 / 29  \nInsertion into a Singly Linked List  \nTo insert a new node after node p:  \n[new](new.next = p.next)[.](new.next = p.next)[next](new.next = p.next)[ =](new.next = p.next)[ p](new.next = p.next)[.](new.next = p.next)[next](new.next = p.next) , [p](p.next = new)[.](p.next = new)[next](p.next = new)[ =](p.next = new)[ new](p.next = new).  \n\n| p | | q |\n| --- | --- | --- |\n\nnew  \n Inserting at the front changes head.  \n Appending at the end requires ✜nding the last node unless a separate tail reference is maintained.  \nLists and Linked Lists 9 / 29  \nDeletion from a Singly Linked List  \nTo delete an internal node, bypass it by changing the predecessor✬s next:  \n[prev](prev.next = current.next)[.](prev.next = current.next)[next](prev.next = current.next)[ =](prev.next = current.next)[ current](prev.next = current.next)[.](prev.next = current.next)[next](prev.next = current.next).  \nDeleting the ✜rst element is simply:  \n[head](head = head.next)[ =](head = head.next)[ head](head = head.next)[.](head = head.next)[next](head = head.next).  \nLists and Linked Lists 10 / 29","cbCaieIcjIBTNNaA","https://ap.wps.com/l/cbCaieIcjIBTNNaA","pdf",333988,29,"English","# The List Concept\n## List as an Abstract Data Type\n## Array Representation\n## Linked Representation\n## Singly Linked List\n## Insertion into a Singly Linked List\n## Deletion from a Singly Linked List","[{\"question\":\"What is a list in this document’s definition?\",\"answer\":\"A list is a finite ordered sequence of elements with a well-defined order and a position relative to predecessor and/or successor.\"},{\"question\":\"What are the typical operations provided by a list as an abstract data type?\",\"answer\":\"The document lists Insert(i,x), Delete(i), Search(x), Get(i), Length(), and Traverse() as typical abstract operations.\"},{\"question\":\"How does an array representation compare with a linked representation?\",\"answer\":\"Array representation supports direct indexing but may require moving elements for middle insertions/deletions, while linked representation uses nodes and references and changes performance depending on whether the position or node is already known.\"}]","Lists and Linked Lists - Part 1 - Introduction | PDF",73,[146,150,153],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2e47312f0e2fa4a4e23a1cad080de88d.webp",983,552,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7d1efe5203f866cbd95b2986a2cb287f.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1ab9355ed6549ce58bcab80535078a99.webp",981,551,{"list":158,"token":66},[159,165,171,177,183,189,195,201,207,213],{"doc_id":160,"doc_title":161,"file_type":137,"home_preview_img_url":162,"slug":163,"view_count":19,"category_name":30,"create_tm":164},685727,"Circular Linked Lists - All Operations and Complexity Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000185859/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=yxFnMTttXJS9zqttrd2UZ627XRI%3D","circular-linked-lists-all-operations-and-complexity-analysis",1794017196,{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":19,"category_name":30,"create_tm":170},685792,"Array Implementation of List - Array Operations (Create, Insert, Delete, Display, Search)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000212417/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=YJoYgBZYHxjqGVJonwyOrkO8mYM%3D","array-implementation-of-list-array-operations-create-insert-delete-display-search",1794018669,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":29,"category_name":30,"create_tm":176},697937,"Doubly Linked List - Basic Operations and Circular Linked List","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010136388/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=EB38Yf4QFl371vrVCj5CZCODKo8%3D","doubly-linked-list-basic-operations-and-circular-linked-list",1794446062,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":29,"category_name":30,"create_tm":182},685666,"Lecture 6 - List ADT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000175827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=NI8vNeAya2zTCtkGdHcHNhH8YdE%3D","lecture-6-list-adt",1794016534,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":24,"category_name":30,"create_tm":188},685716,"Linked Lists - Introduction - Properties, Advantages, Disadvantages, and Types","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999688533/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=dCApNYf%2Bdwx6xKqYu%2F71w%2BE%2FVQE%3D","linked-lists-introduction-properties-advantages-disadvantages-and-types",1794016969,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":34,"category_name":30,"create_tm":194},685731,"Lecture Five - Linked List Structure","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999689386/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=k1RL12P1VEmg3rAZ0MFVlf6VmcQ%3D","lecture-five-linked-list-structure",1794017204,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":24,"category_name":30,"create_tm":200},685730,"Chapter 4 Linked Lists - 4.1 Singly Linked Lists Or Chains","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000185878/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=7aJHAwiyKWLnrsuzlVHFhzmvGZ4%3D","chapter-4-linked-lists-41-singly-linked-lists-or-chains",1794017203,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":81,"category_name":30,"create_tm":206},732880,"Linked List Basics - Linked List Basics - Insertion, Deletion, Navigation, and Advanced Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780344/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=DBtJ%2B3UwHqcTLSVqdpFdxKoq%2F20%3D","linked-list-basics-linked-list-basics-insertion-deletion-navigation-and-advanced-operations",1795382679,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":19,"category_name":30,"create_tm":212},697962,"DATA STRUCTURES - Chapter 5 Basic Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009214987/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=g64LRZycwPnKOTl4A2ecFcyqoEw%3D","data-structures-chapter-5-basic-data-structures",1794446352,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":19,"category_name":30,"create_tm":218},685767,"Implementation of Linked List - Lecture 7 - In C++","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000198089/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=1uyPIjHyz1kWyDzdB9cCOPdezkk%3D","implementation-of-linked-list-lecture-7-in-c",1794017950]