Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about finite-state-automaton

Read more about finite-state-automaton

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - finite-state-automaton

How do I set a pause between if statements?

I want to write a code that let’s a car drive if low light is detected and stop if a sonar sensor measures less than 20 cm. This has to be repeated. However, if the same low light is detected again wh...
test-img

Stijn Verver

break

pause

finite-state-automaton

Votes: 0

Answers: 1

Latest Answer

Your description is not very clear; from what I understand of it I would think you need another state: drive-after-light, to take not of the fact that you have already encountered the light, and stop ...
test-img

Oliver Mason

Draw an FSA that recognizes: (A∗ | AB+). (The bar outscopes the other operators, so its equal to: (A∗) | (AB+).) Use as few states possible

I've attached what I have. My problem is that I don't know if its correct and if I've even used the fewest states possible to answer this question. Really appreciate any help on what I currently did w...
test-img

theworkforceof

dfa

linguistics

finite-state-automaton

Votes: 0

Answers: 1

Latest Answer

I would start by creating two FSAs, one for each of the branches. For A* you only need one state. For AB+ you need three states. Then you merge the two. Assuming it does not have to be deterministic, ...
test-img

Oliver Mason

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved