Problem Detail: It’s well known that Monotone polygon plays a crucial role in Polygon triangulation. Definiton: monotone polygon – a polygon $P$ in the plane is called monotone with respect to a straight line $L$, if every line orthogonal to $L$ Read More …
Category: Uncategorized
[Solved]: A puzzle related to nested loops
Problem Detail: For a given input $N$, how many times does the enclosed statement executes? for $i$ in $1ldots N$ loop $quad$for $j$ in $1ldots i$ loop $quad$$quad$for $k$ in $ildots j$ loop $quad$$quad$$quad$$sum = sum + i$ ; $quad$$quad$end loop; Read More …
[Solved]: What is the decidable language in $P/poly$ but not in $P$?
Problem Detail: Except for the undecidable unaries I have no idea if there is anything in the gap between $P/poly$ and $P$ Asked By : user6818 Answered By : Yuval Filmus Take a language $L$ which is not in $mathsf{E} = bigcup_{c=1}^infty mathsf{TIME}(2^{cn})$. Read More …
[Solved]: Count number of special onto functions
Problem Detail: We define an onto function from $[n] times [n]$ to $[n-2] cup {0}$ as follows, where $[n] = {1,2,3,ldots ,n}$, $$f : [n] times [n] rightarrow [n-2] cup {0}.$$ 1) $f(x,x) = 0$. 2) $f(x,y) = f(y,x) > 0$, Read More …
[Solved]: Complexity of transposing matrices represented as list of row or column vectors
Problem Detail: Given [[1,4,7],[2,5,8],[3,6,9]] which is a list of the column vectors of matrix |1, 2, 3| |4, 5, 6| |7, 8, 9| is $ Omega(n^2) $ a lower bound for transposing? Assume the matrix is not always square. I have Read More …
[Solved]: showing that the pair of Finite Automata are equivalent
Problem Detail: Here I am trying to show that the pair of Finite Automata are equivalent. I have tried something but I am not sure if I am in the right direction. This is what I have. These are pairs of Read More …
[Solved]: If the decision problem can be solved in poly time, show the optimization problem also can
Problem Detail: Here is a problem I am trying to solve: The bin packing decision problem is defined as follows: given an unlimited number of bins, each of capacity equal to $1$, and $n$ objects with sizes $s_1$, $s_2$, $dots$, $s_n$ Read More …
[Solved]: Proving that Max Weighted Independent Set is in NP
Problem Detail: What I’m trying to do is to show a problem in NP can be reduced to the min weight vertex cover problem I’ve chosen the max independent weight problem = input: A graph G with weights on each vertex, Read More …
[Solved]: From Whence the Randomization in Randomized Quicksort
Problem Detail: Cormen talks briefly about the advantages of picking a random pivot in quicksort. However as pointed out here(4th to the last paragraph): Using a random number generator to choose the positions is relatively expensive So how is picking a Read More …
[Solved]: Sorted-greedy for Load Balancing Problem
Problem Detail: In load balancing problem we have $m$ machines and $n$ jobs, each taking processing time $t_j$. Total processing time on the machine $i$ is $T_i =sum_{jin A(i)}{t_j}$, where $A(i)$ is the set of jobs assigned to machine $i$. Goal Read More …