Question

Why should you not implement a while loop in a FSM state?

Why should you not implement a while loop in a FSM state?

Homework Answers

Answer #1

In Finite State Machine, there is transition from one state to another based on some input.

Finite State machine can only look at the input and not the count of input symbol since it doesn't have stack or tape to store symbol.

While loop is used to count symbol and should terminate when condition holds False ie a particular count is reached.

FSM doesn't have provision to keep count of input symbol and thus while loop cannot be used in FSM.

If you have any questions comment down. Please don't simply downvote and leave. If you are satisfied with answer, please? upvote thanks

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Describe a scenario in which a programmer might find it most appropriate to implement a for-loop....
Describe a scenario in which a programmer might find it most appropriate to implement a for-loop. Describe a scenario in which a programmer might find it most appropriate to implement a while loop. Describe a scenario in which a programmer might find it most appropriate to implement a do while loop. could you answer these questions
FSM: Sequence 00,01,11,10 Example A complete FSM is constructed by combining the next state function and...
FSM: Sequence 00,01,11,10 Example A complete FSM is constructed by combining the next state function and D flip-flops. This exercise provides the next_pattern, the dff module, and the fsm module. Only the next_pattern has to be completed. Complete the next_pattern module, that provides the next state table for a sequence generator. The sequence is 00, 01, 11, and 10. The reset state is 00. 0001111000011110 The dff module provides a positive edge trigger D flip-flop with a specified reset state...
Implement the finite state machine for an answering machine using LabVIEW. Please send me the .vi...
Implement the finite state machine for an answering machine using LabVIEW. Please send me the .vi file, and a report in pdf or word format. Explain FSM in your report, include screen shots of the FSM from LabVIEW, assigned inputs, and resulted outputs.
What are the semantic differences between a for loop and a while loop? Can you convert...
What are the semantic differences between a for loop and a while loop? Can you convert a while loop to an equivalent for loop and vice versa? If so, how? Java
Design a FSM for a Vending Machine In this task, you will design a FSM for...
Design a FSM for a Vending Machine In this task, you will design a FSM for a simple (albeit strange) vending machine of office supplies. The vending machine sells three possible items, each at a different cost: Item Cost Pencil 10 cents Eraser 20 cents Pen 30 cents The vending machines accepts nickels (worth 5 cents), dimes (worth 10 cents), and quarters (worth 25 cents). Physically, it is only possible to insert a single coin at a time. The vending...
We want to design a non-resetting sequence detector using a finite state machine (FSM) with one...
We want to design a non-resetting sequence detector using a finite state machine (FSM) with one input X and one output Y. The FSM asserts its output Y when it recognizes the following input bit sequence: "1101". The machine will keep checking for the proper bit sequence and does not reset to the initial state after it has recognized the string. [Note: As an example the input string X= "..1101101.." will cause the output to go high twice: Y =...
Can you rewrite this MATLAB code using a while loop instead of a for loop? %formatting...
Can you rewrite this MATLAB code using a while loop instead of a for loop? %formatting clc, clear, format compact; %define variables k=1; b=-2; x=-1; y=-2; %while loop initialization for k <= 3 disp([num2str(k), ' ',num2str(b),' ',num2str(x),' ',num2str(y),]); y = x^2 -3; if y< b b = y; end x = x+1; k = k+1; end
Uses a while loop to print the numbers from 3 - 19. Uses a do-while loop...
Uses a while loop to print the numbers from 3 - 19. Uses a do-while loop to print the numbers from 42 - 56. Uses a for loop to print the numbers from 87 - 95. Asks the user for 2 numbers. Uses a loop to print all numbers between the given numbers, inclusive. Note: Consider that your user's second number can be lower! (see example below) Note: Also consider that your user might give you two of the same...
Why should firms formulate and implement strategies from an environmental perspective? Your response should be 75...
Why should firms formulate and implement strategies from an environmental perspective? Your response should be 75 words in length.
Do While loop on C++ I need to program a do while loop in which the...
Do While loop on C++ I need to program a do while loop in which the user have to choose between option A,a, B,b or C,c. I need a do while loop that if other letter (different from options is choose) the loop print a cout saying "Invalid selection. Plese, enter the selection again.   I have one, but isn't working well int main() { char option; do { cout<<"Please choose one of the following options: "<<endl<<endl; cout<<"Option A - Julian...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT