Problem Detail: Supposing a tree T has the identical: Pre-order traversal and in-order traversal Pre-order traversal and post-order traversal In-order traversal and post-order traversal How does T look like? From the previous discussion in SO, I learned that pre- and post-order Read More …
Category: Uncategorized
[Solved]: Convex Hull algorithm – why it can’t be computed using only comparisons
Problem Detail: Say I want to compute a covnex hull of given points on the plane. I would like to write an algorithm, that only compares the points and doesn’t do any arithmetic operations. Wikipedia states, that: The standard $Omega(n log Read More …
[Solved]: Feedback polynomial of 7-bit Linear Feedback Shift Register
Problem Detail: My friend gave me a question to solve. The question he asked me was: the following sequence has been generated by a 7-bit linear feedback shift register. He asked me to find the feedback polynomial. I went through some Read More …
[Solved]: Turing Machine for strings without bbb
Problem Detail: I am trying to generate a transition graph for a turing machine that accepts the languages of all strings that do not contain the substring $bbb$ with the input alphabet $Sigma = {a, b}$. When I implement this graph Read More …
[Solved]: Studying Programming Language Theory
Problem Detail: I have recently become extremely interested in understanding and proving aspects of (functional) programming languages. However as I dive deeper in, things like $lambda$ calculus, category theory, and denotational semantics are a little difficult to grok without proper explanation. Read More …
[Solved]: Measuring the difficulty of SAT instances
Problem Detail: Given an instance of SAT, I would like to be able to estimate how difficult it will be to solve the instance. One way is to run existing solvers, but that kind of defeats the purpose of estimating difficulty. Read More …
[Solved]: If algorithm runs $theta(n)$ in time T, doubling input size has what effect on time T?
Problem Detail: In other words, is there a relationship between the step size and the actual running time? Suppose that the algorithm is run on identical machine. Asked By : Beached Whale Answered By : David Richerby There’s no clear relationship, except that Read More …
[Solved]: Type inference with product types
Problem Detail: I’m working on a compiler for a concatenative language and would like to add type inference support. I understand Hindley–Milner, but I’ve been learning the type theory as I go, so I’m unsure of how to adapt it. Is Read More …
[Solved]: What’s the difference between Process Context and Process Control Block?
Problem Detail: I know that Process Context is something that is stored when a process is preempted, containing all the necessary info to restart the process at a later time. I also know that the Process Control Block(PCB) contains all the Read More …
[Solved]: Reducing a problem to Halt
Problem Detail: I’m reviewing for a computability test, and my professor has not provided solutions to his practice questions. I came up with a “solution” to this problem, but it really seems like my answer is wrong (since I call upon Read More …