Explain in simplified form, please.
Closed due to the fact that the issue is too general for the participants Kromster , cyadvert , Max Mikheyenko , Vladimir Glinskikh , Monah Tuk 17 Oct '15 at 8:19 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- Is the wiki article too complicated? What exactly is not clear? - avp
- I went to the wiki and understood only one thing: it’s a programming paradigm, but I don’t understand the essence - perfect
- 2@perfect, for 2 minutes, carefully read, sorted out examples of programs there, thought it over and did not understand anything? Great! I can't think so fast. - avp
- I'll try to figure it out myself. thanks - perfect
- oneThe essence is not captured. Try again - renegator
1 answer
in simple terms, this is an algorithm for solving a problem in which a sequence of actions for it is already prepared for each element. For example, you can try to write an email parser (P343dlo43dlo23 "№" №! @mail .ru):
- if the letter (state) - then goes to the next. sign
- if the figure - to the next. sign
- if the forbidden sign is an error
- if @ - then the domain name will be
- etc.
Such an option, with the right analysis, will give a good validation; without it, it would be easier to solve using patterns
Shl I saw a universal template for email)
- ex-parrot.com/~pdw/Mail-RFC822-Address.html Classic - igumnov
- With the analysis of the line, it became clear to me. Just in the book on opengl it says that opengl is a state machine, it couldn’t be understood in any way what it would mean - perfect
- > opengl is a state machine. Either the curve is a translation, or it is torn out of context. - nitrocaster
- @perfect - I’ll just enter what you do not have a direct connection between the GPU and the CPU. - Zowie
- one@perfect, so you are interested in state-machine because of the phrase in the book on opengl? Less pay attention to such "thinking". The great theoretical scientist apparently wrote it. - avp