5 ms·
I'm deeply puzzled as to how you can say that my second paragraph is "of course correct" yet continue to argue that there's a difference. No, the language of b
by mikeash 13y ago
I'm deeply puzzled as to how you can say that my second paragraph is "of course correct" yet continue to argue that there's a difference.
No, the language of balanced parens is not regular and cannot be matched by a FSM no matter how much memory you have. That's completely true. However, it also cannot be matched by a Turing machine with finite memory, no matter how much memory you have. That is because, as I showed and as you agree is "of course correct", the two machines are equivalent in their capabilities.
- theseoafs 13y agoIf a Turing machine with finite memory is equivalent in power to a FSM, why are non-deterministic linear bounded Turing machine considered so much more powerful than FSM's?
- mikeash 13y agoThe amount of memory that can be used by an LBA is specified by the input, not by the machine, and there's no limit to how big it can be, only that there has to be some limit. In short, it still has infinite memory, you just have to pick how much of it to use when you run it. This differs from an FSM or a Turing machine with finite memory in that you choose the quantity of memory when specifying the machine rather than the input.
- timtadh 13y agoYes, I apologize for the parent comment. I realized I had misread your comment after I had posted and did the edit to try and rectify the situation. I left the original because I thought it might clarify some of the differences between the machines for people who don't know anything about the subject. I guess I felt that the memory limitation was a misleading way of discussing the machines. Turing machines and PDAs are usually discussed with infinite memory. In practice the input really determines how much memory the machine will use. Furthermore, I believe that the encoding scheme you suggest will use far more space than the equivalent Turing machine or PDA it encodes. Because, for every state in the machine you have to encode every possible memory configuration for that state. That means you have an exponential explosion in the number of states. This gets to the heart of the matter for me: when memory is bounded using the finite version of a PDA will let you match a deeper nesting of parens than a FSM because it will use memory more efficiently. You have to put the states of the machine somewhere and that place is either memory or hardware which are both limited.
- mikeash 13y agoYou're absolutely right that there's a vast practical difference between the two things. This is, of course, why our actual real-world computers are modeled on Turing machines with finite memory, not on pure finite state machines. To model a machine with 1GB of RAM, an FSM would need 2^1024^3 states, multiplied by however many states are needed to model the CPU. However, the difference is purely in practical terms when it comes time to actually build one. In the theoretical world they are equally capable and can recognize the same languages.