Posts

Showing posts from November 26, 2018

Input/Output Problem #1

Image
up vote 12 down vote favorite The basis for this problem is that you did to make an optimal pattern so that all inputted sequences will be "accepted" if they fit the rules of the problem and "rejected" if they break any of them. . Above are some examples of functions that can be performed. (A) shows a machine that will only accept the sequences that repeat 12 as you must begin at start and end on a red dot. In (B) the "*" means you can pass along that route without an input there. So (B) accepts 1111122222, 22222, 1122 etc but doesn't accept any sequence in which there is a 1 after the 2. In (C) you can move along either route to reach an end. So 12222 and 1333 are both accepted sequences. All routes have to be either single digit or single letter. Obviously shorthand like "odd"