简体   繁体   中英

Deterministic finite automata uses

I know how a dfa works but the only thing I'm confused is about it's use.

I've seen it's several applications on the internet like it is used in Traffic lights, in parser etc. but what is the exact point where it is used?

Like if I want to design a traffic light I would use counters, timers and the LEDs, where exactly is DFA?

The light is initially red then after certain time it becomes green or yellow based on some input signal. Considering the input signal t, the transition diagram for traffic signal will be as shown in fig Here the transition is based on two input parameter 1 and 0. If t = 1 then it jumps to the next state or continue in the same state for t = 0. FSM can model a huge no. of problems like automata, gesture recognition, networking design and artificial intelligence. ...this is the way how the exactly DFA used in traffic signals

Here is the figure for the transition diagram for traffic signal

As DFA have a rich background in terms of the mathematical theory underlying their development it has wide application that we are used our daily life directly or indirectly, some of them are as follows;

Protocol analysis Text parsing, Video game character behavior, Security analysis, CPU control units, Natural language processing Speech recognition, etc.

Deterministic Finite Automata, or DFAs, have a rich background in terms of the mathematical theory underlying their development and use.There are many real-world applications of DFAs to gain an appreciation of the usefulness of this theoretical concept. DFA uses include protocol analysis, text parsing, video game character behavior, security analysis, CPU control units, natural language processing, and speech recognition. Additionally, many simple mechanical devices are frequently designed and implemented using DFAs, such as elevators, vending machines, and traffic-sensitive traffic lights. As the examples below will demonstrate, DFAs naturally lend themselves to represent any system which must maintain an internal definition of state. Our examples begin with vending machines, which need to remember how much money the user has input, and continue to more complicated examples of video game agent AI and communication protocols. As our final example, we will consider the incorporation of finite state machines into the Apache Lucene open-source search engine, where they are used to implement search term auto-completion

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM