{"title":"A Quantum String-Matching Algorithm","authors":"Konstantinos Prousalis, Asimakis Kydros, Nikos Konofaos","doi":"10.1002/qute.202400250","DOIUrl":null,"url":null,"abstract":"<p>A novel quantum algorithm for string-matching is introduced that significantly enhances the complexity of this fundamental operation, essential in numerous computing applications. The algorithm is designed as a composite quantum denoising procedure applied to a quantum-generated dot-matrix plot, which is treated as an image. This approach effectively identifies regions of similarity between two input strings of lengths <i>N</i> and <i>M</i>. For strings of equal length, the algorithm achieves a time complexity of <span></span><math>\n <semantics>\n <mrow>\n <mi>O</mi>\n <mo>(</mo>\n <mrow>\n <mi>N</mi>\n <mo>+</mo>\n <mi>l</mi>\n <mi>o</mi>\n <mi>g</mi>\n <mrow>\n <mo>(</mo>\n <mi>N</mi>\n <mo>)</mo>\n </mrow>\n <mo>+</mo>\n <mn>6</mn>\n <msup>\n <mi>N</mi>\n <mn>2</mn>\n </msup>\n </mrow>\n <mo>)</mo>\n </mrow>\n <annotation>$O( {N + log( N ) + 6{{N}^2}} )$</annotation>\n </semantics></math> and a space complexity of <span></span><math>\n <semantics>\n <mrow>\n <mi>O</mi>\n <mo>(</mo>\n <mrow>\n <mi>l</mi>\n <mi>o</mi>\n <mi>g</mi>\n <mo>(</mo>\n <mrow>\n <mn>2</mn>\n <mi>N</mi>\n </mrow>\n <mo>)</mo>\n </mrow>\n <mo>)</mo>\n </mrow>\n <annotation>$O( {log( {2N} )} )$</annotation>\n </semantics></math>, demonstrating a clear advantage in quantum computational efficiency.</p>","PeriodicalId":72073,"journal":{"name":"Advanced quantum technologies","volume":"8 3","pages":""},"PeriodicalIF":4.4000,"publicationDate":"2024-10-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1002/qute.202400250","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Advanced quantum technologies","FirstCategoryId":"1085","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/qute.202400250","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"OPTICS","Score":null,"Total":0}
引用次数: 0
Abstract
A novel quantum algorithm for string-matching is introduced that significantly enhances the complexity of this fundamental operation, essential in numerous computing applications. The algorithm is designed as a composite quantum denoising procedure applied to a quantum-generated dot-matrix plot, which is treated as an image. This approach effectively identifies regions of similarity between two input strings of lengths N and M. For strings of equal length, the algorithm achieves a time complexity of and a space complexity of , demonstrating a clear advantage in quantum computational efficiency.