[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685726-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-685726-en":130,"doc-similar-685726":157},{"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","l6b-linked-list-variations-lecture-6b","L6b - Linked List Variations - Lecture 6b","","Lecture 6b presents Linked List Variations, starting from the singly linked list used in a List ADT, where each node holds one pointer to the next node. It explains why pointers enable noncontiguous node organization and surveys how higher-level ADTs use linked-list variants. Common variations are compared at a glance: tailed linked lists, circular linked lists (including a better tail-pointer version), and dummy head nodes, plus doubly linked and circular doubly linked lists. Implementation ideas and motivations are provided, including circular traversal termination using a return to the starting node and efficient tail-based operations.",{"@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/l6b-linked-list-variations-lecture-6b/685726/",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/l6b-linked-list-variations-lecture-6b/685726.png","ImageObject",300,407,{"name":42,"@type":43},"WPS_1793603815","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","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 the singly linked list implementation used in a List ADT?","Question",{"text":63,"@type":64},"Each node contains one pointer that links to the next node in sequence. This structure allows nodes to be noncontiguous while maintaining order through pointers.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Why use a tailed linked list instead of a standard singly linked list?",{"text":68,"@type":64},"In a singly linked list, reaching the last node can take the longest time. By keeping an additional tail pointer, operations that add items to the end become more efficient.",{"name":70,"@type":61,"acceptedAnswer":71},"How can traversal of a circular linked list know when it has visited all nodes?",{"text":72,"@type":64},"Traversal can stop when the algorithm lands on a node again, such as the first node. This indicates one full round has completed.","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},685726,1794017196,{"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":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":80,"read_time":98,"preview_page_count":30,"preview_urls":144},12232076219891,"https://eur-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Lecture 6b  \nLinked List Variations  \nSimilar but not the same  \nLinked List Variations: Overview  \n􀂄 The linked list implementation used in List ADT is known as Singly (Single) Linked List  \n􀂉 Each node has one pointer (a single link), pointing to the next node in sequence  \n􀂄 Using pointers allow the node to be noncontiguous:  \n􀃎 flexible organizations in chaining up the nodes  \n􀂄 Several high level ADTs utilize variations of linked list as internal data structure  \n􀂄 Let's look at a few common choices  \n Common Variations: At a glance 􀂄 Using list node with one pointer:  \n1. Tailed Linked List  \n2. Circular Linked List  \n3. Linked List with a dummy head node  \n􀂄 Using list node with two pointers:  \n1. Doubly linked list  \n2. Circular doubly linked list  \n􀂄 Other variations are possible:  \n􀂉 Once you understand the fundamental, it is quite easy to extend to other organizations!  \nTailed Linked List  \nHead and tail: First and last  \nTailed Linked List  \n􀂄 Motivation:  \n􀂄 The last node in singly linked list takes the longest time to reach  \n􀂄 If we keep adding item to the end of list (some applications require this) 􀃎 very inefficient  \n􀂄 Simple addition:  \n􀂄 Keep an additional pointer to point to the last node  \nhead  \ntail  \nCircular Linked List  \nGo round and round  \nCircular Linked List  \n􀂄 Motivation:  \n􀂄 Sometimes we need to repeatedly go through the list from 1st node to last node, then restart from 1st node,….  \n􀂄 Simple addition:  \n􀂄 Just link the last node back to the first node  \n􀃎 No NULL pointer in the linked list  \nhead  \nCircular Linked List: Even Better  \n􀂄 Circular Linked List can be made even better:  \n􀂄 Keep the tail pointer instead of head pointer  \n􀂄 We now know both the first node and the last node with a single pointer  \n􀂄 Simple addition:  \n􀂄 Keep track of the tail pointer  \ntail  \nHow do we get to the first node with just the tail pointer?  \nCircular Linked List: Common Code  \n􀂄 Given a circular linked list:  \n􀂉 How do we know we have passed through every nodes in the list?  \n􀂄 Idea:  \n􀂉 If we land on a node again (e.g. the first node), then we have finished one round  \ncurPtr = head;  \ndo {  \n// visit the node curPtr points tocurPtr = curPtr->next;  \n} while (curPtr != head);  \nSimple solution as long as the  \nlist is not empty  \nDummy Head Node  \nThere is a dummy in front!!","cbCaioao7JyV377v","https://ap.wps.com/l/cbCaioao7JyV377v","pdf",210372,24,"English","# Linked List Variations: Overview\n## Common Variations: At a glance\n## Tailed Linked List\n## Circular Linked List\n## Circular Linked List: Common Code\n## Dummy Head Node","[{\"question\":\"What is the singly linked list implementation used in a List ADT?\",\"answer\":\"Each node contains one pointer that links to the next node in sequence. This structure allows nodes to be noncontiguous while maintaining order through pointers.\"},{\"question\":\"Why use a tailed linked list instead of a standard singly linked list?\",\"answer\":\"In a singly linked list, reaching the last node can take the longest time. By keeping an additional tail pointer, operations that add items to the end become more efficient.\"},{\"question\":\"How can traversal of a circular linked list know when it has visited all nodes?\",\"answer\":\"Traversal can stop when the algorithm lands on a node again, such as the first node. This indicates one full round has completed.\"}]","L6b - Linked List Variations - Lecture 6b | PDF",[145,149,153],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/23b43bde14e8308490161e706cdfb4e8.webp",983,759,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/35c7fb9dde5a6aafc5a7d675b470922e.webp",982,758,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7144b76c7000f700a550904543c6a9b7.webp",981,757,{"list":158,"token":11},[159,165,171,176,182,188,194,200,206,212],{"doc_id":160,"doc_title":161,"file_type":137,"home_preview_img_url":162,"slug":163,"view_count":55,"category_name":29,"create_tm":164},685762,"Linked List - Course 13004700 Part-2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999691129/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=O0vCKwM7%2Bl1qSwGO%2FgUo5VCoV8g%3D","linked-list-course-13004700-part-2",1794017631,{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":105,"category_name":29,"create_tm":170},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":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":33,"category_name":29,"create_tm":80},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",{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":33,"category_name":29,"create_tm":181},719604,"Lecture 17 - Linked List Data Structure (Part-II) - Double Linked List - Applications and Insertion","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023515168/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=8fKaEC3jVVYMgh1t1F4rvz63Ss8%3D","lecture-17-linked-list-data-structure-part-ii-double-linked-list-applications-and-insertion",1795006749,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":55,"category_name":29,"create_tm":187},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":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":105,"category_name":29,"create_tm":193},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=1796110619&Signature=p7XFyfAPaWakqp%2FBDzKBZ%2Beo1aA%3D","cs62-class-8-linked-lists-basic-data-structures",1794017629,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":30,"category_name":29,"create_tm":199},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=1796110619&Signature=Y9SLSu5LtEd6XKJkaNMwvRy2Mk8%3D","singly-linked-lists-in-c-introduction-and-traversal-example",1795382670,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":55,"category_name":29,"create_tm":205},685723,"Fundamentals of Linked Lists - Chapter Summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000182525/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=GuO4acE4xCNSqm6mpm%2BFbzbmw04%3D","fundamentals-of-linked-lists-chapter-summary",1794016982,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":33,"category_name":29,"create_tm":211},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=1796110619&Signature=P%2FA9xQZGtmpQZnlvSNn1EL2IgQg%3D","lecture-11-doubly-linked-lists",1794446060,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":55,"category_name":29,"create_tm":217},685721,"Sequences - Representing Sequences by Arrays and Linked Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999688553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=cpox4dPgTjxR8mOTgK2NFP3roIM%3D","sequences-representing-sequences-by-arrays-and-linked-lists",1794016978]