Problem Detail: Rice’s theorem tell us that the only semantic properties of Turing Machines (i.e. the properties of the function computed by the machine) that we can decide are the two trivial properties (i.e. always true and always false). But there Read More …
Author: ignougroup
[Solved]: Difference between CRC and Hamming Code
Problem Detail: I am a bit confused on the difference between Cyclic Redundancy Check and Hamming Code. Both add a check value attached based on the some arithmetic operation of the bits in the message being transmitted. For Hamming, it can Read More …
[Solved]: Points-in-a-plane from HackerRank
Problem Detail: I’ve been struggling with this problem for days now, making no progress: There are N points on an XY plane. In one turn, you can select a set of collinear points on the plane and remove them. Your goal Read More …
[Solved]: How to reconstruct the image from a neural network output?
Problem Detail: I am trying to use the genetic algorithm to optimise a multi-layered neural network for image classification (i am using a subset of the MNIST handwritten digit data set as my initial dataset, but eventually would like to make Read More …
[Solved]: How to read out a double negation in propositional logic
Problem Detail: How would one verbally say ~~R where R = my program is correct? The tildes are negation symbols. I’m not sure if it just cancels out and comes out as ‘my program is correct’ or if it’s something else. Read More …
[Solved]: Classification of job shop scheduling problems
Problem Detail: I’m writing a program (using genetic algorithms) that finds sort-of-optimal scheduling plan for a factory. The factory has several types of machines (say, locksmith, miller, welding) There are few machines of each type. (say, 3 locksmiths, 2 millers, 3 Read More …
[Solved]: If a point is a vertex of convex hull
Problem Detail: The exercise is Given a set of point $S$ and a point $p$. Decide in $O(n)$ time if $p$ is a vertex of convex polygon formed from points of $S$. The problem is I am a little bit confused Read More …
[Solved]: What does an input string of epsilon mean?
Problem Detail: I am currently reading Introduction to the Theory of Computation (Sipser), and after introducing epsilon labeled transition arrows, the book shows the following NFA: I was following it until I read the following : Practice with it to satisfy Read More …
[Solved]: How can an algorithm have exponential space complexity but polynomial time complexity?
Problem Detail: For enumerating the minimal feedback vertex sets of a graph Schwikowski and Speckenmeyer show an algorithm “GENERATE-MFVS” in their publication “On enumerating all minimal solutions of feedback problems“. It is said that it runs in polynomial time but uses Read More …
[Solved]: Is it possible to get Nth Fibonacci number in sublinear time?
Problem Detail: I was researching the topic of Fibonacci numbers and asymptotic complexity of generating them. Coming across a seemingly paradoxical conclusion, I’ve decided to check out if you agree with my explanation. The naive algorithms runs in $O(n)$, if we Read More …