Theory of Computation - Regular Language Models

6. A finite state machine with the following state table has a single input x and a single output z. If initial state is unknown, then shortest input sequence to reach the final state C is

Present stateNext state, z
 X = 1X =0
AD, 0B, 0
BB, 1C, 1
CB, 0D, 1
DB, 1C, 0

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


7. An FSM can be used to add how many given integers?

  • Option : D
  • Explanation : Finite Automata (FA) or Finite State Machine to add two integers can be constructed using two states:
    q0: Start state to represent carry bit is 0
    q1: State to represent carry bit is 1
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


8. If two finite state machines are equivalent, they should have the same number of

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


9. For which of the following applications regular expressions can be used?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


10. L = {ap | p ; } is prime is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *