Problem Detail: I know that Big O is used to bound worst case running time. So an algorithm with running time $O(n^5)$ means its running time in worse case is less than $n^5$ asymptotically. Similarly, one can say that for example Read More …
Category: Uncategorized
[Solved]: Approximating NP-complete problems
Problem Detail: Say that for a particular problem, e.g., the independent set problem, it has been shown that no polynomial-time algorithm exists to solve it. Could we get around this by finding an algorithm which approximates the solution to a certain Read More …
[Solved]: How does the runtime of the Ukkonen’s algorithm depend on the alphabet size?
Problem Detail: I am concerned with the question of the asymptotic running time of the Ukkonen’s algorithm, perhaps the most popular algorithm for constructing suffix trees in linear (?) time. Here is a citation from the book “Algorithms on strings, trees Read More …
[Solved]: Need help with ER diagram
Problem Detail: I am making database on Disaster Management. There are four tables. DisasterEvent (eventid, name, glideID, status, description, date_occurred, date_ended, disaster_type) People(eventid, num_deaths, num_injuries, num_affected) Homes (eventid, num_homes_destroyed, num_homes_damaged, total_insured_loss, total_uninsured_loss) Place (place_id, city, state, country, postal_code) In my design, Read More …
[Solved]: standard sequential algorithm with polylog runtime?
Problem Detail: At the Wikipedia article on time complexity, only a PRAM example is given for polylogarithmic time. Let $T(n)$ denote the largest number of steps used by a machine to reach a final state on any input with size $n$ Read More …
[Solved]: How can repeated addition/multiplication be done in polynomial time?
Problem Detail: I can see how adding 2 unsigned four-bit values is $O(n)$. We just go from the rightmost digits to the leftmost digits and add the digits up sequentially. We can also perform multiplication in polynomial time ($O(n^2)$) via the Read More …
[Solved]: Computational complexity of finding the roots of a polyomial
Problem Detail: I’m currently dealing with a problem for which I could show that an exact algorithm would imply a general algorithm for finding the real (but not complex) roots of an arbitrary univariate polynomial with real coefficients. Now, what exactly Read More …
[Solved]: Mathematical function vs Computer program
Problem Detail: In mathematics , an $n$-ary relation is subset of cross product on $n$ sets took under consideration. Let us take $A_1,A_2,A_3 cdots A_n$ be the n sets. Then relation $R subseteq A_1times A_2times A_3 times A_n$ . Here $X$ Read More …
[Solved]: How do we determine how much time a multi-tape DTM saves over a one-tape DTM?
Problem Detail: Note: This is a part of a homework question Were asked to construct a multi-tape Turing Machine for language {$a^n b^n c^n mid n geq 0$} Then it says “Discuss how much time your machines saves over a one-tape Read More …
[Solved]: Tree : Forest :: Path :?
Problem Detail: A forest is a collection of trees. Is there a similar notion for paths? e.g., a _______ is a collection of paths. Asked By : Austin Buchanan Answered By : David Richerby Wikipedia says that a graph all of whose non-trivial Read More …