Post New Thread
Results 1 to 2 of 2

Thread: Can someone explain a FSM to me?

  1. #1
    Peon
    Join Date
    Jun 2008
    Location
    Huntington
    Posts
    3

    Can someone explain a FSM to me?

    This is how the FSM machine would process a string composed
    of one blank, the digits 9 and 5, two blanks, the letter K, the
    digit 9, one blank, and a period. The machine begins in the start state
    and process its input one character at a time. When it reads a blank
    character from the input, it consumes the blank character and continues
    to remain in the start state. In other words, the transition is made
    from the start state to start state itself. Next, when it reads a letter,
    transition is made from the start state to the build_id state. However,
    if the input read is a digit, transition is made from the start state to
    the build_num state.

    I dont really understand what we are doing here... i'm supposed to create a C program that emulates this but I need to understand the FSM first.

  2. #2
    Design Staff
    Moderator
    Next to Cleanliness

    Join Date
    Aug 2006
    Posts
    895

    The description says nothing about what you do when you are in the build_num/build_id state and read in another character?

    So as the description stands now, you read in a blank and go back to start, read in a 9 and go to build_num and just stay there.

    But I think your description lacks info.

Post New Reply

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts