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:

Marathi cinema All-time 1910s 1910-1919 1920s 1920 1921 1922 1923 19241925 1926 1927 1928 1929 1930s 1930 1931 1932 1933 19341935 1936 1937 1938 1939 1940s 1940 1941 1942 1943 19441945 1946 1947 1948 1949 1950s 1950 1951 1952 1953 19541955 1956 1957 1958 1959 1960s 1960 1961 1962 1963 19641965 1966 1967 1968 1969 1970s 1970 1971 1972 1973 19741975 1976 1977 1978 1979 1980s 1980 1981 1982 1983 19841985 1986 1987 1988 1989 1990s 1990 1991 1992 1993 19941995 1996 1997 1998 1999 2000s 2000 2001 2...

 

طالع أيضًا: مدفع رمضان ومائدة الرحمن   ميّز عن إفطار. مائدة إفطار الملك فاروق لوزراءه مائدات الإفطار تستقبل الصائمين في الحضرة الرضوية في مدينة مشهد، إيران إفطار رمضان أو الإفطار في رمضان هو قطع الصوم بتعاطي مفطر،[1] فالصوم هو الإمساك عن المفطرات، والإفطار هو قطع ال

 

Austrian cinema company CineplexxTypeGmbHIndustryEntertainment (movie theatres)Founded1993HeadquartersVienna, AustriaNumber of locations61 (2021)Area servedAustria, Albania, Bosnia and Herzegovina, Croatia, Greece, Italy, Kosovo, Montenegro, North Macedonia, Romania, Serbia, SloveniaKey peopleChristian LanghammerRevenue€150 million (2019)Number of employees1,600 (2019)Websitewww.cineplexx.at Cineplexx in Zagreb, Croatia Cineplexx is a cinema company based in Vienna, Austria, owned by Consta...

تثدي الرجل حالة تثدي واضح في ذكر بالغحالة تثدي واضح في ذكر بالغ معلومات عامة الاختصاص علم الغدد الصم،  وجراحة تجميل  الأسباب الأسباب مرض الكلى المزمن،  وسمنة،  وتشمع الكبد،  وسوء التغذية،  ودواء  الإدارة أدوية مثبط الأروماتاز،  ومعدل مستقبل الإستروجين ...

 

This article is about the men's team. For the women's team, see Colombia women's national basketball team. ColombiaFIBA ranking56 4 (15 September 2023)[1]Joined FIBA1939FIBA zoneFIBA AmericasNational federationColombia Basketball FederationCoachGuillermo MorenoFIBA World CupAppearances1MedalsNoneFIBA AmeriCupAppearances2 Home Away The Colombia national basketball team (Spanish: selección de baloncesto de Colombia) represents Colombia in men's international basketball competitions and...

 

Idea that all people have rights and responsibilities from being a member of the world Global citizen redirects here. For other uses, see Global Citizen (disambiguation). Global citizenship is the idea that one's identity transcends geography or political borders and that responsibilities or rights are derived from membership in a broader class: humanity. This does not mean that such a person denounces or waives their nationality or other, more local identities, but that such identities are g...

Złoty Glob za najlepszy miniserial lub film telewizyjny jest jedną z dorocznych kategorii nagród Złotych Globów, nagradzającą najlepsze miniseriale oraz filmy telewizyjne. Nagroda dla najlepszych filmów telewizyjnych przyznana została po raz pierwszy w 1972 roku[1], a od 1982 roku dołączono do niej także miniseriale[2]. W latach 1974–1975 nie nominowano i nie przyznano nagród w danej kategorii[1]. Od 2015 roku Złoty Glob w tej kategorii jest wręczany dla najlepszego serialu l...

 

Private Baptist university based in Plainview, Texas, USA This article is about the university in Texas. For the university in Anchorage, Alaska, see Wayland Baptist University (Alaska). Wayland Baptist University (WBU)Gates Hall at Wayland's Plainview, TX campus.Former namesWayland Literary and Technical Institute (1908–1910)Wayland Baptist College (1910–1980s)MottoGo Ye into All the World / Let There Be LightTypePrivate universityEstablished1908Religious affiliationBaptist General Conve...

 

British Army officer and colonial administrator (1772–1858) General SirRalph DarlingGCH7th Governor of New South WalesIn office19 December 1825 – 21 October 1831[1]MonarchsGeorge IV William IVPreceded byThomas BrisbaneSucceeded byRichard Bourke Personal detailsBorn1772IrelandDied(1858-04-02)2 April 1858 (aged 85-86)Brighton, EnglandMilitary serviceAllegianceUnited KingdomBranch/serviceBritish ArmyRankGeneralCommandsBritish troops on Mauritius51st (2nd Yorkshire West R...

Postal code system of Ireland Postcard sent from the United States to a home in Ireland. No street address, town, or addressee name was provided but the card was correctly delivered days later. A postal address in Ireland is a place of delivery defined by Irish Standard (IS) EN 14142-1:2011 (Postal services. Address databases) and serviced by the universal service provider, An Post. Its addressing guides comply with the guidelines of the Universal Postal Union (UPU), the United Nations-a...

 

Drama seriesSeason of television series DexterSeason 3DVD coverStarring Michael C. Hall Julie Benz Jennifer Carpenter C. S. Lee Lauren Vélez David Zayas James Remar Country of originUnited StatesNo. of episodes12ReleaseOriginal networkShowtimeOriginal releaseSeptember 28 (2008-09-28) –December 14, 2008 (2008-12-14)Season chronology← PreviousSeason 2Next →Season 4List of episodes The third season of Dexter premiered on September 28, 2008,[1] and ended on...

 

Sistem sarafSistem saraf manusia.RincianPengidentifikasiBahasa Latinsystema nervosumMeSHD009420TA98A14.0.00.000FMA7157Daftar istilah anatomi[sunting di Wikidata] Diagram sistem saraf manusia Sistem saraf adalah sistem organ yang terdiri atas serabut saraf yang tersusun atas sel-sel saraf yang saling terhubung dan esensial untuk persepsi sensoris indrawi, aktivitas motorik volunter dan involunter organ atau jaringan tubuh, dan homeostasis berbagai proses fisiologis tubuh. Sistem saraf meru...

العلاقات الإثيوبية الكازاخستانية إثيوبيا كازاخستان   إثيوبيا   كازاخستان تعديل مصدري - تعديل   العلاقات الإثيوبية الكازاخستانية هي العلاقات الثنائية التي تجمع بين إثيوبيا وكازاخستان.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية ل...

 

Overview of coverage of American professional baseball on television This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Major League Baseball on television – news · newspapers · books · scholar · JSTOR (February 2020) (Learn how and when to remove this template message) The MLB on Fox pre- and post-game broadca...

 

Đối với ngành khoa học nghiên cứu về biển, xem Hải dương học. Đối với các định nghĩa khác, xem Hải Dương (định hướng). Hải Dương Tỉnh Tỉnh Hải Dương Biểu trưng Từ trên xuống dưới, từ trái sang phải:Công viên Bạch Đằng ở thành phố Hải Dương • Vườn vải thiều ở huyện Thanh Hà • Sông Lục Đầu chảy qua thành phố Chí Linh • Đường Trần Hưng Đạo ở t...

Fictional character from American Psycho For the EP, see Patrick Bateman (EP). Fictional character Patrick BatemanChristian Bale as Patrick BatemanFirst appearanceThe Rules of Attraction (1987)Last appearanceLunar Park (2005)Created byBret Easton EllisPortrayed by Christian Bale (American Psycho) Dechen Thurman(This Is Not an Exit) Michael Kremko(American Psycho 2) Casper Van Dien(The Rules of Attraction, deleted scene) Matt Smith & Benjamin Walker(American Psycho: The Musical) Casey Cott...

 

American singer, record producer, and comedian Oliver TreeTree in 2020BornOliver Tree Nick (1993-06-29) June 29, 1993 (age 30)Santa Cruz, California, U.S.Other namesTreeKryphTurboOccupations Singer rapper songwriter record producer filmmaker Years active2010–presentMusical careerGenres Alternative rock[1][2] indie pop[3] hip hop[3] alternative pop[4] dance[3] Instrument(s)VocalsguitarLabels Atlantic R&S Websiteolivertreemusi...

 

Cricket team This article is about the men's team. For the women's team, see Canada women's national cricket team. CanadaNickname(s)Maple LeafersAssociationCricket CanadaPersonnelCaptainSaad Bin ZafarCoachPubudu DassanayakeInternational Cricket CouncilICC statusAssociate member with ODI status (1968)ICC regionAmericasICC Rankings Current[1] Best-everODI 20th 11th (01-Jan-2007)T20I 18th 18th (19-Sep-2023)One Day InternationalsFirst ODIv  Pakistan at Headingley, Leeds; 9 June ...

County in Alabama, United States County in AlabamaWinston CountyCountyWinston County courthouse in Double SpringsLocation within the U.S. state of AlabamaAlabama's location within the U.S.Coordinates: 34°08′57″N 87°22′29″W / 34.149166666667°N 87.374722222222°W / 34.149166666667; -87.374722222222Country United StatesState AlabamaFoundedFebruary 12, 1850[1]Named forJohn A. WinstonSeatDouble SpringsLargest cityHaleyvilleArea • Tot...

 

Italian politician (born 1963) Anna Paola ConciaMember of the Chamber of DeputiesIn office14 April 2008 – 14 March 2013 Personal detailsBorn (1963-07-04) 4 July 1963 (age 60)Avezzano, ItalyPolitical partyPD (2007–present)Other politicalaffiliationsPCI (until 1991)PDS (1991–1998)DS (1998–2007)Spouse Ricarda Trautmann ​(m. 2011)​Alma materUniversity of L'AquilaProfessionSport manager Anna Paola Concia (born 4 July 1963) is an Italian politician...

 

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