Levenshtein automaton

In computer science, a Levenshtein automaton for a string w and a number n is a finite-state automaton that can recognize the set of all strings whose Levenshtein distance from w is at most n. That is, a string x is in the formal language recognized by the Levenshtein automaton if and only if x can be transformed into w by at most n single-character insertions, deletions, and substitutions.[1]

Applications

Levenshtein automata may be used for spelling correction, by finding words in a given dictionary that are close to a misspelled word. In this application, once a word is identified as being misspelled, its Levenshtein automaton may be constructed, and then applied to all of the words in the dictionary to determine which ones are close to the misspelled word. If the dictionary is stored in compressed form as a trie, the time for this algorithm (after the automaton has been constructed) is proportional to the number of nodes in the trie, significantly faster than using dynamic programming to compute the Levenshtein distance separately for each dictionary word.[1]

It is also possible to find words in a regular language, rather than a finite dictionary, that are close to a given target word, by computing the Levenshtein automaton for the word, and then using a Cartesian product construction to combine it with an automaton for the regular language, giving an automaton for the intersection language. Alternatively, rather than using the product construction, both the Levenshtein automaton and the automaton for the given regular language may be traversed simultaneously using a backtracking algorithm.[1]

Levenshtein automata are used in Lucene for full-text searches that can return relevant documents even if the query is misspelled.[2]

Construction

For any fixed constant n, the Levenshtein automaton for w and n may be constructed in time O(|w|).[1]

Mitankin studies a variant of this construction called the universal Levenshtein automaton, determined only by a numeric parameter n, that can recognize pairs of words (encoded in a certain way by bitvectors) that are within Levenshtein distance n of each other.[3] Touzet proposed an effective algorithm to build this automaton.[4]

Yet a third finite automaton construction of Levenshtein (or Damerau–Levenshtein) distance are the Levenshtein transducers of Hassan et al., who show finite state transducers implementing edit distance one, then compose these to implement edit distances up to some constant.[5]

See also

  • agrep, tool (implemented several times) for approximate regular expression matching
  • TRE, library for regular expression matching that is tolerant to Levenshtein-style edits

References

  1. ^ a b c d Schulz, Klaus U.; Mihov, Stoyan (2002). "Fast String Correction with Levenshtein-Automata". International Journal of Document Analysis and Recognition. 5 (1): 67–85. CiteSeerX 10.1.1.16.652. doi:10.1007/s10032-002-0082-8. S2CID 207046453.
  2. ^ McCandless, Michael (24 March 2011). "Lucene's FuzzyQuery is 100 times faster in 4.0". Changing Bits. Retrieved 2021-06-07.
  3. ^ Mitankin, Petar N. (2005). Universal Levenshtein Automata. Building and Properties (PDF) (Thesis). Sofia University St. Kliment Ohridski.
  4. ^ Touzet H. (2016). "On the Levenshtein Automaton and the Size of the Neighbourhood of a Word" (PDF). Language and Automata Theory and Applications. Lecture Notes in Computer Science. Vol. 9618. Lecture Notes in Computer Science. pp. 207–218. doi:10.1007/978-3-319-30000-9_16. ISBN 978-3-319-29999-0. S2CID 34821290.
  5. ^ Hassan, Ahmed; Noeman, Sara; Hassan, Hany (2008). Language Independent Text Correction using Finite State Automata. IJCNLP.

Read other articles:

هذه مقالة غير مراجعة. ينبغي أن يزال هذا القالب بعد أن يراجعها محرر مغاير للذي أنشأها؛ إذا لزم الأمر فيجب أن توسم المقالة بقوالب الصيانة المناسبة. يمكن أيضاً تقديم طلب لمراجعة المقالة في الصفحة المخصصة لذلك. (أكتوبر 2021) هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. ف...

 

Berlin-Rudow La Lieselotte-Berger-Platz. Administration Pays Allemagne Région Berlin Ville Berlin Arrondissement municipal Neukölln Code postal 12353, 12355, 12357 Démographie Population 42 443 hab. (31/12/2021) Densité 3 597 hab./km2 Géographie Coordonnées 52° 25′ 00″ nord, 13° 30′ 00″ est Altitude 52 m Superficie 1 180 ha = 11,8 km2 Localisation Géolocalisation sur la carte : Berlin Berlin-...

 

