Problem Detail: I have just started learning Theory of Computation and have come across a question which I am not able to solve. The question is as follows: Design a DFA that reads a word (character strings) and decides whether the Read More …
Author: ignougroup
[Solved]: Determining capabilities of a min-heap (or other exotic) state machines
Problem Detail: See the end of this post for some clarification on the definition(s) of min-heap automata. One can imagine using a variety of data structures for storing information for use by state machines. For instance, push-down automata store information in Read More …
[Solved]: Finding the longest common subsequence algorithm using hash table Slow
Problem Detail: I’ve designed an algorithm to find the longest common subsequence. these are steps: Starts with i = 0 Picks the first letter from the first string start from ith letter. Go to the second string looking for that picked Read More …
[Solved]: prove that minimal number of comparisons to find median among five elements is 5
Problem Detail: I would like to prove that we need at least five comparisons to find median amoung five numbers. And my proposition: Let’s consider tree of comparisons. There are at least $5 cdot {4choose 2} = 30$ possiblities, so in Read More …
[Solved]: Trouble understanding how to pick constants to prove big theta
Problem Detail: So I’m reading Introductions to Algorithms and sometimes I wish it would be a little bit more friendly with how it explains topics. One of these topics is proving big-theta. I understand that the definition of $Theta$ is as Read More …
[Solved]: How to call something that can be either a terminal or a nonterminal?
Problem Detail: I had written a compiler compiler a few years ago and I’m now cleaning it up, improving it, and turning it into C. I came across a terminology problem however that I remember in the past I couldn’t solve Read More …
[Solved]: Confused by Floating Point Spacing
Problem Detail: I’m currently taking a numerical analysis class in college and we’re covering floating point systems. For the most part, I have a good grasp on it. However, something I can’t seem to visualize, and haven’t seen any totally lucid Read More …
[Solved]: Find the number of topological sorts in a tree
Problem Detail: Find the number of topological sorts in a tree that has nodes that hold the size of their sub-tree including itself. I’ve tried thinking what would be the best for m to define it but couldn’t get anything specific. Read More …
[Solved]: How, in hardware, MIPS can access a word in the middle of an address
Problem Detail: This is am example of a RAM address in the MIPS architecture (32 bits) I can imagine the RAM as having 32 pins just to inform the RAM address I want to access, so I can access each of Read More …
[Solved]: Is $L= { a^ib^j mid jneq i and jneq2i } $ context free?
Problem Detail: $L = { a^ib^j mid jneq i and jneq2i } $ Is this language a context free language? If yes give a PDA. If no, give a proof. The pumping lemma for context free languages doesn’t seem to work Read More …