[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-429045-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-429045-en":130,"doc-similar-429045":166},{"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","introduction-to-information-retrieval-lecture-5-index-compression-index-compression-and-dictionarypostings-compression","Introduction to Information Retrieval - Lecture 5 - Index Compression - Index Compression and Dictionary/Postings Compression","","Lecture 5 focuses on index compression in information retrieval systems, explaining why compressing inverted indexes matters for storage, memory, and speed. It motivates compression generally, then targets dictionary and postings files, emphasizing faster decompression and reduced disk reads. The lecture also revisits Reuters RCV1 collection statistics and contrasts index parameters with what is indexed, including dictionary and postings sizes for various preprocessing settings. It introduces lossless vs. lossy compression and discusses how preprocessing (case folding, stop words, stemming, number elimination) can be interpreted as lossy compression.",{"@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/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/introduction-to-information-retrieval-lecture-5-index-compression-index-compression-and-dictionarypostings-compression/429045/",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/introduction-to-information-retrieval-lecture-5-index-compression-index-compression-and-dictionarypostings-compression/429045.png","ImageObject",300,407,{"name":42,"@type":43},"PakDamar76","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-09-29",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is compression beneficial in information retrieval systems?","Question",{"text":63,"@type":64},"Compression uses less disk space, helps keep more data in memory, and improves speed by reducing disk-to-memory data transfer. It relies on the premise that decompression algorithms are fast enough to outweigh the read savings.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What parts of an inverted index are targeted for compression?",{"text":68,"@type":64},"The lecture emphasizes compressing the dictionary to fit main memory and compressing postings file(s) to reduce disk space and decrease the time needed to read postings lists from disk.",{"name":70,"@type":61,"acceptedAnswer":71},"How does lossless compression differ from lossy compression in this context?",{"text":72,"@type":64},"Lossless compression preserves all information, while lossy compression discards some information. Several IR preprocessing steps, such as case folding, stop words removal, stemming, and number elimination, can be viewed as lossy compression.","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},429045,1790873991,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,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":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"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":112,"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":144,"read_time":145,"preview_page_count":97,"preview_urls":146},962090893057,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Introduction to  \nInformation Retrieval  \nCS276: Information Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan  \nLecture 5: Index Compression  \nIntroduction to Information Retrieval   \nCourse work  \n􀂃 Problem set 1 due Thursday  \n􀂃 Programming exercise 1 will be handed out today  \nIntroduction to Information Retrieval   \nLast lecture – index construction  \n􀂃 Sort-based indexing  \n􀂃 Naïve in-memory inversion  \n􀂃 Blocked Sort-Based Indexing  \n􀂃 Merge sort is effective for disk-based sorting (avoid seeks!)  \n􀂃 Single-Pass In-Memory Indexing  \n􀂃 No global dictionary  \n􀂃 Generate separate dictionary for each block  \n􀂃 Don’t sort postings  \n􀂃 Accumulate postings in postings lists as they occur  \n􀂃 Distributed indexing using MapReduce  \n􀂃 Dynamic indexing: Multiple indices, logarithmic merge  \nIntroduction to Information Retrieval  Ch. 5   \nToday  \n􀂃 Collection statistics in more detail (with RCV1)  \n􀂃 How big will the dictionary and postings be?  \n􀂃 Dictionary compression  \n􀂃 Postings compression  \nIntroduction to Information Retrieval  Ch. 5   \nWhy compression (in general)?   \n􀂃 Use less disk space  \n􀂃 Saves a little money  \n􀂃 Keep more stuff in memory  \n􀂃 Increases speed  \n􀂃 Increase speed of data transfer from disk to memory  \n􀂃 [read compressed data | decompress] is faster than [read uncompressed data]  \n􀂃 Premise: Decompression algorithms are fast  \n􀂃 True of the decompression algorithms we use  \nIntroduction to Information Retrieval  Ch. 5   \nWhy compression for inverted indexes?   \n􀂃 Dictionary  \n􀂃 Make it small enough to keep in main memory  \n􀂃 Make it so small that you can keep some postings lists in main memory too  \n􀂃 Postings file(s)  \n􀂃 Reduce disk space needed  \n􀂃 Decrease time needed to read postings lists from disk  \n􀂃 Large search engines keep a significant part of the postingsin memory.  \n􀂃 Compression lets you keep more in memory  \n􀂃 We will devise various IR-specific compression schemes  \nIntroduction to Information Retrieval  Sec. 5.1   \nRecall Reuters RCV1  \n􀂃  \n􀂃  \n􀂃  \n􀂃  \n􀂃  \n􀂃  \n􀂃  \n􀂃  \nsymbol  \nNLM  \nstatistic  \ndocuments  \navg. \\# tokens per doc terms (= word types) avg. \\# bytes per token  \n(incl. spaces/punct.)  \navg. \\# bytes per token  \n(without spaces/punct.)  \navg. \\# bytes per term non-positional postings  \nvalue  \n800,000 200 ~400,000 6  \n4.5  \n7.5  \n100,000,000  \n Introduction to Information Retrieval  Sec. 5.1   \nIndex parameters vs. what we index (details IIR Table 5.1, p.80)  \n| size of | word types (terms) |  |  | non-positional postings |  |  | positional postings |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|  | dictionary |  |  | non-positional index |  |  | positional index |  |  |\n|  | Size (K) | ∆% | cumul % | Size (K) | ∆% | cumul % | Size (K) | ∆% | cumul % |\n| Unfiltered | 484 |  |  | 109,971 |  |  | 197,879 |  |  |\n| No numbers | 474 | -2 | -2 | 100,680 | -8 | -8 | 179,158 | -9 | -9 |\n| Case folding | 392 | -17 | -19 | 96,969 | -3 | -12 | 179,158 | \u003Cbr>0 | -9 |\n| 30 stopwords | 391 | -0 | -19 | 83,390 | -14 | -24 | 121,858 | -31 | -38 |\n| 150 stopwords | 391 | -0 | -19 | 67,002 | -30 | -39 | 94,517 | -47 | -52 |\n| stemming | 322 | -17 | -33 | 63,812 | -4 | -42 | 94,517 | 0 | -52 |\n\nExercise: give intuitions for all the ‘0’ entries . Why do some zero entries correspond to big deltas in other columns?  \nIntroduction to Information Retrieval  Sec. 5.1   \nLossless vs. lossy compression   \n􀂃 Lossless compression: All information is preserved.  \n􀂃 What we mostly do in IR.  \n􀂃 Lossy compression: Discard some information  \n􀂃 Several of the preprocessing steps can be viewed as lossy compression: case folding, stop words, stemming, number elimination.  \n􀂃 Chap/Lecture 7: Prune postings entries that are unlikely to turn up in the top k list for any query.  \n􀂃 Almost no loss quality for top k list.  \nIntroduction to Information Retrieval  Sec. 5.1   \nVocabulary vs. collection size   \n􀂃 How big is the term vocabulary?  \n􀂃 That is, how many distinct words are the","cbCaioQRs13OXs3h","https://ap.wps.com/l/cbCaioQRs13OXs3h","pdf",1338892,48,"English","# Lecture 5: Index Compression\n## Why compression (in general)?\n## Why compression for inverted indexes?\n## Collection statistics (RCV1)\n## Dictionary compression and postings compression\n## Lossless vs. lossy compression","[{\"question\":\"Why is compression beneficial in information retrieval systems?\",\"answer\":\"Compression uses less disk space, helps keep more data in memory, and improves speed by reducing disk-to-memory data transfer. It relies on the premise that decompression algorithms are fast enough to outweigh the read savings.\"},{\"question\":\"What parts of an inverted index are targeted for compression?\",\"answer\":\"The lecture emphasizes compressing the dictionary to fit main memory and compressing postings file(s) to reduce disk space and decrease the time needed to read postings lists from disk.\"},{\"question\":\"How does lossless compression differ from lossy compression in this context?\",\"answer\":\"Lossless compression preserves all information, while lossy compression discards some information. Several IR preprocessing steps, such as case folding, stop words removal, stemming, and number elimination, can be viewed as lossy compression.\"}]","Introduction to Information Retrieval - Lecture 5 - Index Compression - Index Compression and Dictionary/Postings Compression | PDF",1790648447,121,[147,151,154,158,162],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b3be41a784eb3fb7ed110516ede31add.webp",983,736,{"page_no":26,"url":152,"width":153,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c958b033561502ccbcb58c1ee84116d9.webp",982,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/404df54498f4dc2a8ecd20e4203d4ed3.webp",981,735,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d1d19b3a952c02915da4b774aed7c164.webp",980,734,{"page_no":97,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2a8d94365ae08eb0741a7f2bf02cf21d.webp",979,733,{"list":167,"token":11},[168,174,181,187,193,200,207,214,221,228],{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":55,"category_name":29,"create_tm":173},326563,"Data Compression - Third Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909058993/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=2MhppdsotILPUoICDrvDr2mLX%2B8%3D","data-compression-third-edition",1789974574,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":29,"create_tm":180},343181,"The JPEG Still Picture Compression Standard - Overview of the Baseline Method","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910408843/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=mzX2itt2OCeJZsfT%2Bw4Xd5eElKk%3D","the-jpeg-still-picture-compression-standard-overview-of-the-baseline-method",12,1790050201,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":102,"category_name":29,"create_tm":186},656390,"Scalable Pattern Matching over Compressed Graphs via Dedensiﬁcation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974791077/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=PAkWs91nlegfapgWXA19VULQdbA%3D","scalable-pattern-matching-over-compressed-graphs-via-dedensication",1792968240,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":30,"category_name":29,"create_tm":192},686415,"GPU-Accelerated Decoding of Integer Lists - Paper Contribution Summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000814306/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=ZI2S084s%2F%2BG1VWn1Q6CAWQG3uwc%3D","gpu-accelerated-decoding-of-integer-lists-paper-contribution-summary",1794042479,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":29,"create_tm":199},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=cjdLFb0uiPwvUxMtG2TSgLYOA48%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":29,"create_tm":206},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=HkXDa%2BoJEamvhLYOkyZ40dug%2BPs%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6933,1776136851,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=UTwf24xpVNVyDXut83g2DFaCffs%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5866,1788211707,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":29,"create_tm":220},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=gAoTmbxGb%2FEPy4828QAhsBkzyNo%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":29,"create_tm":227},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=pUBZcoZdVuoS0UjeQdBUI2emdg4%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":145,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":232,"category_name":29,"create_tm":233},"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=x%2FTyGtql5hbzgS7h6eBYjAHMTG0%3D","letter-of-intent-sample-for-school",1059,1776135210]