Deterministic acyclic finite state automaton

The strings "tap", "taps", "top", and "tops" stored in a trie (left) and a DAFSA (right), EOW stands for End-of-word.

In computer science, a deterministic acyclic finite state automaton (DAFSA),[1] is a data structure that represents a set of strings, and allows for a query operation that tests whether a given string belongs to the set in time proportional to its length. Algorithms exist to construct and maintain such automata,[1] while keeping them minimal. DAFSA is the rediscovery of a data structure called Directed Acyclic Word Graph (DAWG),[2] although the same name had already been given to a different data structure which is related to suffix automaton.[3]

A DAFSA is a special case of a finite state recognizer that takes the form of a directed acyclic graph with a single source vertex (a vertex with no incoming edges), in which each edge of the graph is labeled by a letter or symbol, and in which each vertex has at most one outgoing edge for each possible letter or symbol. The strings represented by the DAFSA are formed by the symbols on paths in the graph from the source vertex to any sink vertex (a vertex with no outgoing edges). In fact, a deterministic finite state automaton is acyclic if and only if it recognizes a finite set of strings.[1]

History

Blumer et al[3] first defined terminology Directed Acyclic Word Graph (DAWG) in 1983. Appel and Jacobsen[2] used the same naming for a different data structure in 1988. Independent of earlier work, Daciuk et al[1] rediscovered the latter data structure in 2000 but called it DAFSA.

Comparison to tries

By allowing the same vertices to be reached by multiple paths, a DAFSA may use significantly fewer vertices than the strongly related trie data structure. Consider, for example, the four English words "tap", "taps", "top", and "tops". A trie for those four words would have 12 vertices, one for each of the strings formed as a prefix of one of these words, or for one of the words followed by the end-of-string marker. However, a DAFSA can represent these same four words using only six vertices vi for 0 ≤ i ≤ 5, and the following edges: an edge from v0 to v1 labeled "t", two edges from v1 to v2 labeled "a" and "o", an edge from v2 to v3 labeled "p", an edge v3 to v4 labeled "s", and edges from v3 and v4 to v5 labeled with the end-of-string marker. There is a tradeoff between memory and functionality, because a standard DAFSA can tell you if a word exists within it, but it cannot point you to auxiliary information about that word, whereas a trie can.

The primary difference between DAFSA and trie is the elimination of suffix and infix redundancy in storing strings. The trie eliminates prefix redundancy since all common prefixes are shared between strings, such as between doctors and doctorate the doctor prefix is shared. In a DAFSA common suffixes are also shared, for words that have the same set of possible suffixes as each other. For dictionary sets of common English words, this translates into major memory usage reduction.

Because the terminal nodes of a DAFSA can be reached by multiple paths, a DAFSA cannot directly store auxiliary information relating to each path, e.g. a word's frequency in the English language. However, if for each node we store the number of unique paths through that point in the structure, we can use it to retrieve the index of a word, or a word given its index.[4] The auxiliary information can then be stored in an array.

References

  1. ^ a b c d Jan Daciuk, Stoyan Mihov, Bruce Watson and Richard Watson (2000). Incremental construction of minimal acyclic finite state automata. Computational Linguistics 26(1):3-16.
  2. ^ a b Appel, Andrew; Jacobsen, Guy (1988). The World's Fastest Scrabble Program. Communications of the ACM, 31 (5): 572–578
  3. ^ a b Anselm Blumer, Janet Blumer, Andrzej Ehrenfeucht, David Haussler, Ross M. McConnell (1983). Linear size finite automata for the set of all subwords of a word - an outline of results. Bull Europ. Assoc. Theoret. Comput. Sci, 21: 12-20
  4. ^ Kowaltowski, T.; CL Lucchesi (1993). "Applications of finite automata representing large vocabularies". Software-Practice and Experience. 1993: 15–30. CiteSeerX 10.1.1.56.5272.

Read other articles:

Plot irisan dua dimensi potensial gravitasi di dalam dan di sekitar objek sferoid yang seragam. Titik-titik belok dari persilangan berada di permukaan objek. Dalam mekanika klasik, potensial gravitasi di suatu tempat sama dengan usaha (energi yang dipindahkan) per satuan massa yang diperlukan untuk memindahkan suatu objek ke tempat tersebut dari tempat acuan tetap. Istilah ini merupakan analogi dari potensial listrik dengan massa berperan sebagai muatan. Tempat acuan, yang potensialnya adalah...

 

A Brony TalePoster perilisan teatrikalSutradara Brent Hodge Produser Brent Hodge Carolyn Wells Lauren Bercovitch Morgan Spurlock Ditulis oleh Brent Hodge PemeranAshleigh BallBryan MischkeAndrea LibmanNicole OliverDonald RhoadesAndy SteinJordan DownsKelvin WilliamsPenata musikChris KellyCayne McKenzieSinematograferBrent HodgePenyuntingNicholas T. ShepardPerusahaanproduksiHodgee FilmsDistributorWarrior PoetsVirgil FilmsAbramoramaTanggal rilis 26 April 2014 (2014-04-26) (Tribeca) ...

 

