Lune

STOC2024้กถไผš

On the Communication Complexity of Approximate Pattern Matching

Tomasz Kociumaka, Jakob Nogler, Philip Wellnitz

2024ๅนดไปฝ
2่ขซๅผ•ๆฌกๆ•ฐ
4้กถไผšๅผ•็”จ

ๆ‘˜่ฆ

The decades-old Pattern Matching with Edits problem, given a length-๐‘› string ๐‘‡ (the text), a length-๐‘š string ๐‘ƒ (the pattern), and a positive integer ๐‘˜ (the threshold), asks to list all fragments of ๐‘‡ that are at edit distance at most ๐‘˜ from ๐‘ƒ. The one-way communication complexity of this problem is the minimum amount of space needed to encode the answer so that it can be retrieved without accessing the input strings ๐‘ƒ and ๐‘‡.

The closely related Pattern Matching with Mismatches problem (defined in terms of the Hamming distance instead of the edit distance) is already well understood from the communication complexity perspective: Clifford, Kociumaka, and Porat [SODA 2019] proved that ฮฉ(๐‘›/๐‘š โ€ข ๐‘˜ log(๐‘š/๐‘˜)) bits are necessary and ๐’ช(๐‘›/๐‘š โ€ข ๐‘˜ log(๐‘š|ฮฃ|/๐‘˜)) bits are sufficient; the upper bound allows encoding not only the occurrences of ๐‘ƒ in ๐‘‡ with at most ๐‘˜ mismatches but also the substitutions needed to make each ๐‘˜-mismatch occurrence exact.

Despite recent improvements in the running time [Charalampopoulos, Kociumaka, and Wellnitz; FOCS 2020 and 2022], the communication complexity of Pattern Matching with Edits remained unexplored, with a lower bound of ฮฉ(๐‘›/๐‘š โ€ข ๐‘˜ log(๐‘š/๐‘˜)) bits and an upper bound of ๐’ช(๐‘›/๐‘š โ€ข ๐‘˜ 3 log ๐‘š) bits stemming from previous research. In this work, we prove an upper bound of ๐’ช(๐‘›/๐‘š โ€ข ๐‘˜ log 2 ๐‘š) bits, thus establishing the optimal communication complexity up to logarithmic factors. We also show that ๐’ช(๐‘›/๐‘š โ€ข ๐‘˜ log ๐‘š log(๐‘š|ฮฃ|)) bits allow encoding, for each ๐‘˜-error occurrence of ๐‘ƒ in ๐‘‡, the shortest sequence of edits needed to make the occurrence exact. Our result further emphasizes the close relationship between Pattern Matching with Mismatches and Pattern Matching with Edits.

We leverage the techniques behind our new result on the communication complexity to obtain quantum algorithms for Pattern Matching with Edits: we demonstrate a quantum algorithm that uses ๐’ช(๐‘› 1+๐‘œ(1) /๐‘š โ€ข โˆš ๐‘˜๐‘š) queries and ๐’ช(๐‘› 1+๐‘œ(1) /๐‘š โ€ข ( โˆš ๐‘˜๐‘š + ๐‘˜ 3.5 )) quantum time. Moreover, when determining the existence of at least one occurrence, the algorithm uses ๐’ช( ๐‘› 1+๐‘œ(1) /๐‘š โ€ข โˆš ๐‘˜๐‘š) queries and ๐’ช( ๐‘› 1+๐‘œ(1) /๐‘š โ€ข ( โˆš ๐‘˜๐‘š + ๐‘˜ 3.5 )) time. For both cases, we establish corresponding lower bounds to demonstrate that the query complexity is optimal up to sub-polynomial factors. Acknowledgements The work of Philip Wellnitz was carried out at the Max Planck Institute for Informatics. The work of Jakob Nogler was carried out mostly during a summer internship at the Max Planck Institute for Informatics.

้—ฎ้—ฎ่ฟ™็ฏ‡ Paper

ๆ™บ่ƒฝไฝ“ไผš่ฏปๅฎŒๅ…จๆ–‡ใ€‚

Lune ๆŠŠ่ฟ™็ฏ‡ Paper ็ดขๅผ•ๅˆฐไบ†ๆฏไธ€ไธชๅ…ฌๅผ๏ผŒๅผ•็”จๅฎƒ็š„้กถไผš Paper ไนŸไธ€ๆ ทใ€‚ไฝ ๆ้—ฎ๏ผŒๅ›ž็ญ”็›ดๆŽฅๅผ•็”จๅŽŸๆ–‡ใ€‚

ๅฏไปฅไปŽ่ฟ™ไบ›้—ฎ้ข˜้—ฎ่ตท

ๆ™บ่ƒฝไฝ“่ฐƒ็”จ

Luneget_paper_fulltext

ๅœจ Lune ้‡Œ้—ฎ

ๅ…่ดนๅผ€ๅง‹๏ผŒๆ— ้œ€็ป‘ๅก

ๅผ•็”จๅฎƒ็š„้กถไผš Paper4

้—ฎ้—ฎๅฎƒไปฌๅ„่‡ชๆ€Žไนˆ็”จๅฎƒ

ๅฎƒๅผ•็”จ็š„้กถไผš Paper9

็›ธๅ…ณ Paper

้ป„ๆ˜็š„ๆตท้ข๏ผŒไธคไพงๆ˜ฏ็ป†็บฟๅ‹พๅ‹’็š„ๆ‚ฌๅด–