[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-698704-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-698704-en":130,"doc-similar-698704":162},{"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","cmsc-420-skip-lists","CMSC 420 - Skip Lists","","CMSC 420 Skip Lists explains how skip lists extend a sorted linked list using multiple levels of forward pointers to achieve logarithmic-time search, insertion, and deletion. It motivates the design by contrasting the O(n) performance of a single-level list with an ideal multi-level structure that enables faster “drop down” traversal. It then introduces randomized skip lists, detailing how levels are assigned probabilistically while enforcing a maximum level and using head/tail sentinels to maintain structure. The document further outlines measurement and algorithmic complexity topics for searching, insertion, and deletion.",{"@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/cmsc-420-skip-lists/698704/",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/cmsc-420-skip-lists/698704.png","ImageObject",300,407,{"name":42,"@type":43},"noah","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem do skip lists solve compared with a regular sorted linked list?","Question",{"text":63,"@type":64},"A regular sorted linked list takes O(n) time for search, insertion, and deletion. Skip lists add multiple pointer levels so the same operations can be performed in logarithmic time on average.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does an ideal skip list speed up searching?",{"text":68,"@type":64},"An ideal skip list organizes nodes into levels where higher levels skip more nodes. Searching starts at the top level and repeatedly moves forward while dropping down when the next pointer would overshoot the target.",{"name":70,"@type":61,"acceptedAnswer":71},"How are randomized skip list levels chosen during insertion?",{"text":72,"@type":64},"After setting a maximum level, each node at a given level may independently extend to the next level with a probability p (noted as 0.5 in the document). This randomness avoids rebuilding the entire structure after insertions and deletions.","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},698704,1794454926,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,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":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},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":97,"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":55,"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":144,"preview_page_count":33,"preview_urls":145},1099529839121,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","CMSC 420: Skip Lists  \nJustin Wyss-Gallifent April 10, 2025  \n1 Introduction .............................. 2  \n2 Ideal Skip Lists ............................ 2  \n3 Randomized Skip Lists ........................ 3  \n4 Measurements ............................. 5  \n4.1 Important Note ........................ 5  \n4.2 Levels and Node Counts ................... 5  \n4.3 Storage ............................ 6  \n5 Search ................................. 7  \n5.1 Algorithm ........................... 7  \n5.2 Time Complexity ....................... 7  \n6 Insertion Algorithm and Time Complexity ............. 9  \n7 Deletion Algorithm and Time Complexity ............. 11  \n1 Introduction  \nSkip lists were invented in 1990 by Bill Pugh, at UMD. These are a modification of a regular sorted linked list which provides logarithmic search, insertion and deletion, much like AVL trees. On the down side they require about twice as much storage.  \nThey do this by introducing an element of randomness to the sorted linked list construction, as we’ll see.  \n2 Ideal Skip Lists  \nSuppose we have a sorted linked list with n keys. Clearly it takes O (n) time to find, insert and delete (insertion and deletion since we must find first) . Is there a way to speed this up?  \nLet’s start by hypothesizing a sorted linked list with just 8 elements. Suppose we also have a head node which is simply a pointer to the first element in the list and a tail node which is pointed to by the last element in the list.  \nIn the picture below ignore the 0 in the head node for now, don’t treat it as a key in the list.  \n0  \n\n| |  | 3 | |  | 10 | |  | 11 | |  | 30 | |  | 37 | |  | 42 | |  | 80 | |  | ∞ |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n\nAs mentioned at the start worst-case for find, insert, and delete is O (n) in this case. But suppose we added a “fast level” of pointers. To elaborate, think of the 0 in the head node above as level 0, the really slow level. We’ll add a fast level of pointers at level 1 which skips every other node in level 0:  \n\n| 1 | | |  |  |  | 10 | | |  |  |  | 30 | | |  |  |  | 42 | | |  |  |  | ∞ |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|  |  |  |  |  |  |  |  | |  |  |  |  |  | |  |  |  |  |  | |  |  |  |  |\n| 0 | | | 3 | | |  | |  | 11 | | |  | |  | 37 | | |  | |  | 80 | | |  |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n\nGreat, so what if we added an extra fast level-level 2:  \n\n| 2 | | |  |  |  |  |  |  |  |  |  | 30 | | |  |  |  |  |  |  |  |  |  | ∞ |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|  |  | |  |  |  |  |  | |  |  |  |  |  | |  |  |  |  |  | |  |  |  |  |\n| 1 | |  |  |  |  | 10 | |  |  |  |  |  | |  |  |  |  | 42 | |  |  |  |  |  |\n|  |  |  |  |  |  |  |  | |  |  |  |  |  | |  |  |  |  |  | |  |  |  |  |\n| 0 | | | 3 | | |  | |  | 11 | | |  | |  | 37 | | |  | |  | 80 | | |  |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |\n\nAnd last but not least the fastest level of all-level 3:  \n\n| 3 | 30 \u003Cbr>42 3 37 80 | ∞ |\n| --- | --- | --- |\n| 2 |  |  |\n| 1 |  |  |\n| 0 |  |  |\n\nOkay, let’s pause for a second to see why this might be useful. Suppose we are looking for the key 37 .  \nWe start at the top pointer in level 3 and observe that it points to ∞ . This is too large so we drop down to level 2 .  \nWe check the pointer in level 2 and observe that it points to 30 . This is below our target of 37 so we follow the pointer to that node. We then check the next pointer in level 2 and observe that it points to ∞ . This is too large and so we drop down to level 1 .  \nWe check the next pointer","cbCailQ0zr6D3wze","https://ap.wps.com/l/cbCailQ0zr6D3wze","pdf",194759,11,"English","# 1 Introduction\n# 2 Ideal Skip Lists\n# 3 Randomized Skip Lists\n# 4 Measurements\n## 4.1 Important Note\n## 4.2 Levels and Node Counts\n## 4.3 Storage\n# 5 Search\n## 5.1 Algorithm\n## 5.2 Time Complexity\n# 6 Insertion Algorithm and Time Complexity\n# 7 Deletion Algorithm and Time Complexity","[{\"question\":\"What problem do skip lists solve compared with a regular sorted linked list?\",\"answer\":\"A regular sorted linked list takes O(n) time for search, insertion, and deletion. Skip lists add multiple pointer levels so the same operations can be performed in logarithmic time on average.\"},{\"question\":\"How does an ideal skip list speed up searching?\",\"answer\":\"An ideal skip list organizes nodes into levels where higher levels skip more nodes. Searching starts at the top level and repeatedly moves forward while dropping down when the next pointer would overshoot the target.\"},{\"question\":\"How are randomized skip list levels chosen during insertion?\",\"answer\":\"After setting a maximum level, each node at a given level may independently extend to the next level with a probability p (noted as 0.5 in the document). This randomness avoids rebuilding the entire structure after insertions and deletions.\"}]","CMSC 420 - Skip Lists | PDF",28,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6fc18cc531b29ab25bc16471e30560d1.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3759a656b2e8c630687f746656cbf292.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c0fd405ad3c1fa041b95224cdf7d1278.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/73b37e5807ab06a5bb2960fb86fed6cb.webp",980,1268,{"list":163,"token":11},[164,170,176,182,188,194,200,206,212,218],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":97,"category_name":29,"create_tm":169},698700,"Skip Lists - CMSC 420 - Linked Lists Benefits & Drawbacks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010410173/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=TQwkayIs05wZuDcUgRueU1%2BZcks%3D","skip-lists-cmsc-420-linked-lists-benefits-drawbacks",1794454906,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":33,"category_name":29,"create_tm":175},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=1796111999&Signature=WMbTe9Qmi%2FswlXaThiJV2MuxGCk%3D","lecture-17-linked-list-data-structure-part-ii-double-linked-list-applications-and-insertion",1795006749,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":55,"category_name":29,"create_tm":181},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=1796111999&Signature=upYW7UlnKiM99yKnD3JHznOvc14%3D","doubly-linked-list-basic-operations-and-circular-linked-list",1794446062,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":97,"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=1796111999&Signature=evgUSj7gHf4miXp%2FzO9l47PWgYE%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":97,"category_name":29,"create_tm":193},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=1796111999&Signature=eUS5qZmrsZeOvQYSscOQa7khHK4%3D","rohini-college-of-engineering-technology-linked-list-implementation-singly-linked-lists-core-algorithms-for-traversal-counting-searching-and-insertion",1794017223,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":97,"category_name":29,"create_tm":199},698707,"A Skip List Cookbook -  Version","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009278356/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=4m0PgJC4Y9TAbeFhQXA%2B2Brrlo8%3D","a-skip-list-cookbook-version",1794454937,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":97,"category_name":29,"create_tm":205},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=1796111999&Signature=f2LhBvLq3azqbvMrwtnWiMVjkjI%3D","lecture-notes-on-skip-lists-lecture-12-march-18-2004",1794454953,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":97,"category_name":29,"create_tm":211},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=1796111999&Signature=eCteKXgRQmxhCYsGpIVUP%2BCDoIo%3D","chapter-4-linked-lists-41-singly-linked-lists-or-chains",1794017203,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":97,"category_name":29,"create_tm":217},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=1796111999&Signature=cyah91ewrAIZwwhrphvMUYq%2BYOg%3D","l6b-linked-list-variations-lecture-6b",1794017196,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":97,"category_name":29,"create_tm":223},685782,"1.4.2 - Data Structures - Advanced Notes - Specification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000208907/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=MWDpGOJMfMDJ7i5grNiikhpxPI8%3D","142-data-structures-advanced-notes-specification",1794018468]