Problem Detail: Let’s say we have a Turing machine which head can only write 1 or blank to the tape (although it can read all symbols from any input alphabet correctly). Can we operate with it on any input? My approach Read More …
Category: Uncategorized
[Solved]: Pumping lemma for Context-Free Languages
Problem Detail: I have a question about a specific pumping lemma problem for Context-Free Languages. Suppose we have the following Language: $L = {a^{i}b^{j}c^{k}d^{l} mid 0 < i < k wedge j > l > 0 }$ Here is my attemp Read More …
[Solved]: Why not relax only edges in Q in Dijkstra’s algorithm?
Problem Detail: Can someone tell me why almost in every book/website/paper authors use the following: foreach vertex v in Adjacent(u) relax(u,v) when relaxing the edges, instead of: foreach vertex v in Adjacent(u) if (v is in Q) relax(u,v) This is extremely Read More …
[Solved]: Proving a Language is Irregular using Myhill-Nerode
Problem Detail: I’m trying to prove that the language: begin{equation*} L = { w in { 0, 1 }^* : w text{ contains more 0’s than 1’s} } end{equation*} is irregular using the Myhill-Nerode theorem. I’ve been through all the basic Read More …
[Solved]: How exactly do you calculate the hidden layer gradients in the backpropagation algorithm?
Problem Detail: I have been going through the description of the backpropagation algorithm found here. and I am having a bit of trouble getting my head around some of the linear algebra. Say I have a final output layer $L$ consisting Read More …
[Solved]: Why aren’t we researching more towards compile time guarantees?
Problem Detail: I love all that is compile time and I love the idea that once you compile a program a lot of guarantees are made about it’s execution. Generally speaking a static type system (Haskell, C++, …) seems to give Read More …
[Solved]: Efficient simulation of an NFA, while preserving the paths to the accept states
Problem Detail: The standard way of simulating an NFA on a computer (for implementing regex engines etc) is to construct a DFA that accepts the same language. Otherwise you get problems like exponential blowup. However, for my purpose I need to Read More …
[Solved]: Where do these DRAM row/column calculations come from?
Problem Detail: Let r be the number of rows in a DRAM array, and c be the number of columns. Apparently, DRAM with organization 16×1 requires least pins when r = c = 4 because fewer address bits are required to Read More …
[Solved]: Detecting overflow in summation
Problem Detail: Suppose I am given an array of $n$ fixed width integers (i.e. they fit in a register of width $w$), $a_1, a_2, dots a_n$. I want to compute the sum $S = a_1 + ldots + a_n$ on a Read More …
[Solved]: Notions of efficient computation
Problem Detail: A polynomial-time Turing machine algorithm is considered efficient if its run-time, in the worst-case, is bounded by a polynomial function in the input size. I’m aware of the strong Church-Turing thesis: Any reasonable model of computation can be efficiently Read More …