简体   繁体   English

确定性有限自动机使用

[英]Deterministic finite automata uses

I know how a dfa works but the only thing I'm confused is about it's use.我知道 dfa 是如何工作的,但我唯一感到困惑的是它的用途。

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?就像我想设计一个红绿灯一样,我会使用计数器、计时器和 LED,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.考虑到输入信号 t,交通信号的转换图将如图= 0. FSM 可以建模一个巨大的数字。 of problems like automata, gesture recognition, networking design and artificial intelligence.自动机、手势识别、网络设计和人工智能等问题。 ...this is the way how the exactly DFA used in traffic signals ...这就是 DFA 在交通信号中的使用方式

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;由于DFA在其发展背后的数学理论方面具有丰富的背景,因此在我们直接或间接地使用我们的日常生活中具有广泛的应用,其中一些如下:

Protocol analysis Text parsing, Video game character behavior, Security analysis, CPU control units, Natural language processing Speech recognition, etc.协议分析文本解析、视频游戏角色行为、安全分析、CPU控制单元、自然语言处理语音识别等。

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 在其开发和使用背后的数学理论方面具有丰富的背景。DFA 有许多实际应用,以了解这一理论概念的有用性。 DFA uses include protocol analysis, text parsing, video game character behavior, security analysis, CPU control units, natural language processing, and speech recognition. DFA 用途包括协议分析、文本解析、视频游戏角色行为、安全分析、CPU 控制单元、自然语言处理和语音识别。 Additionally, many simple mechanical devices are frequently designed and implemented using DFAs, such as elevators, vending machines, and traffic-sensitive traffic lights.此外,许多简单的机械设备经常使用 DFA 设计和实现,例如电梯、自动售货机和交通敏感的交通信号灯。 As the examples below will demonstrate, DFAs naturally lend themselves to represent any system which must maintain an internal definition of state.正如下面的示例将展示的那样,DFA 自然地可以代表任何必须维护 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.我们的示例从自动售货机开始,自动售货机需要记住用户输入了多少钱,然后是更复杂的视频游戏代理 AI 和通信协议示例。 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作为我们的最后一个例子,我们将考虑将有限的 state 机器合并到 Apache Lucene 开源搜索引擎中,它们用于实现搜索词自动完成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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