[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-719604-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-719604-en":130,"doc-similar-719604":160},{"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","lecture-17-linked-list-data-structure-part-ii-double-linked-list-applications-and-insertion","Lecture 17 - Linked List Data Structure (Part-II) - Double Linked List - Applications and Insertion","","Lecture No. 17 focuses on the linked list data structure, extending from prior coverage of single and circular linked lists. The session explains the doubly linked list concept, emphasizing that each node maintains two links (left and right) enabling traversal in both directions. It describes the node fields and the header/end behavior, then compares insertion and deletion ideas with single linked lists while noting added complexity from managing multiple pointers. The lecture details pointer updates for insertion at the front and sets up insertion at the end.",{"@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/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/lecture-17-linked-list-data-structure-part-ii-double-linked-list-applications-and-insertion/719604/",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/lecture-17-linked-list-data-structure-part-ii-double-linked-list-applications-and-insertion/719604.png","ImageObject",300,407,{"name":42,"@type":43},"Rainbow Cat","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-11-18",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},"What is a doubly linked list and how does it differ from a singly or circular linked list?","Question",{"text":62,"@type":63},"A doubly linked list maintains two links per node—left and right—so traversal is possible in both directions. In contrast, a singly linked list typically moves in only one direction from the header.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What information does each node in a doubly linked list store?",{"text":67,"@type":63},"Each node stores the actual data plus two pointers: a right link and a left link. The right link helps move toward the right, while the left link helps move back toward the header.",{"name":69,"@type":60,"acceptedAnswer":70},"Why are insertions and deletions more complex in a doubly linked list than in a singly linked list?",{"text":71,"@type":63},"Because pointer updates must be managed for multiple links during insertion and deletion. The operations require careful adjustments to maintain correct connections in both directions.","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},719604,1795006749,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,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":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":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":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":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":117,"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":79,"read_time":102,"preview_page_count":33,"preview_urls":143},962090769181,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Data Structures and Algorithms Using Java  \nProfessor. Debasis Samanta  \nDepartment of Computer Science and Engineering  \nIndian Institute of Technology, Kharagpur  \nLecture No. 17  \nLinked List Data Structure (Part-II)  \nIn this fifth module we are discussing about linked list structure. In the last video you have planned about basic concept of linked list structure. Mainly, we have discussed about single linked list and circular linked list. There is another type of linked list; it is double linked list. So, today in this lecture we will study about the double linked list.  \n(Refer Slide Time: 0:50)  \nAnd then few application of linked list. Now, let us first start about doubly linked list.  \n(Refer Slide Time: 0:57)  \nAs the name implies in contrast to the singly or circular single linked list, doubly linked list basically points from a given node; we can point two nodes. Now, these basically pointing two nodes or linked for the two nodes for the movement of two directions. Now, if you can consider singly linked list, you can move starting from the header node only in one directions. So, from header you just go to left actually.  \nNow, if you maintain two links; one link from towards left and another from the right, then it will basically enables you to move in both directions to left as well as to right. So, this is basically the fundamental reason behind, why two links are to be maintained for each node. Now, so this is a concept that is basically double linked list.  \n(Refer Slide Time: 2:05)  \nNow, unlike the single linked list, the node of a down linked list has 3 information to be stored. In this nodes structure as you can here, it has basically data like the single linked list; it contains the actual information. And then it has the two links; one is called the left link and another is called the right link. So, it basically the right link is to move towards the right only starting from header; and here left link is basically to move to the, towards the header actually.  \nSo, it is away from header and to the header actually; from any node therefore you can move in two directions. So, a pictorially a double linked list look like this; so this is the header and you can see linked list is a homogeneous structure all nodes are of same side. So, header is also same; it has two fields. Here, the right link will gives the link to the first node, and you see for the header node, the left link is null; this indicates that this is the end actually. Now, again here you see the right link points to the first node. In point of first node whose left link is point to the header node.  \nAnd you see the two links are there who is basically use; so here from the header you can come to this one; from the first node you can come to this one. So, this say both way the movement is possible. Likewise, from any node likewise from any node here either you can move to this direction or move to this direction; that is all, just only traversing the pointer. So, if you want to move only; you can just concern only right link. And if you want to move to the left, then you  \nonly concern the left link. So, this basically the concept that you have to follow, in order to traverse a double linked list.  \nNow, insertion and other operations like deletion merging is similar to the single linked list operation. But, it is more complex; it is complex because we have to manage many links for both insertion and deletion.  \n(Refer Slide Time: 4:45)  \nI will give a quick view of it, how the different links are to be managed for the operation. Now, let us first look at these figures, so insertion at the front; so, this is the new element that needs tobe insert. Now, which are the different order the links are to be managed, I have mentioned here.  \nSo, the first link that you should mention is basically now at this point, suppose this is the initial link list given to you, double linked list given to you; and you want to add new nodes here. So, you know that ","cbCaiusSAfTVyumy","https://ap.wps.com/l/cbCaiusSAfTVyumy","pdf",1057199,"English","# Linked List Data Structure (Part-II)\n## Lecture 17: Overview of Doubly Linked List\n## Node Structure and Two-Direction Traversal\n## Pointer Management for Insertion\n## Insertion at Front and Insertion at End","[{\"question\":\"What is a doubly linked list and how does it differ from a singly or circular linked list?\",\"answer\":\"A doubly linked list maintains two links per node—left and right—so traversal is possible in both directions. In contrast, a singly linked list typically moves in only one direction from the header.\"},{\"question\":\"What information does each node in a doubly linked list store?\",\"answer\":\"Each node stores the actual data plus two pointers: a right link and a left link. The right link helps move toward the right, while the left link helps move back toward the header.\"},{\"question\":\"Why are insertions and deletions more complex in a doubly linked list than in a singly linked list?\",\"answer\":\"Because pointer updates must be managed for multiple links during insertion and deletion. The operations require careful adjustments to maintain correct connections in both directions.\"}]","Lecture 17 - Linked List Data Structure (Part-II) - Double Linked List - Applications and Insertion | PDF",[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/54225b7162f9e258f7a9571f044ea654.webp",983,1272,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b2bc487517dea984124c407d9e542655.webp",982,1270,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/551b47632300425d59a7d8f70ab63838.webp",981,1269,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/38ec180ea22d27f9d2f17c3f993204b0.webp",980,1268,{"list":161,"token":11},[162,168,174,180,186,192,198,204,209,215],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":105,"category_name":29,"create_tm":167},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=1796111579&Signature=7NKly9%2BFjLdRCZVkniYRMIsiRWY%3D","lecture-five-linked-list-structure",1794017204,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":96,"category_name":29,"create_tm":173},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=1796111579&Signature=vmSyjieBngk%2BZ5Pj2AdIPtQ922M%3D","l6b-linked-list-variations-lecture-6b",1794017196,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":96,"category_name":29,"create_tm":179},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=1796111579&Signature=YzG9DS%2BxeiMs2dcqUTxr5OmyLCo%3D","linked-lists-introduction-properties-advantages-disadvantages-and-types",1794016969,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":101,"category_name":29,"create_tm":185},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=1796111579&Signature=J9BQLH2nIe8EftFOqEgmlwSq0pw%3D","doubly-linked-list-basic-operations-and-circular-linked-list",1794446062,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":101,"category_name":29,"create_tm":191},698704,"CMSC 420 - Skip Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010410348/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=29Rz%2FuWgKRm8OwJfcLzwAt%2FwMa4%3D","cmsc-420-skip-lists",1794454926,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":96,"category_name":29,"create_tm":197},685741,"ROHINI COLLEGE OF ENGINEERING & TECHNOLOGY - Linked list implementation - Singly linked lists - Core algorithms for traversal, counting, searching and insertion","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000186201/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=ooUn3q8%2BOgL6%2FtCMD4t3wKzWLRE%3D","rohini-college-of-engineering-technology-linked-list-implementation-singly-linked-lists-core-algorithms-for-traversal-counting-searching-and-insertion",1794017223,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":96,"category_name":29,"create_tm":203},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=1796111579&Signature=1qP6vDbAA6pmO4th2Q3Wbn%2B90kM%3D","chapter-4-linked-lists-41-singly-linked-lists-or-chains",1794017203,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":33,"category_name":29,"create_tm":173},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=1796111579&Signature=Zle6AhF8z9oNZsZtLywDJuD6SYY%3D","circular-linked-lists-all-operations-and-complexity-analysis",{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":33,"category_name":29,"create_tm":214},732876,"Lecture 10 - Linked Lists - Lecture notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413512/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=vnOOL6xw10sSiWyalfYiVWjLp3A%3D","lecture-10-linked-lists-lecture-notes",1795382672,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":30,"category_name":29,"create_tm":220},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=1796111579&Signature=omFlt357z4dhcTaGDiCeTZbKiCk%3D","singly-linked-lists-in-c-introduction-and-traversal-example",1795382670]