Skip to main content
Jake's user avatar
Jake's user avatar
Jake's user avatar
Jake
  • Member for 10 years, 6 months
  • Last seen more than a month ago
Loading…
awarded
awarded
awarded
awarded
comment
Comparing turing based programming languages
I'll add a caveat that there are other notions of completeness and expressivity that are not well modelled by Turing machines. For instance, the pi-calculus is Turing complete but can express concurrency. It is known that more expressive process calculi exist than the pi-calculus however. Similar issues arise in higher type computability.
comment
Calculate the number of trailing zeros in equation f(n) = f(n-1) * f(n-2) where f(0) and f(1) are any given arbitary numbers
To have a trailing zero you need a 5 factor for every 2 factor. This will never have any 5 factors and will thus never have any trailing zeros. This problem can be solved in constant time by returning zero.
comment
Calculate the number of trailing zeros in equation f(n) = f(n-1) * f(n-2) where f(0) and f(1) are any given arbitary numbers
If you're a tad clever you can reduce this to a Fibonacci like problem. The result will be a power of 2. What happens if you try and calculate log2(f(n)) instead of calculating f(n)? Also zeros in what base? base 10?
awarded
comment
Lower bound for point set triangulation
To argue via the connection between them you'd have to argue that you could compute the convex hull faster than that if you had a faster algorithm to compute triangulation. Also, can you define what you mean by "getting a triangulation" others might be familiar with this term but I am not.
comment
comment
O(n*log(n)) Turing Machine with exactly 1 tape for “equal number of a's and b's in a given word”?
What if you keep a count or two? How many bits are in a count? How efficiently can increment/decrement a count?
comment
Does Church-Turing thesis also apply to artificial intelligence?
Another way of looking at this that depends on your philosophical position on the state of human intelligence: Humans are a physical process, Turing machines should be able to simulate any physical process, therefore a Turing machine should be able to simulate a human.
comment
Efficiently generating a prime polynomial of a given degree
How do we know about 1/n are irreducible? I've read that in "fast construction of irreducible polynomials over finite fields" (well actually 1/2n but same difference). The reference hits a thick textbook though.
revised
Loading…
Loading…
answered
Loading…
comment
Constructing Context Free Grammar with 3 terminal symbols, with two dependent pairs
hint: think about {a^n b^m+n c^m | n>=0, m>=1} and how it relates to the two following languages {a^n b^n| n>=0 }, {b^m c^m | m>=1}
1
5 6
7
8 9
27