Étienne Constantin de Gerlache Étienne Constantin Baron de Gerlache (* 26. Dezember 1785 in Biourge, heute Bertrix, Luxemburg; † 11. Februar 1871 in Brüssel) war ein belgischer Politiker. Gerlache studierte Rechtswissenschaften und war während der Napoleonischen Kaiserzeit Rechtsanwalt am Obersten Gerichtshof in Paris. Nach der Vereinigung Belgiens mit den Niederlanden zum Vereinigten Königreich der Niederlande (1815) war er als Rat am Appellationshof in Lüttich tätig und verfasste i...

Kim Seon-woo Kim Seon-woo atau Sunoo (lahir 24 Juni 2003) adalah seorang penyanyi Korea Selatan kelahiran Suwon, Gyeonggido. Ia magang pada agen bakat BELIF Entertainment selama 10 bulan sebelum akhirnya meraih peringkat kedelapan dalam acara survival I-Land dan tergabung dalam grup vokal laki-laki ENHYPEN.[1] Referensi ^ Fakta dan Profil Sunoo ENHYPEN, SI Happy Virus yang Menggemaskan. Pop Mama.  Artikel bertopik biografi Korea Selatan ini adalah sebuah rintisan. Anda dapat memb...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أكتوبر 2018) آلان غوستاف معلومات شخصية الميلاد 5 أكتوبر 1986 (العمر 37 سنة)كاب هايتيان  الطول 1.73 م (5 قدم 8 بوصة) مركز اللعب مهاجم الجنسية هايتي  معلومات النادي الن

 

Favipiravir Nama Nama IUPAC 6-Fluoro-3-hidroksipirazin-2-karboksamida Nama lain Avigan; favilavir, T-705 Penanda Nomor CAS 259793-96-9 Model 3D (JSmol) Gambar interaktif 3DMet {{{3DMet}}} ChEMBL ChEMBL221722 ChemSpider 431002 Nomor EC PubChem CID 492405 Nomor RTECS {{{value}}} UNII EW5GL2X7E0 Y CompTox Dashboard (EPA) DTXSID60948878 InChI InChI=1S/C5H4FN3O2/c6-2-1-8-5(11)3(9-2)4(7)10/h1H,(H2,7,10)(H,8,11)Key: ZCGNOVWYSGBHAU-UHFFFAOYSA-NInChI=1/C5H4FN3O2/c6-2-1-8-5(11)3(9-2)4(7)10/h1...

Battle of TacuarembóPart of the Portuguese conquest of the Banda OrientalDate22 January 1820LocationTacuarembó, UruguayResult Luso-Brazilian victory Annexation of the Banda Oriental by the United Kingdom of Portugal, Brazil and the AlgarvesBelligerents United Kingdom Federal LeagueCommanders and leaders Count of Figueira Andrés LatorrePantaleón Sotelo †Strength 1,200[1]-4,000[2]2 guns 2,000[3]-2,500[1]4 gunsCasualties and losses 6:[4]1 ki...

 

Thecodontosaurus Periode Rhaetian~203.6–201.3 jtyl PreЄ Є O S D C P T J K Pg N ↓ Restorasi kerangkaTaksonomiKerajaanAnimaliaFilumChordataKelasReptiliaOrdoSaurischiaGenusThecodontosaurus Tata namaSinonim takson ?Agrosaurus Seeley, 1891 ?Pantydraco Galton, Yates & Kermack, 2007[1] lbs Thecodontosaurus adalah sebuah genus dinosaurus sauropodomorfa basal herbivora yang hidup pada zaman akhir Trias (zaman Rhaetian). Jasadnya kebanyakan ditemukan di Inggris Selatan. Theco...

 

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Pergudangan – berita · surat kabar · buku · cendekiawan · JSTORArtikel ini berisi konten yang ditulis dengan gaya sebuah iklan. Bantulah memperbaiki artikel ini dengan menghapus konten yang dianggap seba...

Indian actress This article is about an actress and Fashion designer. For the singer and anchor, see Divya S. Menon. Divya MenonNationalityIndianOccupationActressYears active2014 – Present Divya Menon, is an actress best known for playing the character of Satyawati in Yash Raj Films[1] and Dibakar Banerjee’s Detective Byomkesh Bakshy![2] Divya also starred in Shashi Sudigala's recent release Mona Darling where she was applauded for her performance. Menon is a design g...

 

Dodol Kandangan Dodol Kandangan adalah makanan khas produksi masyarakat Kandangan, Hulu Sungai Selatan, Kalimantan Selatan, secara turun temurun. Bahan utama pembuatan penganan ini adalah beras ketan dan gula aren. Dodol kandangan banyak dikemas secara sederhana dengan rasa sangat manis. Penganan ini sangat mudah dijumpai di daerah Kandangan serta beberapa oleh-oleh yang terdapat di daerah Kalimantan Selatan[1][2] Ciri Khas Pengolahan Dodol Kandangan Pengolahan dodol membutuhk...

 

Goldene-Rosen-Synagoge in Lemberg (1582–1943) Klezmorim 1925 Die Geschichte der Juden in der Ukraine beschreibt die Entwicklung jüdischen Lebens und Kultur im Gebiet der heutigen Ukraine. Inhaltsverzeichnis 1 Antike 2 Kiewer Rus 3 Königreich Polen 4 Kaiserreiche Russland und Österreich 5 Erster Weltkrieg 6 Vorkriegs-Sowjetunion 7 Deutsche Besetzung 8 Sowjetunion 9 Ukraine 10 Bevölkerung 11 Siehe auch 12 Weblinks 13 Literatur 14 Anmerkungen Antike Zu hellenistischer Zeit sind jüdische S...

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: 国道28号 – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2012年10月) 「国道28号線」はこの項目へ転送されています。...

 

إبراهيم بن سعد آل إبراهيم سفير السعودية لدى تونس في المنصب1986 – 1992 عبد الرحمن البسام محمد بن محمود آل علي سفير السعودية لدى مصر في المنصب1997 – 2006 أسعد عبد الكريم أبو النصر محمد بن حمد آل خليفة سفير السعودية لدى الإمارات العربية المتحدة في المنصب21 سبتمبر 2013 – 20 مايو 2014 محمد إب...

 

Human settlement in EnglandActon BridgeActon Swing BridgeActon BridgeLocation within CheshirePopulation631 (2011)Civil parishActon BridgeUnitary authorityCheshire West and ChesterCeremonial countyCheshireRegionNorth WestCountryEnglandSovereign stateUnited KingdomPost townNORTHWICHPostcode districtCW8Dialling code01606PoliceCheshireFireCheshireAmbulanceNorth West UK ParliamentWeaver Vale List of places UK England Cheshire 53°16′25″N 2°36′23″W...

Railway station in Uttar Pradesh, India This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Fatehgarh railway station – news · newspapers · books · scholar...

 

Metropolitan Regional Information System, Inc. v. American Home Realty Network, Inc.CourtUnited States Court of Appeals for the Fourth CircuitDecidedJuly 17, 2013 (2013-07-17)Citation(s)Metro. Reg'l Info. Sys., Inc. v. Am. Home Realty Network, Inc., 722 F.3d 591 (2013).Case historyAppealed fromThe United States District Court for the District of Maryland Southern DivisionCourt membershipJudges sittingTRAXLER, Chief Judge, and GREGORY and DUNCAN, Circuit JudgesCa...

 

Boys DrawingArtistSofie RibbingYear1864MediumOil on canvasDimensions91.5 cm × 79 cm (36.0 in × 31 in)LocationGothenburg Museum of Art, Gothenburg Boys Drawing is an 1864 oil on canvas painting by the Swedish artist Sofie Ribbing in the collection of the Gothenburg Museum of Art.[1] This painting shows two boys drawing and is representative of an everyday realism with genre motifs. It is considered a highlight of the museum and was purchased ...

ICE 1 Racing Общая информация Дебют 2011 Страна Финляндия Руководители Бенуа Ножье Статистика выступлений Текущая серия Чемпионат мира по ралли Победы в личном зачёте 0 Победы в командном зачёте 0 Сайт ice1racing.fi (фин.)  Медиафайлы на Викискладе ICE 1 Racing (Ice One racing WRC team) — ко...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يوليو 2019) دانييل كيلوغ معلومات شخصية الميلاد سنة 1976 (العمر 46–47 سنة)  مواطنة الولايات المتحدة  الحياة العملية المدرسة الأم جامعة ييلمؤسسة كيرتس للموسيقى  [...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!