Problem Detail: Since, I don’t have strong algorithmic background my question may sound a litlle odd. Please correct me, if so. I have quite a large bitmap (~100 Million bits) (e.g. 100100101001010001001…010010). The bitmap is just an example, it doesn’t have Read More …
Blog
[Solved]: Solving/Optimizing a linear system in a finite field (Z/2Z)
Problem Detail: I’m trying to solve the following optimization problem. A is a rectangular matrix with coefficients in the finite field Z/2Z (size less than 1000 X 1000). I have a system of the form A.X = Y (X and Y Read More …
[Solved]: Are device drivers state machines?
Problem Detail: I know that device drivers are attached to device controllers, which have their own registers and some local buffer storage. I’m wondering if I can think of device drivers as little state machines — i.e. do they read and Read More …
[Solved]: Will the Ford-Fulkerson algorithm always find the max flow if we start from a valid flow?
Problem Detail: I stumbled across this question and answer (source): Question: Suppose someone presents you with a solution to a max-flow problem on some network. Give a linear time algorithm to determine whether the solution does indeed give a maximum flow. Read More …
[Solved]: Confusion in Banker’s Algorithm: How resources are allocated?
Problem Detail: I have seen examples about Banker’s Algorithm from this Wikipedia link, this book and many other places. In all these examples some processes are allocated resources less than their Max Need. For example, consider the state of system as Read More …
[Solved]: Is every undecidable language reducible to any other undecidable language?
Problem Detail: For the undecidable languages I have seen so far , I am able to give a reduction from one language to other . Is it the case that every undecidable language is reducible to every other undecidable language? If Read More …
[Solved]: Is a Karp–Levin reduction a Levin reduction?
Problem Detail: My understanding is that Karp many-one reductions are more general than Levin many-one reductions, and that Levin many-one reductions must allow for the number of certificates for a problem $A$ reduced to $B$ to be recovered from a single Read More …
[Solved]: How to prove “The power set of a countable set must be uncountable”?
Problem Detail: I’m not sure if this statement is correct, but my friend said so. The problem arose from this T/F question: Let $F={f: f$ be a primitive recursive function from $mathbb{N}$ to $mathbb{N}}$, then $2^F$ (Power set of $F$) is Read More …
[Solved]: Partition points in a plane with a straigth line
Problem Detail: Given are a 2D plane and a array of points in this plane, with every point having an integer value assigned. Is there an algorithm which, when given a ratio a/b, divides the plane with a straight line, so Read More …
[Solved]: Selecting random points at general position
Problem Detail: How will you find a random collection of $n$ points in the plane, all with integer coordinates in a specified range (e.g. -1000 to 1000), such that no 3 of them are on the same line? The following algorithm Read More …