Kvantu algoritmi simbolu virkņu uzdevumiem
Loading...
Date
Authors
Advisor
Journal Title
Journal ISSN
Volume Title
Publisher
Latvijas Universitāte
Language
lav
Abstract
Darbā tiek apskatīti trīs simbolu virkņu uzdevumi. Pirmais no tiem ir nosaukts ”vārda meklēšana tekstā”: dotajam tekstam 𝑠 garuma 𝑛 un vārdam 𝑡 garumā 𝑚, pateikt, vai vārds atro das tekstā. Klasiski šo var atrisināt laikā 𝑂(𝑛 + 𝑚) ar KnutaMorisaPrata algoritmu, kvantiski ̃ √𝑛 + √𝑚) = 𝑂( ̃ √𝑛) laika algoritms. Kaut gan zināms, ka vispārīgajā gadījumā ne eksistē 𝑂( √ pieciešami Ω( 𝑛) vaicājumi virknes simboliem, nav skaidrs, vai šī apakšējā robeža izpildās pie √ jebkuras m vērtības. Šajā darbā mēs pierādām, ka arī tad nepieciešami Ω( 𝑛) vaicājumi. Otrais uzdevums ir nosaukts ”visbiežāk sastopamas virknes meklēšana”: dotiem 𝑛 virknēm garumā 𝑘 √ ̃ pateikt, kāda virknē sastopas visbiežāk. Kvantiski to var atrisināt 𝑂(𝑛 𝑘). Mēs piedāvājam ātrāku zināmu algoritmu diviem īpašiem gadījumiem, kad var atkārtoties tikai viena virkne ar √ ̃ 3 2 𝑘), kā arī vispārinājumu, kad parējās virknes var atkārtoties ma vaicājuma sarežģītību 𝑂(𝑛 𝐿 √ ̃ 𝐿+1 zāk par 𝐿 reizēm ar vaicājuma sarežģītību 𝑂(𝑛 𝑘), un gadījumam, kad ir 𝑐 unikālas virknes √ ̃ √𝑐 + 𝑐 𝑛𝑘). Trešais uzdevums ir ”tekstā konstruēšana no vārdnī ar vaicājuma sarežģītību 𝑂(𝑛 cas”: dotajām tekstam 𝑠 garumā 𝑛 un vārdnīcai no 𝑚 vārdiem ar kopējo garumu 𝐿 pateikt, vai var uzbūvēt 𝑠 tikai no vārdnīcas vārdiem. Mēs apskatām gadījumu kad vārdi nevar pārklāties ̃ ⋅ √ min(𝑛, 𝑚) + 𝐿).
We consider three string processing problems. The first is the ”string matching” problem:given text𝑠of length𝑛and a string𝑡of length𝑚, find whether string𝑡is present in text𝑠. Classically this problem can be solved in𝑂(𝑛 + 𝑚)time, due to KnuthMorrisPratt, bestknown quantum algorithm has query complexity of̃𝑂(√𝑛 +√𝑚) =̃𝑂(√𝑛). For generalcase query complexity lower bound ofΩ(√𝑛)exists, it is unknown whether this holds for all𝑚values. In this paper we prove, that lower boundΩ(√𝑛)for all values of𝑚. The secondis the ”most frequent string search”: given𝑛strings of size𝑘, output string that occurs mostfrequently. Best known quantum algorithm have query complexity of̃𝑂(𝑛√𝑘). We give twoquantum algorithms for specials cases: when there is only one string appearing more than oncewith query complexitỹ𝑂(𝑛23√𝑘), its generalization when every other string occurs less that𝐿times, with quantum query complexitỹ𝑂(𝑛𝐿𝐿+1√𝑘), and when there are only𝑐unique stringwith query complexitỹ𝑂(𝑛√𝑐 + 𝑐√𝑛𝑘). The third problem we call ”constructing text fromdictionary”: given text𝑠of size𝑛, and dictionary with𝑚words of total size𝐿, find whethertext𝑠can be constructed from the dictionary without overlaps. We provide a quantum algorithmwith time complexitỹ𝑂(𝑛 ⋅√min(𝑛, 𝑚) + 𝐿).
We consider three string processing problems. The first is the ”string matching” problem:given text𝑠of length𝑛and a string𝑡of length𝑚, find whether string𝑡is present in text𝑠. Classically this problem can be solved in𝑂(𝑛 + 𝑚)time, due to KnuthMorrisPratt, bestknown quantum algorithm has query complexity of̃𝑂(√𝑛 +√𝑚) =̃𝑂(√𝑛). For generalcase query complexity lower bound ofΩ(√𝑛)exists, it is unknown whether this holds for all𝑚values. In this paper we prove, that lower boundΩ(√𝑛)for all values of𝑚. The secondis the ”most frequent string search”: given𝑛strings of size𝑘, output string that occurs mostfrequently. Best known quantum algorithm have query complexity of̃𝑂(𝑛√𝑘). We give twoquantum algorithms for specials cases: when there is only one string appearing more than oncewith query complexitỹ𝑂(𝑛23√𝑘), its generalization when every other string occurs less that𝐿times, with quantum query complexitỹ𝑂(𝑛𝐿𝐿+1√𝑘), and when there are only𝑐unique stringwith query complexitỹ𝑂(𝑛√𝑐 + 𝑐√𝑛𝑘). The third problem we call ”constructing text fromdictionary”: given text𝑠of size𝑛, and dictionary with𝑚words of total size𝐿, find whethertext𝑠can be constructed from the dictionary without overlaps. We provide a quantum algorithmwith time complexitỹ𝑂(𝑛 ⋅√min(𝑛, 𝑚) + 𝐿).