[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-698700-105":59,"doc-detail-698700-en":130,"doc-similar-698700":161},{"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","skip-lists-cmsc-420-linked-lists-benefits-drawbacks","Skip Lists - CMSC 420 - Linked Lists Benefits & Drawbacks","","Skip lists extend sorted linked lists to overcome linear search and poor “middle jumping.” The structure is randomized, built using coin flips to create a hierarchy of sorted key levels with header and sentinel nodes. Each higher level contains about half the elements, and nodes hold variable numbers of pointers. Expected search runs in O(log n) by scanning along the shortest list and dropping one level when the target should be lower.",{"@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/skip-lists-cmsc-420-linked-lists-benefits-drawbacks/698700/",{"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/skip-lists-cmsc-420-linked-lists-benefits-drawbacks/698700.png","ImageObject",300,407,{"name":92,"@type":93},"MrHarris58","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-17","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why are skip lists useful compared with ordinary linked lists?","Question",{"text":112,"@type":113},"Skip lists support fast insertion and deletion in O(1) time like linked lists, while providing expected O(log n) search time. They address the difficulty of searching and jumping compared to standard sequential traversal.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are perfect skip lists organized?",{"text":117,"@type":113},"Keys appear in sorted order across multiple levels. Each level has O(log n) levels overall, with each higher level containing half the elements of the level below. Header and sentinel nodes exist in every level.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the search algorithm for a key k in a skip list?",{"text":121,"@type":113},"Starting from the current level, if k matches a key, the search ends. If k is less than the next key, the algorithm goes down one level; if k is greater than or equal to the next key, it moves right, continuing until found or determined missing.","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},698700,1794454906,{"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":24,"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":19,"preview_urls":145},687212988360,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Skip Lists  \nCMSC 420  \nLinked Lists Beneﬁts & Drawbacks  \n• Beneﬁts:  \n- Easy to insert & delete in O(1) time  \n- Don’t need to estimate total memory needed  \n• Drawbacks:  \n- Hard to search in less than O(n) time (binary search doesn’t work, eg.)  \n- Hard to jump to the middle  \n• Skip Lists:  \n- ﬁx these drawbacks  \n- good data structure for a dictionary ADT  \nSkip Lists  \n• Invented around 1990 by Bill Pugh  \n• Generalization of sorted linked lists – so simple to implement  \n• Expected search time is O(log n)  \n• Randomized data structure:  \n- use random coin ﬂips to build the data structure  \nPerfect Skip Lists  \n 31   \n2  31       2  15  31  96     \n   2  10  15  16  31  71  96     \nheader  \nsentinel  \nPerfect Skip Lists  \n• Keys in sorted order.  \n• O(log n ) levels  \n• Each higher level contains 1/2 the elements of the level below it.  \n• Header & sentinel nodes are in every level  \nPerfect Skip Lists, continued  \n• Nodes are of variable size:  \n- contain between 1 and O(log n) pointers  \n• Pointers point to the start of each node (picture draws pointers horizontally for visual clarity)  \n• Called skip lists because higher level lists let you skip over many items  \nPerfect Skip Lists, continued  \nFind 71  \nComparison  \nChange  \ncurrent  location  \n\n|  | |\n| --- | --- |\n\n| 10 |  |\n| --- | --- |\n\n\n|  | |\n| --- | --- |\n|  |  |\n\n\n|  | | | 7 1 |  |\n| --- | --- | --- | --- | --- |\n|  |  |  |  |  |\n\n|  | |\n| --- | --- |\n|  | |\n\n\n|  | |\n| --- | --- |\n|  | |\n|  | |\n\n71 \u003C 91?  \n71 \u003C 96?  \n| 87 |  |\n| --- | --- |\n\n\n|  | |\n| --- | --- |\n\n| 96 | |\n| --- | --- |\n\n|  | |\n| --- | --- |\n|  |  |\n\n71 \u003C Inf?  \n71 \u003C 31?  \n\n| 16 |  |\n| --- | --- |\n\n\n| 76 | |\n| --- | --- |\n|  |  |\n\n2  \n15  \n31  \n 91   \nWhen search for k: If k = key, done!  \nIf k \u003C next key, go down a level If k ≥ next key, go right  \nIn other words,  \n• To ﬁnd an item, we scan along the shortest list until we would “pass” the desired item.  \n• At that point, we drop down to a slightly more complete list at one level lower.  \n• Remember: sorted sequential searching...  \nfor(i = 0; i \u003C n; i++)  \nif(X[i] >= K) break; if(X[i] != K) return FAIL;  \nPerfect Skip Lists, continued  \nFind 96  \nComparison  \nChange  \ncurrent  location  \n\n|  | |\n| --- | --- |\n|  | |\n|  |  |\n\n\n| 10 |  |\n| --- | --- |\n\n\n|  | |\n| --- | --- |\n|  |  |\n\n\n| 16 |  |\n| --- | --- |\n\n\n|  | |\n| --- | --- |\n|  | |\n|  | |\n|  |  |\n\n\n| 71 |  |\n| --- | --- |\n\n\n|  | |\n| --- | --- |\n|  |  |\n\n96 \u003C 91?  96 \u003C Inf?  \n|  | |\n| --- | --- |\n|  |  |\n\n96 \u003C Inf?  \n96 \u003C 31?  \n2  \n15  \n31  \n76  \n\n| 87 |  |\n| --- | --- |\n\n 91   \n\n| |  |\n| --- | --- |\n\nWhen search for k: If k = key, done!  \nIf k \u003C next key, go down a level If k ≥ next key, go right  \nSearch Time:  \n• O(log n) levels---because you cut the \\# of items in half at each level  \n• Will visit at most 2 nodes per level:  \nIf you visit more, then you could have done it on one level higher up.  \n• Therefore, search time is O(log n) .","cbCaidkGyLibp3sA","https://ap.wps.com/l/cbCaidkGyLibp3sA","pdf",170087,23,"English","# Skip Lists\n## Linked Lists Benefits & Drawbacks\n## Skip Lists Overview\n## Perfect Skip Lists\n## Search Procedure\n## Search Time Analysis","[{\"question\":\"Why are skip lists useful compared with ordinary linked lists?\",\"answer\":\"Skip lists support fast insertion and deletion in O(1) time like linked lists, while providing expected O(log n) search time. They address the difficulty of searching and jumping compared to standard sequential traversal.\"},{\"question\":\"How are perfect skip lists organized?\",\"answer\":\"Keys appear in sorted order across multiple levels. Each level has O(log n) levels overall, with each higher level containing half the elements of the level below. Header and sentinel nodes exist in every level.\"},{\"question\":\"What is the search algorithm for a key k in a skip list?\",\"answer\":\"Starting from the current level, if k matches a key, the search ends. If k is less than the next key, the algorithm goes down one level; if k is greater than or equal to the next key, it moves right, continuing until found or determined missing.\"}]","Skip Lists - CMSC 420 - Linked Lists Benefits & Drawbacks | PDF",58,[146,150,153,157],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6575dec21943e38d54080ff94055f3ac.webp",983,736,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6bc0036d5ce77aa55044a0084a5c3572.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/a50ebfce301e4fabd717f54e2a17597e.webp",981,735,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ce88e397e8f561c57187b768e4fd77b1.webp",980,734,{"list":162,"token":66},[163,169,175,181,187,193,199,205,211,217],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":29,"category_name":30,"create_tm":168},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=1796110619&Signature=On7VgjSqzuuOL30OyXtleJoxVrw%3D","cmsc-420-skip-lists",1794454926,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":24,"category_name":30,"create_tm":174},698708,"Lecture Notes on Skip Lists - Lecture 12 - March 18, 2004","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010410410/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=UL0kXBylY0X1b0qJ9Pr2g0imF1Q%3D","lecture-notes-on-skip-lists-lecture-12-march-18-2004",1794454953,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":81,"category_name":30,"create_tm":180},697958,"Chapter-3 - Linked List Problems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010142305/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=P1OmRrL3sQzPHHiqqpBykqly4eo%3D","chapter-3-linked-list-problems",1794446343,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":14,"category_name":30,"create_tm":186},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=1796110619&Signature=bWWTvpB9MJVuCyWmzqANY2gIYAs%3D","linked-lists-lecture-notes",1795006752,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":24,"category_name":30,"create_tm":192},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=1796110619&Signature=0ZSlkbjAYAtRPMynY3xpcr%2F2ctQ%3D","l6b-linked-list-variations-lecture-6b",1794017196,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":19,"category_name":30,"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=1796110619&Signature=P%2FA9xQZGtmpQZnlvSNn1EL2IgQg%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":29,"category_name":30,"create_tm":204},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=1796110619&Signature=OKKBEJ44lKgYkoRiyLiA7cxJoW8%3D","linked-lists-fundamentals-core-concepts-and-c-implementation-notes",1794017949,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":24,"category_name":30,"create_tm":210},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":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":24,"category_name":30,"create_tm":216},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=1796110619&Signature=g9CEuPQb6d2Vuua9HG1HORPZHFc%3D","rohini-college-of-engineering-technology-linked-list-implementation-singly-linked-lists-core-algorithms-for-traversal-counting-searching-and-insertion",1794017223,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":81,"category_name":30,"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=1796110619&Signature=ej%2FS3JTBg0pI9okJ7ta2C2BFdXk%3D","recitation-12-root-finding-sorting-stacks-queues-linked-lists-and-object-references",1795006740]