Problem Detail: I was wondering how to remove duplicate values from a linked list in $mathcal{O}(nlg n)$ time. I have an idea that by using merge sort when we want to compare elements for choosing the small one, if they are Read More …
Blog
[Solved]: Log-Space Reduction $CO-2Col le_L USTCON$
Problem Detail: I want to show that $CO-2Col le_L USTCON$ (Log-Space reduction) $USTCON$ The $s-t$ connectivity problem for undirected graphs is called $USTCON$. [Input]: An undirected graph $G=(V,E)$, $s,t in V$. [Output]: 1 iff $s$ is connected to $t$ in $G$. Read More …
[Solved]: Is Post’s Correspondence Problem decidable with fixed word size?
Problem Detail: So, it’s known that PCP is undecidable even when we fix the number of tiles to $n geq 7$. I’m wondering, can anything similar be said for when there is a fixed word length? To be precise, here’s the Read More …
[Solved]: What if block sizes are not equal among caches?
Problem Detail: In all the books, packets of slides and similar I read, cache miss is always explained by assuming that blocks of different caches (or cache and RAM) are always of the same size. It’s pretty clear how it’s works Read More …
[Solved]: Type inference + overloading
Problem Detail: I’m looking for a type inference algorithm for a language I’m developing, but I couldn’t find one that suits my needs because they usually are either: à la Haskell, with polymorphism but no ad-hoc overloading à la C++ (auto) Read More …
[Solved]: Context-free grammar for $L = {a^n : nleq2^{20}}$
Problem Detail: I want to find a context-free grammar for $L = {a^n : nleq2^{20}}$. There’s one for sure. I approached it by two ways and both seemed dead end. One was to set a limit during the production of the Read More …
[Solved]: Is the set of minimal DFA decidable?
Problem Detail: Let $mathrm{MIN}_{mathrm{DFA}}$ collection of all the codings of DFAs such that they are minimal regarding their states number. I mean if $langle A rangle in mathrm{MIN}_{mathrm{DFA}}$ then for every other DFA $B$ with less states than $A$, $L(A)ne L(B)$ Read More …
[Solved]: Longest Common Subsequence Via Dynamic Programming
Problem Detail: I read the wikipedia page on the Longest Common Subsequence problem to understand the LCS Table approach, but it seems to result in different solutions given different orders of the original sequences. For example, the traceback table generated here Read More …
[Solved]: construct a dfa that accepts odd consecutive number of 0’s and 1’s
Problem Detail: this dfa should accept only consecutive odd number of both 0’s and 1’s. example: 10001,1110001,10,01,011101. How can I draw its diagram? Asked By : user49697 Answered By : Rick Decker Here are a couple of hints to get you started. Could Read More …
[Solved]: How can I translate this quantified logical expression into english
Problem Detail: I was reading chapter-1 The Foundations: Logic and Proofs from this book. The chapter gives example of translating English sentence : “There is a woman who has taken a flight on every airline in the world.” as follows: Introducing Read More …