[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-290264-105":59,"doc-detail-290264-en":131,"doc-similar-290264":171},{"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":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","internal-pattern-matching-queries-in-a-text-and-applications","INTERNAL PATTERN MATCHING QUERIES IN A TEXT AND APPLICATIONS","","We study internal queries about fragments of a fixed text T, where each query specifies locations in T using constant space. The paper presents an optimal data structure for internal pattern matching (IPM): given two fragments x and y, it represents all fragments inside y that match x exactly. Query time is proportional to |y|/|x|, matching output requirements. For text length n over an integer alphabet of size σ, the structure uses O(n/ log σ n) words, with O(n/ log σ n) deterministic construction. Applications include period reporting and testing cyclic equivalence, linking to LCE-style operations.",{"@graph":69,"@context":123},[70,84,106],{"@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":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/internal-pattern-matching-queries-in-a-text-and-applications/290264/",{"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/internal-pattern-matching-queries-in-a-text-and-applications/290264.png","ImageObject",300,407,{"name":92,"@type":93},"Ivy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-09-17",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",15,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What are internal queries in this paper?","Question",{"text":113,"@type":114},"Internal queries ask to solve string-processing problem instances where the input strings are given as fragments of a fixed text T, specified by their endpoints.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What does the internal pattern matching (IPM) problem do?",{"text":118,"@type":114},"Given fragments x and y, IPM returns a representation of all fragments contained in y that match x exactly.",{"name":120,"@type":111,"acceptedAnswer":121},"How efficient are the proposed IPM algorithms?",{"text":122,"@type":114},"The data structure answers IPM queries in time proportional to |y|/|x| and occupies O(n/ log σ n) machine words, with an O(n/ log σ n)-time construction algorithm.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},290264,1789641173,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":130,"read_time":145,"preview_page_count":29,"preview_urls":146},549758252649,"https://ap-avatar.wpscdn.com/avatar/8000253669c5317157?_k=1778319167496531819","Downloaded 11/19/24 to [139.19.240.153](139.19.240.153) . Redistribution subject to CCBY license  \n\\mathrm{S}\\mathrm{I}\\mathrm{A}\\mathrm{M} \\mathrm{J} . \\mathrm{C}\\mathrm{O}\\mathrm{M}\\mathrm{P}\\mathrm{U}\\mathrm{T} . © 2024 \\mathrm{T}\\mathrm{h}\\mathrm{e} \\mathrm{A}\\mathrm{u}\\mathrm{t}\\mathrm{h}\\mathrm{o}\\mathrm{r}\\mathrm{s} . \\mathrm{P}\\mathrm{u}\\mathrm{b}\\mathrm{l}\\mathrm{i}\\mathrm{s}\\mathrm{h}\\mathrm{e}\\mathrm{d} \\mathrm{b}\\mathrm{y} \\mathrm{S}\\mathrm{I}\\mathrm{A}\\mathrm{M} \\mathrm{u}\\mathrm{n}\\mathrm{d}\\mathrm{e}\\mathrm{r} \\mathrm{t}\\mathrm{h}\\mathrm{e} \\mathrm{t}\\mathrm{e}\\mathrm{r}\\mathrm{m}\\mathrm{s}  \n\\mathrm{V}\\mathrm{o}\\mathrm{l} . 53, \\mathrm{N}\\mathrm{o} . 5, \\mathrm{p}\\mathrm{p} . 1524--1577 \\mathrm{o}\\mathrm{f} \\mathrm{t}\\mathrm{h}\\mathrm{e} \\mathrm{C}\\mathrm{r}\\mathrm{e}\\mathrm{a}\\mathrm{t}\\mathrm{i}\\mathrm{v}\\mathrm{e} \\mathrm{C}\\mathrm{o}\\mathrm{m}\\mathrm{m}\\mathrm{o}\\mathrm{n}\\mathrm{s} 4 .0 \\mathrm{l}\\mathrm{i}\\mathrm{c}\\mathrm{e}\\mathrm{n}\\mathrm{s}\\mathrm{e}  \nINTERNAL PATTERN MATCHING QUERIES  \nIN A TEXT AND APPLICATIONS\\ast   \nTOMASZ KOCIUMAKA\\dagger  , JAKUB RADOSZEWSKI\\ddagger  , WOJCIECH RYTTER\\S  , AND  \nTOMASZ WALE\\'N\\S   \nAbstract. We consider several types of internal queries, that is, questions about fragments of a given text T specified in constant space by their locations in T. Our main result is an optimal data structure for internal pattern matching (IPM) queries, which, given two fragments x and y , ask for a representation of all fragments contained in y and matching x exactly. This problem can be viewed as an internal version of the fundamental exact pattern matching problem: We are looking for exact occurrences of one substring of T within another substring of T. Our data structure answers IPM queries in time proportional to the quotient | y| /| x|  of the fragments' lengths, which is required due to the worst-case information content of the output. If T is a text of length n over an integer alphabet of size \\sigma , then our data structure occupies \\scrO  (n/ log \\sigma n) machine words (that is,\\scrO  (n log \\sigma ) bits) and admits an \\scrO  (n/ log \\sigma n)-time construction algorithm. We also show how to use IPM queries for answering internal queries corresponding to other classic string processing problems. Among others, we derive optimal data structures reporting the periods of a fragment and testing the cyclic equivalence of two fragments. Since the publication of the conference version of this paper [Kociumaka et al. , Internal pattern matching queries in a text and applications , SODA 2015], IPM queries have found numerous further applications, following the path paved by the classic longest common extension (LCE) queries of Landau and Vishkin [J. Comput. System Sci. , 37 (1988), pp. 63--78] . In particular, IPM queries have been implemented in grammar-compressed and dynamic settings and, along with LCE queries, constitute elementary operations of the \\ttP \\ttI \\ttL \\ttL \\ttA \\ttR  model, developed by Charalampopoulos, Kociumaka, and Wellnitz [Faster approximate pattern matching: A unified approach, FOCS 2020] to design approximate pattern matching algorithms that work in multiple settings. All our algorithms are deterministic, whereas the data structure in the conference version of the paper only admits a randomized construction in \\scrO  (n) expected time. To achieve this, we provide a novel construction of string synchronizing sets of Kempa and Kociumaka [String synchronizing sets: Sublinear-time B WT construction and optimal LCE data structure, STOC 2019] . Our method, based on a new restricted version of the recompression technique of Je\\.z [J. ACM, 63 (2016), pp. 4:1--4:51], yields a hierarchy of \\scrO (log n) string synchronizing sets covering the whole spectrum of the fragments' lengths.  \nKey words. pattern matching, internal queries, synchronizing sets, data structures, local consistency  \nMSC codes. 68W32, 68P05, 68W05, 68Q25  \nDOI. 10.1137/23M1567618  \n1. Introductio","cbCaivHHlS9DWlKT","https://ap.wps.com/l/cbCaivHHlS9DWlKT","pdf",1277176,54,"English","# Abstract\n# 1. Introduction","[{\"question\":\"What are internal queries in this paper?\",\"answer\":\"Internal queries ask to solve string-processing problem instances where the input strings are given as fragments of a fixed text T, specified by their endpoints.\"},{\"question\":\"What does the internal pattern matching (IPM) problem do?\",\"answer\":\"Given fragments x and y, IPM returns a representation of all fragments contained in y that match x exactly.\"},{\"question\":\"How efficient are the proposed IPM algorithms?\",\"answer\":\"The data structure answers IPM queries in time proportional to |y|/|x| and occupies O(n/ log σ n) machine words, with an O(n/ log σ n)-time construction algorithm.\"}]","INTERNAL PATTERN MATCHING QUERIES IN A TEXT AND APPLICATIONS | PDF",136,[147,151,155,159,163,167],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0144b90349b992390e385aca80fcf15e.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b6424a656c64dc7d47ba785575d4a27a.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3c5eb375fc65fbd027e1328bfb3fa26e.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3c1b7e676c03545554f85b0e879b384c.webp",980,1268,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/e41c0d6ce56f19056c5a672d6ff2ccf3.webp",979,1267,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/15a5aecd0f86270c2bfd7825fd6fe1e2.webp",978,1265,{"list":172,"token":66},[173,180,187,193,200,207,214,220,226,232],{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},81666,"No, Cake Cutting Really is a Piece of Cake","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808636527/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=s7IHOc2LlH%2FX3PEHwjaNc%2BmoG7s%3D","no-cake-cutting-really-is-a-piece-of-cake",21,1784175296,{"doc_id":181,"doc_title":182,"file_type":138,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":40,"create_tm":186},82136,"Improved Lower Bounds of the Time Complexity of Shellsort","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808714878/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=5BAl4pi3%2B%2BXtz9VVpfXyMUxPIjE%3D","improved-lower-bounds-of-the-time-complexity-of-shellsort",28,1784178393,{"doc_id":188,"doc_title":189,"file_type":138,"home_preview_img_url":190,"slug":191,"view_count":178,"category_name":40,"create_tm":192},84532,"Computing Smallest Suffixient Arrays in Sublinear Time","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809182632/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=D2q5XJoR68BMkYZn1bb5I1%2FZEV0%3D","computing-smallest-suffixient-arrays-in-sublinear-time",1784196457,{"doc_id":194,"doc_title":195,"file_type":138,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":40,"create_tm":199},83601,"Fully Persistent Dynamic LCE via AVL Trees and AVL Grammars","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808990641/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=2xVmzlrBBVS3LAt%2FE%2FbD1kOoB7k%3D","fully-persistent-dynamic-lce-via-avl-trees-and-avl-grammars",16,1784189126,{"doc_id":201,"doc_title":202,"file_type":138,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":40,"create_tm":206},83816,"Near-Optimal and Efficient Encoding for Two-Dimensional Range Minimum Queries","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809001486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=vu50xrVlbKw%2FifT3MeLJWZIrbIQ%3D","near-optimal-and-efficient-encoding-for-two-dimensional-range-minimum-queries",27,1784190602,{"doc_id":208,"doc_title":209,"file_type":138,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},83757,"On estimating operator norm distance, with optimal trace distance estimation when one state is pure","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808999874/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=6SRG7gh7ivNFACp34tl%2BceKDAaQ%3D","on-estimating-operator-norm-distance-with-optimal-trace-distance-estimation-when-one-state-is-pure",29,1784190242,{"doc_id":215,"doc_title":216,"file_type":138,"home_preview_img_url":217,"slug":218,"view_count":205,"category_name":40,"create_tm":219},83771,"Quasipolynomial Trace Reconstruction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809094104/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=QsltewglJjipC%2B9nVXFchlMqc1w%3D","quasipolynomial-trace-reconstruction",1784190318,{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":205,"category_name":40,"create_tm":225},82154,"Geometric Planted Matchings in High Dimensions: The Power of Multiple Views","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808672173/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=Y2YOiOO24fc%2BWQLeqXptLvCIuYs%3D","geometric-planted-matchings-in-high-dimensions-the-power-of-multiple-views",1784178480,{"doc_id":227,"doc_title":228,"file_type":138,"home_preview_img_url":229,"slug":230,"view_count":185,"category_name":40,"create_tm":231},82105,"Online Komlós Converges to Mean Curvature Flow","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808669060/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=lrzO7sdlENU3plYIJBOHKYmLpDE%3D","online-komlos-converges-to-mean-curvature-flow",1784178232,{"doc_id":233,"doc_title":234,"file_type":138,"home_preview_img_url":235,"slug":236,"view_count":237,"category_name":40,"create_tm":238},86004,"Fully Dynamic Edge Connectivity in Õ(n^(1213)) Time","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809496496/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108099&Signature=AH23F6eRktc2IV6Ekrg320LTnZ0%3D","fully-dynamic-edge-connectivity-in-on1213-time",24,1784207719]