Problem Detail: I have encountered the following problem that I found very interesting to solve: Given an array of positive integers ${a_1, a_2, …, a_n}$ you are required to partition the array into $3$ blocks/partitions such that the maximum of sums Read More …
Category: Uncategorized
[Solved]: Correctness of the greedy algorithm
Problem Detail: I am trying to solve the following problem: Given a matrix which consists of only 0’s and 1’s. Considering the matrix as a metal sheet, we need to “cut-out” square blocks of sizes 2×2 consisting of only 0’s from Read More …
[Solved]: Can a Turing Machine have infinite accept states?
Problem Detail: I’m still fairly new to Turing Machines, but I’ve been doing some research. I know that a Turing Machine can have an infinite tape and that it requires a finite number of states, but does it necessarily follow that Read More …
[Solved]: Largest reported speedup for a parallel computation?
Problem Detail: A parallel implementation of a computation is usually compared to a sequential version of the same computation. The ratio of the time taken by the sequential version to the time taken by the parallel version is called the speedup. Read More …
[Solved]: Myhill-Nerode style characterization of CFL?
Problem Detail: Define the Nerode equivalence over a language $L subseteq Sigma^{*}$ as $u sim_L v$ iff $uw in L Leftrightarrow vw in L$ for every $w in Sigma^{*}$. The Nerode equivalence ${sim}_L$ has finitely many equivalence classes precisely when $L$ Read More …
[Solved]: naive convex hull algorithms
Problem Detail: I already understood how the well-known algorithms like Graham, Quickhull etc. work, but i have difficulties in understanding 2 naive versions of convex hull algorithms: Let S={p1, …, pn} a set of points and CH(S) the convex hull of Read More …
[Solved]: Why can’t we use a hash tables for collision resolving in hash tables?
Problem Detail: To prevent collisions, hash tables with open addressing use a methodology to chain the contents. Why can’t we use another hash table allocated to each slot of the primary hash table? Asked By : user1675999 Answered By : jbapple The method Read More …
[Solved]: Algorithmic consequences of algebraic formula for partition function?
Problem Detail: Bruinier and Ono have found an algebraic formula for the partition function, which was widely reported to be a breakthrough. I am unable to understand the paper, but does it have any algorithmic consequences for fast computation of the Read More …
[Solved]: Find hamilton cycle in a directed graph reduced to sat problem
Problem Detail: I need to find a Hamiltonian cycle in a directed graph using propositional logic, and to solve it by sat solver. So after I couldn’t find a working solution, I found a paper that describes how to construct a Read More …
[Solved]: How can I sum pixel values over a rotated rectangle?
Problem Detail: I have an optimization problem in which I need to sum pixel values in an image over a rectangular region. This is a core component of the optimization so it will be done often and the naive solution is Read More …