Skip to main content

Questions tagged [ds.algorithms]

Questions regarding well-defined instructions for completing a task, and relevant analysis in terms of time/memory/etc.

5 votes
0 answers
218 views

In the AKS paper, the authors based on the Lemma There exist constants $c > 0$ and $n_0$ such that, for all $x\ge n_0$: $$\bigl|\{q \mid \text{$q$ is prime, $q\le x$ and $P(q − 1) > q^{2/3}$}\}\...
minh quý lê's user avatar
2 votes
0 answers
64 views

Given two $n$-bit integers $a$ and $b$ how many memory transfers are needed to compute $ab$? Since $ab$ can be computed in $O(n \log n)$ time, this is an upper bound on the number of memory transfers. ...
qwerty1793's user avatar
4 votes
1 answer
244 views

Matrix squaring for general matrices is as hard as matrix multiplication because of the $2n\times2n$ matrix $\begin{pmatrix}0&A\\B&0\end{pmatrix}$ (as said by Ryan Williams here). So the ...
shoman's user avatar
  • 51
2 votes
1 answer
192 views

Let there be a set of slots $a_1, a_2, ..., a_m$, a set of items $b_1, b_2, ..., b_n$, and a function $f$ such that $f(a_i, b_j)$ returns whether item $b_j$ fits into slot $a_i$. Additionally, let ...
LarsW's user avatar
  • 123
1 vote
1 answer
125 views

I have the following graph optimization problem. In a directed graph G, each node $v$ is assigned a number $n(v)$ which is initially 0. At any time, I can make a move to assign the number $ max \{ n(...
Hao S's user avatar
  • 358
2 votes
1 answer
211 views

When multiplying two $n$-bit integers, it seems like we have to compute and store intermediate results. For example, in the schoolbook algorithm, we typically have to compute and sum $O(n^2)$ partial ...
delete000's user avatar
  • 1,074
2 votes
0 answers
62 views

I am looking for state-of-the-art results on the runtime bounds of offline dominance counting, specifically in the semigroup model. The problem, for a semigroup $(G, \oplus)$ and points $P$, e.g., in $...
Distinguishable Llama's user avatar
4 votes
0 answers
163 views

I'm trying to find a proof that there is no PTAS for binary Shortest common supersequence. I know there is a paper here P. Bonizzoni, M. Duella and G. Mauri. Approximation complexity of longest common ...
Hao S's user avatar
  • 358
8 votes
0 answers
220 views

By which I mean for problems which can be solved perfectly by dynamic programming but instead of computing all necessary subproblems you only compute a subset and each entry of the DP table that you ...
Hao S's user avatar
  • 358
0 votes
1 answer
163 views

Problem: Top two bits of arithmetic expression $ab+cd$ with promise Input: Four $n$-bit integers $a, b, c, d$ Promise: $ab+cd<2^{2n}$ or $ab+cd \geq 2^{2n} + 2^{2n-1}$ Output: Whether $ab+cd<2^{...
delete000's user avatar
  • 1,074
1 vote
1 answer
113 views

I'm exploring a theoretical model for a data type that doesn't fit into conventional computer science paradigms. I'm not a computer scientist, so I'm looking for guidance on whether such a data type ...
Brett's user avatar
  • 11
0 votes
0 answers
59 views

Suppose you have an array $a$ of $n$ elements in a set $X$, and an associative binary operation $\circ \ \colon X \times X \rightarrow X$, that can be evaluated in constant time, but is costly (e.g. $...
Fam's user avatar
  • 1
4 votes
1 answer
300 views

By "fast" here I mean time $O(n)$ for two $n$-bit integers. What classes of integers admit fast multiplication? For example, powers of 2 admit fast multiplication, since for these integers ...
delete000's user avatar
  • 1,074
5 votes
1 answer
257 views

I have a problem where I need to perform binary search (search a sorted list), but verifying that an index is larger than my target has a much greater runtime cost than verifying that it is lower. Is ...
WolfLink's user avatar
  • 151
0 votes
1 answer
403 views

I am a recent CS Grad, and I wrote a preprint about a algorithm for MST, with time complexity O(E+VlogV) and Ω(E) in the worst and base cases, respectively; given sorted edges. I feel like it is a ...
sabih ul hassan's user avatar

15 30 50 per page
1
2 3 4 5
126