Last time | Next time |
This is your last quiz. Next week we'll be reviewing on Wednesday.
We will hit the first part, which is creating machines to perform tasks such as binary addition.
The second part, Monday, will cover recognition -- another task of FSMs -- and then minimization: again, an optimization issue. We'll end today on a machine that we will want to optimize; the question is how do we do that?
So if you want to try the binary adder I created, here ya go. And it's easy enough to build other little machines (but there are certain pains, because we're using a tool which really wasn't intended for this...:)
This writes the input vectors for random integers (with padding), and tells what settings to fix, etc. Also the expected output, so one can confirm that the machine is working....
This was fun to program, but probably more trouble than it was worth. A direct approach, as in my implementation of Bellman-Ford below, would have been simpler to code. But, if I can do something recursively, I probably will...:)