Sydney Olympic ParkSydney, New South WalesSydney Olympic Park, 2012MapKoordinat33°50′53″S 151°03′54″E / 33.84801°S 151.06488°E / -33.84801; 151.06488Koordinat: 33°50′53″S 151°03′54″E / 33.84801°S 151.06488°E / -33.84801; 151.06488Jumlah penduduk1,736 (sensus 2016)[1] • Kepadatan0,0026184/km2 (0,006782/sq mi)Didirikan1996 (locality) & 2009 (suburb)Kode pos2127Ketinggian15 m (49 f...

ألتيكيندورف    شعار الاسم الرسمي (بالفرنسية: Alteckendorf)‏    الإحداثيات 48°47′34″N 7°35′40″E / 48.792777777778°N 7.5944444444444°E / 48.792777777778; 7.5944444444444[1]  [2] تقسيم إداري  البلد فرنسا[3]  التقسيم الأعلى الراين الأسفل (1920–)الراين الأسفل (4 مارس 1790–1871)سافيرن (1 ...

 

Young Foto LRO Kratergegevens Coördinaten 41° 5′ ZB, 50° 9′ OL Diameter 71,5 km Kraterdiepte 4,2 km Colongitude 310° bij zonsopgang Kaartblad 114 (PDF) Vernoemd naar Thomas Young Vernoemd in 1935 Tenzij anders aangegeven, zijn de gegevens ontleend aan de IAU/USGS-Databank Young en zijn satellietkraters Young is een inslagkrater op de Maan. De krater is genoemd naar de Engelse natuurkundige Thomas Young (1773-1829). De naam Young werd door de Duitse selenograaf Johann Friedrich...

 

2015 single by DJ Khaled featuring Chris Brown, Lil Wayne and Big SeanHow Many TimesSingle by DJ Khaled featuring Chris Brown, Lil Wayne and Big Seanfrom the album I Changed a Lot ReleasedMay 12, 2015 (2015-05-12)Recorded2015GenreHip hopelectro-R&BLength4:23LabelWe the BestREDSonySongwriter(s)Khaled KhaledBrandon KornChristopher BrownDwayne CarterSean AndersonAnthony NorrisOzan YildirimProducer(s)DJ KhaledBkornLee on the BeatsOZDJ Khaled singles chronology Don't Shoot (...

Clinique Laboratories, LLCJenisPerusahaan perseroanIndustriBarang konsumenDidirikan1968PendiriEvelyn LauderKantorpusatNew York CityProdukKosmetikIndukEstée Lauder Companies(1968–sekarang)Situs webclinique.com Clinique Laboratories, LLC (/klɪˈniːk/) adalah sebuah pabrik perawatan kulit, kosmetik, peralatan toilet dan pewangi Amerika Serikat yang biasanya dijual di pusat-pusat perbelanjaan. Ini adalah subsidier dari Estée Lauder Companies. Pranala luar Media terkait Clinique Laboratories...

 

Daily Urdu-language newspaper published from Pakistan Daily JangFront page of Karachi edition (January 1, 2015)TypeDaily newspaperFormatBroadsheetOwner(s)Jang Group of NewspapersFounder(s)Mir Khalil ur RehmanEditor-in-chiefMir Shakil-ur-RahmanEditorMir Shakil-ur-RahmanFounded1939 (1939)Political alignmentconservative[1]LanguageUrduHeadquartersKarachi, PakistanSister newspapersThe News InternationalDaily NewsDaily AwamISSN1563-8731 (print) 1563-8723 (web)OCLC number17814...

 

Silent horror film by Paul Leni The Cat and the CanaryTheatrical release posterDirected byPaul LeniScreenplay by Alfred A. Cohn Walter Anthony Story by Alfred A. Cohn Robert F. Hill Based onThe Cat and the Canaryby John WillardProduced byPaul KohnerStarring Laura La Plante Forrest Stanley Creighton Hale Flora Finch CinematographyGilbert WarrentonEdited byMartin G. CohnMusic byHugo RiesenfeldDistributed byUniversal PicturesRelease date September 9, 1927 (1927-09-09) Running time...

School district in Union County, New Jersey, United States Roselle Public SchoolsAddress710 Locust Street Roselle, Union County, 07203United StatesCoordinates40°39′07″N 74°15′54″W / 40.651964°N 74.264981°W / 40.651964; -74.264981District informationGradesPreK-12SuperintendentDr. Nathan L. FisherBusiness administratorAnthony JuskiewiczSchools8Students and staffEnrollment2,897 (as of 2020–21)[1]Faculty289.0 FTEs[1]Student–teacher ratio10.0...

 

Constituency of the Karnataka Legislative Assembly ShimogaConstituency for the Karnataka Legislative AssemblyConstituency detailsCountryIndiaRegionSouth IndiaStateKarnatakaDistrictShimogaLS constituencyShimogaReservationNoneMember of Legislative Assembly16th Karnataka Legislative AssemblyIncumbent S. N. Channabasappa PartyBharatiya Janata PartyElected year2023 Shimoga Assembly constituency is one of the seats in Karnataka State Assembly in India. It is part of Shimoga Lok Sabha seat. Members ...

 

Pemilihan Umum Bupati Bengkulu Utara 2020201520249 Desember 2020[1]Kandidat Peta persebaran suara Peta Bengkulu yang menyoroti Kabupaten Bengkulu Utara Bupati dan Wakil Bupati petahanaMian danArie Septia Adinata Partai Demokrasi Indonesia Perjuangan Bupati dan Wakil Bupati terpilih Belum Diketahui Sunting kotak info • L • BBantuan penggunaan templat ini Pemilihan Umum Bupati Bengkulu Utara 2020 akan dilaksanakan pada 9 Desember 2020 untuk memilih Bupati Bengkulu Utara pe...

Characters of Hindu epic Ramayana Rama and Vanara chiefs In Hinduism, Vanara (Sanskrit: वानर, lit. 'forest-dwellers')[1] are either monkeys, apes,[2] or a race of forest-dwelling people.[1] In the epic the Ramayana, the Vanaras help Rama defeat Ravana. They are generally depicted as humanoid apes, or human-like beings. Etymology Look up vānara in Wiktionary, the free dictionary. When Ravana carried Sita first on his shoulders and then in the char...

 

SagelaSagela khas GorontaloSajianMakanan utamaTempat asalIndonesiaDaerahGorontaloSuhu penyajianHangatBahan utamaIkan roa asap yang ditumbuk atau diblender kemudian ditumis bersama bumbu yang pedas dan gurihArtikel ini merupakan bagian dari seriHidangan Indonesia Hidangan nasional Gado-gado Nasi goreng Rendang Sate Soto Tumpeng Masakan daerah dan budaya Aceh Arab Bali Banjar Batak Gorontalo Betawi Tionghoa India Indo Jawa Madura Makassar Melayu Minahasa Minangkabau Palembang Peranakan Sunda Ma...

 

2003 video gameDownhill DominationNorth American box artDeveloper(s)Santa Monica StudioIncognito EntertainmentPublisher(s)NA: Sony Computer EntertainmentEU: CodemastersDirector(s)Scott CampbellProducer(s)Scott CampbellRick KaneDesigner(s)Scott CampbellProgrammer(s)Karl LoveridgeArtist(s)Karl LoveridgePlatform(s)PlayStation 2ReleaseNA: July 22, 2003[1]EU: February 13, 2004Genre(s)Racing, vehicular combatMode(s)Single-player, multiplayer Downhill Domination is a racing video game develo...

Eduard Lucas Eduard Lucas (19 July 1816, in Erfurt – 23 June 1882, in Reutlingen) was a German pomologist. He worked at the botanical gardens in Munich (from 1838) and Regensburg (from 1841), and from 1843 taught classes at the Agricultural and Forestry Institute in Hohenheim. Around 1860 he founded the Pomological Institute in Reutlingen.[1] With Johann Georg Conrad Oberdieck, he was editor of the Monatsschrift für Pomologie und praktischen Obstbau (Monthly journal of pomology...

 

Zobacz też: inne znaczenia słowa „tektonika”. Mapa aktywności tektonicznej Ziemi Tektonika (gr. tektonikề „sztuka budowy”) – nauka o budowie skorupy ziemskiej oraz o procesach wpływających na nią. Uwzględniając przedmiot i metody badań, tektonikę można podzielić na: geotektonikę – dziedzinę badającą ruchy i rozwój zewnętrznych powłok skorupy ziemskiej, mikrotektonikę – zajmującą się deformacjami skał w skali mikroskopowej, tektonofizykę – opisującą...

 

This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this article by introducing more precise citations. (November 2013) (Learn how and when to remove this template message) Alpha motor neuronAlpha motor neurons are derived from the basal plate (basal lamina) of the developing embryo.IdentifiersNeuroLex IDsao1154704263THH2.00.01.0.00008 FMA83664Anatomical terms of neuroanatomy&#...

Scottish division of the British Broadcasting Corporation This article is about the BBC in Scotland. For the television channel, see BBC Scotland (TV channel). For the radio station, see BBC Radio Scotland. For the BBC's Scottish Gaelic-language television channel, see BBC Alba. BBC ScotlandBBC Scotland's area within the UKTV stationsBBC One ScotlandBBC ScotlandBBC AlbaRadio stationsBBC Radio Scotland,BBC Radio nan Gàidheal,BBC Radio Shetland,BBC Radio OrkneyHeadquartersBBC Pacific Quay, Gla...

 

PhantomPoster teaserNama lainHangul유령 Alih Aksara yang DisempurnakanYuryeong Sutradara Lee Hae-young ProduserDitulis oleh Lee Hae-young SkenarioLee Hae-youngBerdasarkanSound of the Windoleh Mai JiaPemeran Sol Kyung-gu Lee Hanee Park So-dam Park Hae-soo Seo Hyun-woo PerusahaanproduksiThe LampDistributorCJ E&MTanggal rilis 18 Januari 2023 (2023-01-18) Negara Korea Selatan Bahasa Korea、 Jepang Phantom[1] (Hangul: 유령; RR: Yuryeong) adalah fil...

 

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