Problem Detail: I am doing research on control flow analysis on aspect oriented programs and I found in some papers an interprocedural approach for doing control flow analysis on others call graph or control flow graph. Is there a real difference Read More …
Category: Uncategorized
What is a computer year?
Problem Detail: In one of the text book its mentioned that ‘running time of this algorithm is 200 computer years’. Can somebody please explain what is the meaning of a computer year? Asked By : Kumar Answered By : adrianN Computer years, like Read More …
Proving a grammar only generates words whose alternating digit sums are multiples of three
Problem Detail: This is homework and I’m looking for a push in the right direction. Proofs were never something I was properly taught, so now they’re kind of a weak point. Here’s the problem: The following grammar generates numbers in binary Read More …
What randomness really is
Problem Detail: I’m a Computer Science student and am currently enrolled in System Simulation & Modelling course. It involves dealing with everyday systems around us and simulating them in different scenarios by generating random numbers in different distributional curves, like IID, Read More …
Finding examples of languages that are “anti-palindromic”
Problem Detail: Let $Sigma = { 0, 1 }$. A language $L subseteq Sigma^* $ is said to have the “anti-palindrome” property if for every string $w$ that is a palindrome, $wnotin L$. In addition, for every string $u$ that is Read More …
Seating Chart Optimization
Problem Detail: I’m trying to find an algorithm to solve the seating chart problem. The goal is to place pepole at one (or multiple) tables such that the overall happiness is maximized. Each seat has neighbors. A person on a seat Read More …
How to find max number with a single-tape turing machine?
Problem Detail: I’d appreciate hints for this problem I’m trying to design a Turing Machine which calculates $max {x_1, x_2,..,x_k }$. Assuming $1 = 1^1; 2=1^2; n=1^n$ and all numbers/strings are separated by a blank character $B$. Asked By : Iancovici Answered Read More …
Sub language is not Turing-recognizable, or could it be?
Problem Detail: Let A and B be languages with A ⊆ B, and B is Turing-recognizable. Can A be not Turing-recognizable? If so, is there any example? Asked By : Wilhelm Answered By : Kaveh This is something that confuses many students. The Read More …
What makes PROLOG Turing-complete?
Problem Detail: I know that it can be proven PROLOG is Turing-complete by constructing a program that simulates a Turing machine like this: turing(Tape0, Tape) :- perform(q0, [], Ls, Tape0, Rs), reverse(Ls, Ls1), append(Ls1, Rs, Tape). perform(qf, Ls, Ls, Rs, Rs) Read More …
Describing a Turing machine that computes $lceillog_{2}(n)rceil$
Problem Detail: I need to describing a Turing machine that computes $lceillog_{2}(n)rceil$ I know that: n = 1, 2, 3, 4, 5, 6, 7, 8, … f(n) = 0, 1, 2, 2, 3, 3, 3, 3, … So I’m thinking of Read More …