[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-698708-105":59,"doc-detail-698708-en":130,"doc-similar-698708":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","lecture-notes-on-skip-lists-lecture-12-march-18-2004","Lecture Notes on Skip Lists - Lecture 12 - March 18, 2004","","Lecture notes introducing skip lists as a randomized alternative to balanced tree structures such as B-trees, red-black trees, and treaps. Starting from linked-list searching, the notes build two-level “express” links that enable efficient jumping, then generalize the idea by promoting elements across levels via repeated fair-coin flips. The lecture analyzes search cost, introduces “with high probability,” and proves that searches take logarithmic time with high probability by bounding levels and using union-bound style arguments.",{"@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/lecture-notes-on-skip-lists-lecture-12-march-18-2004/698708/",{"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/lecture-notes-on-skip-lists-lecture-12-march-18-2004/698708.png","ImageObject",300,407,{"name":92,"@type":93},"lilac","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","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 does the lecture introduce skip lists instead of balanced trees?","Question",{"text":112,"@type":113},"It positions skip lists as a simple randomized structure that avoids the complexity of implementing balanced trees while still achieving efficient search performance.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How is searching performed in a skip list?",{"text":117,"@type":113},"The search begins at the higher level, moving forward until the next step would overshoot, then drops down one level and continues until the element is found or confirmed absent.",{"name":119,"@type":110,"acceptedAnswer":120},"How are elements promoted to higher levels during insertion?",{"text":121,"@type":113},"Insertion always adds the new element to the bottommost level, then repeatedly flips a fair coin to decide whether to promote the element to the next level up, continuing until the coin indicates stopping.","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},698708,1794454953,{"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":29,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},3985747861865,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Introduction to Algorithms March 18, 2004  \nMassachusetts Institute of Technology 6.046J/18.410J Professors Erik Demaine and Shaﬁ Goldwasser Handout 14  \nLecture Notes on Skip Lists  \nLecture 12—March 18, 2004  \nErik Demaine  \n􀀀 Balanced tree structures we know at this point: B-trees, red-black trees, treaps.  \n􀀀 Could you implement them right now? Probably, with time... but without looking up any details in a book?  \n􀀀 Skip lists are a simple randomized structure you’ll never forget.  \nStarting from scratch  \n􀀀 Initial goal: just searches—ignore updates (Insert/Delete) for now  \n􀀀 Simplest data structure: linked list  \n􀀀 Sorted linked list: ✁ ✂ ☎ ✝ time  \n􀀀 2 sorted linked lists:  \n– Each element can appear in 1 or both lists  \n– How to speed up search?  \n– Idea: Express and local subway lines  \n– Example: 14 , 23,  34 ,  42 , 50, 59, 66, 72 , 79, 86, 96 , 103, 110, 116, 125  \n(What is this sequence?)  \n– Boxed values are “express” stops; others are normal stops  \n– Can quickly jump from express stop to next express stop, or from any stop to next normal stop  \n– Represented as two linked lists, one for express stops and one for all stops:  \n14  34  42  72  96  \n14  23  34  42  50  59  66  72  79  86  96  103  110  116  125  \n– Every element is in linked list 2 (LL2); some elements also in linked list 1 (LL1)  \n– Link equal elements between the two levels  \n– To search, ﬁrst search in LL1 until about to go too far, then go down and search in LL2  \n2 Handout 14: Lecture Noteson Skip Lists  \n– Cost:  \n􀀀 ✁ ✂ ✂ ☎ ☎ ✞ ✝ ✠ 􀀀􀀀✁✁✂✂~~ ~~✂✂☎☎☎☎☞✞✝✝ ✍ 􀀀 ✁ ✂ ✂ ☎ ☎ ✞ ✝ ✠ 􀀀~~ ~~✁~~ ~~✂~~ ~~✂✏☎~~ ~~☎~~ ~~✞~~ ~~✝  \n– Minimized when  \n􀀀 ✁ ✂ ✂ ☎ ☎ ✞ ✝ ✍ 􀀀~~ ~~✁~~ ~~✂~~ ~~✂✏☎~~ ~~☎~~ ~~✞~~ ~~✝✓ 􀀀 ✁ ✂✂ ☎ ☎ ✞ ✝✔ ✍ ✏  \n✓ 􀀀 ✁ ✂✂ ☎ ☎ ✞ ✝ ✍ ✖✏  \n✓ ✘ ✁ ✙ ✚ ✜ ✣ ✜ ! ✘ \" ✍ ☞ ✖✏  \n– Resulting 2-level structure:  \n sqrt n    \nsqrt n    sqrt n    sqrt n    sqrt n   \n􀀀 3 linked lists: $ % ✖& ☎  \n􀀀 ( linked lists: (% ✖* ☎  \n􀀀 􀀀 , ☎ linked lists: 􀀀 , ☎ % / 1✖2 ☎ ✍ 􀀀 , ☎ % 48 :@ ✍ ✁ ✂􀀀 , ☎✝  \nA ✔  \n– Becomes like a binary tree:  \n– Example: Search for 72  \nB Level 1: 14 too small, 79 too big; go down 14  \nB Level 2: 14 too small, 50 too small, 79 too big; go down 50  \nB Level 3: 50 too small, 66 too small, 79 too big; go down 66  \nB Level 4: 66 too small, 72 spot on  \nInsert  \n􀀀 New element should certainly be added to bottommost level (Invariant: Bottommost list contains all elements)  \n􀀀 Which other lists should it be added to?(Is this the entire balance issue all over again?)  \n􀀀 Idea: Flip a coin  \n– With what probability should it go to the next level?  \n– To mimic a balanced binary tree, we’d like half of the elements to advance to the nextto-bottommost level  \n– So, when you insert an element, ﬂip a fair coin  \n– If heads: add element to next level up, and ﬂip another coin (repeat)  \n􀀀 Thus, on average:  \n– ✞ 􀀀 ☞ the elements go up 1 level  \n– ✞ 􀀀 ✂ the elements go up 2 levels  \n– ✞ 􀀀 ☎ the elements go up 3 levels  \n– Etc.  \n􀀀 Thus,“approximately even”  \nExample  \n􀀀 Get out a real coin and try an example  \n􀀀 You should put a special value ✝ ✞ at the beginning of each list, and always promote this special value to the highest level of promotion  \n􀀀 This forces the leftmost element to be present in every list, which is necessary for searching  \n. . . many coins are ﬂipped . . .  \n(Isn’t this easy?)  \n􀀀 The result is a skip list.  \n􀀀 It probably isn’t as balanced as the ideal conﬁgurations drawn above.  \n􀀀 It’s clearly good on average.  \n􀀀 Claim it’s really really good, almost always.  \nAnalysis: Claim of With High Probability  \n􀀀 Theorem: With high probability, every search costs ✁ ✂􀀀 , ☎ ✝ in a skip list with ☎ elements  \n􀀀 What do we need to do to prove this? [Calculate the probability, and show that it’s high!]  \n􀀀 We need to deﬁne the notion of “with high probability”; this is a powerful technical notion, used throughout randomized algorithms  \n􀀀 Informal deﬁnition: An event occurs with high probability if, for any 􀀀 ✁ ✞ , there is an appropriate choice","cbCairfdX47POLNb","https://ap.wps.com/l/cbCairfdX47POLNb","pdf",70223,"English","# Lecture Notes on Skip Lists\n## Starting from scratch\n## Multi-level skip lists and searching\n## Insert operations and coin-flip promotion\n## Analysis: with high probability","[{\"question\":\"Why does the lecture introduce skip lists instead of balanced trees?\",\"answer\":\"It positions skip lists as a simple randomized structure that avoids the complexity of implementing balanced trees while still achieving efficient search performance.\"},{\"question\":\"How is searching performed in a skip list?\",\"answer\":\"The search begins at the higher level, moving forward until the next step would overshoot, then drops down one level and continues until the element is found or confirmed absent.\"},{\"question\":\"How are elements promoted to higher levels during insertion?\",\"answer\":\"Insertion always adds the new element to the bottommost level, then repeatedly flips a fair coin to decide whether to promote the element to the next level up, continuing until the coin indicates stopping.\"}]","Lecture Notes on Skip Lists - Lecture 12 - March 18, 2004 | PDF",15,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/18faaba0aec40470ce1df2b014dde039.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/dd357f7b0f175fdf1b17fde79b4ebf13.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/a5a737925e83d56cc757289f1d5e63d5.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/16d4c9dd421abe34b52db8af1b21c9e8.webp",980,1268,{"list":162,"token":66},[163,169,175,181,187,194,200,207,213,220],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":24,"category_name":30,"create_tm":168},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=1796111399&Signature=pF%2FCAR80BlTU3dRO%2BBGHeqI9SE4%3D","skip-lists-cmsc-420-linked-lists-benefits-drawbacks",1794454906,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":29,"category_name":30,"create_tm":174},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=1796111399&Signature=cgVnHQz573GuSfyI3IS9Tajl1qA%3D","cmsc-420-skip-lists",1794454926,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":19,"category_name":30,"create_tm":180},657447,"L19-Reliability-Block-Diagram - Reliability Block Diagrams - Reliability Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975464437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=WZfvVzNsGwaS6kZSxKLDxUp2LXI%3D","l19-reliability-block-diagram-reliability-block-diagrams-reliability-analysis",1792979275,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":19,"category_name":30,"create_tm":186},732869,"Levels of Programming Languages - Lecture 2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413403/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=n9e1uGtwzWZB%2BSYqfH44stIG9fY%3D","levels-of-programming-languages-lecture-2",1795382636,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":30,"create_tm":193},504655,"A Fast Implementation of Random Forests - Version 0.18.0 - Package description","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932111376/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=EQ5rHj%2BauUtVAW5j4yLfjvE5Y6E%3D","a-fast-implementation-of-random-forests-version-0180-package-description",13,1791071772,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":44,"category_name":30,"create_tm":199},697948,"Data Structures Using Python - R20A0503 - Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010141008/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=KlFfPg5y%2FLcWmsBWTV8we4o%2BBN0%3D","data-structures-using-python-r20a0503-lecture-notes",1794446274,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":30,"create_tm":206},268246,"EE 261 - The Fourier Transform and its Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898167301/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=u4uLOjgjxYHq9n6zxhOEBvwgWV4%3D","ee-261-the-fourier-transform-and-its-applications",29,1789429622,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":29,"category_name":30,"create_tm":212},640359,"GTX-4 GARMENT PRINTER Instruction Manual - Read Before Use","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970398203/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=jGgA3s6bx%2F9N1AjoNPjlx1BsrK4%3D","gtx-4-garment-printer-instruction-manual-read-before-use",1792708755,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":30,"create_tm":219},300601,"2023 ICT Mentorship GEMS - Trading Session Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905569345/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=nYfv8fxarq1VjPASr1I6nsMAZOE%3D","2023-ict-mentorship-gems-trading-session-notes",248,1789775475,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":143,"category_name":30,"create_tm":225},655471,"Logic Gates and Typical Functional Blocks - Lectures Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773833/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=rzn6MO1%2BI2fs3EZFTZXE59T16RQ%3D","logic-gates-and-typical-functional-blocks-lecture-notes",1792961922]