Skip to main content

Questions tagged [algorithms]

Informally, an algorithm is a set of explicit instructions used to solve a problem (e.g. Euclid's algorithm for computing the greatest common divisor of two integers). For more specific questions on algorithms, this tag may be used in conjunction with the approximation-algorithms, algorithmic-randomness and algorithmic-topology tags.

Filter by
Sorted by
Tagged with
10 votes
2 answers
461 views

Motivation. In my younger son's class, everyone has to give a (small) Christmas present to one other student. Let $n\in\mathbb{N}$ be the number of students in the class. If you pick a permutation $\...
Dominic van der Zypen's user avatar
0 votes
0 answers
32 views

Factorization of integers of special forms are of both theoretical interest and cryptographic implications. Experimentally we found a seemingly "large" set of integers for which a divisor ...
joro's user avatar
  • 25.7k
0 votes
1 answer
115 views

Let $x,y,X,Y,D>1$ be positive integers. Let $X^D+Y^D=n$ and assume $Y>X^{D/(D-1)}$. Conjecture 1 $Y=\lfloor n^{1/D}\rfloor$ and $X=(n-Y^D)^{1/D}$ Let $Y^D-X^D=n$ and assume $Y>X^{D/(D-1)}$. ...
joro's user avatar
  • 25.7k
0 votes
0 answers
151 views

Let $p,C$ be positive integers and assume $0 < C< \sqrt{p}$ Let $n=p (p+C) $ and assume $n$ is odd. Conjecture 1 Given $n$ we can find $p,p+C$ with complexity computing two integer square roots ...
joro's user avatar
  • 25.7k
11 votes
1 answer
460 views

Let us consider two monic polynomials $f(X), g(X) \in \dfrac{\mathbb{Z}}{p^k\mathbb{Z}}[X]$. Now, we call $h(X)$ is a divisor of $f(X)$, if there exists a $l(X) \in \dfrac{\mathbb{Z}}{p^k\mathbb{Z}}[X]...
Afntu's user avatar
  • 311
0 votes
1 answer
116 views

We are provided with a set of $n$ targets. Each target is characterized by a utility value. We know the distribution of the utility value for each target, but do not know its current value. Therefore, ...
lchen's user avatar
  • 327
1 vote
2 answers
315 views

Let the following data be given. Two positive integers $m$ and $n$. A family of sets $B_a \subseteq \{1, \dots, n\}$ (for $a \in \{1, \dots, m\}$). The task is to count the number $N$ of injective ...
parkingfunc's user avatar
0 votes
0 answers
188 views

I have tried to implement Ramanujan's algorithm for Solvability of a system of polynomial equations but got stuck in the final step of calculating the partial fraction decomposition from which the ...
Manfred Weis's user avatar
4 votes
1 answer
384 views

The origin of the following question is irrelevant and will hence be skipped. Hopefully, it will be interesting without context. Consider the following algorithm. We will use $p_i$ to denote the $i$-...
Sayan Dutta's user avatar
  • 1,221
1 vote
0 answers
52 views

Question: what is the fastest algorithm for optimally triangulating a point set $P$ that is given as the union of two sorted sequences $A\cup B\ :=\ ([0,0],[x_{a_1},0],\,\dots,\,[x_{a_m},0],[1,0])\,\...
Manfred Weis's user avatar
0 votes
0 answers
106 views

Let $$ \ell(n) = \left\lfloor\log_2 n\right\rfloor. $$ $\operatorname{wt}(n)$ be A000120, i.e., number of ones in the binary expansion of $n$. Here $$ \operatorname{wt}(2n+1) = \operatorname{wt}(n) + ...
user avatar
2 votes
1 answer
136 views

There are several algorithms for lattice reductions in $n$-dimensions, LLL, etc. Here the lattice in question is in ${\mathbb R}^n$ and the basis vectors $b_1, \ldots, b_n$ are usually assumed to be ...
Victor Ramos's user avatar
  • 1,426
0 votes
0 answers
78 views

Let $a$ be an arbitrary non-decreasing integer sequence such that $a(1) = 2$. Here $a(n)$ is $n$-th term of $a$. $b$ be an integer sequence of numbers $k$ such that $a(k+1)>a(k)$. Here $b(n)$ is $...
user avatar
2 votes
1 answer
490 views

I'm currently working on a project that partially involves graphs. One of the problems I'm tackling is determining whether two given matrices represent the same connected undirected graph. So given ...
Michael's user avatar
  • 45
2 votes
0 answers
87 views

Let $a(n)$ be A032188 (i.e., number of labeled series-reduced mobiles (circular rooted trees) with $n$ leaves (root has degree $0$ or $\geqslant 2$)), whose exponential generating function is $A(x)$ ...
user avatar
1 vote
1 answer
313 views

A graph $G$ is said to be a tree if it is a connected (i.e. every two distinct vertices of $G$ can be connected by a path of vertices of $G$), acyclic (i.e., $G$ has no cycles) and simple (i.e., $G$ ...
Chess's user avatar
  • 1,357
1 vote
0 answers
157 views

Let $T(n,k)$ be an integer coefficients such that $$ T(n,k) = \begin{cases} 1 & \text{if } k = 0 \vee n = k \\ \displaystyle{ \sum\limits_{i=k-1}^{n-1} T(n-1,i) T(i,k-1) } & \text{otherwise} \...
user avatar
22 votes
2 answers
2k views

I acquired a vintage programmable calculator and thought I'd give it a spin by computing some interesting transcendental function. I wanted to compute the arithmetico-geometric mean but the calculator ...
Dan Piponi's user avatar
  • 8,733
3 votes
0 answers
224 views

Suppose we have a set $N$ of $n$ players and a set $M$ of $m$ items. We are given a matrix $P_{n \times m}$ whose element $p_{ij} \geq 0$ $(i \in N, m \in M)$ denotes the valuation of good $j$ by ...
breakfasttheorist's user avatar
0 votes
0 answers
39 views

I am trying to calculate the time complexity of the Floyd-Warshall algorithm with the following modification: Instead of adding a single intermediate node each time, I will be adding $K$ nodes at once....
Meir Tolpin's user avatar
1 vote
0 answers
68 views

I've been looking at a specific optimization algorithm in the nonconvex setting, and I'm trying to analyze its convergence rate. Here's the quick setup: Suppose we have a nonconvex, continuously ...
Connor Brown's user avatar
2 votes
0 answers
88 views

Let $a(n)$ be A103239. Here $$ 1 = \sum\limits_{n=0}^{\infty} a(n) \frac{x^n}{(1-x)^n} \prod\limits_{j=0}^{n} (1 - (j+2)x). $$ Start with $A$ and vector $\nu$ of fixed length $m$ with elements $\nu_i =...
user avatar
-2 votes
1 answer
552 views

Basic setups: A Turing machine M operates on a doubly infinite tape. The tape is divided into cells. Each cell can hold either a 0 or a 1 (meaning, we will consider only TM’s with two symbols). The ...
Monte_carlo's user avatar
15 votes
1 answer
717 views

I have a polynomial of degree around $2^{35}$ over a finite field $\mathbb{F}_p$, where $p$ is a 64-bit prime number. What is the most efficient algorithm for finding a root of such a polynomial? (...
user's user avatar
  • 151
1 vote
0 answers
134 views

Let $F(n)$ be A000045 (i.e., Fibonacci numbers). Here $$ F(n) = F(n-1) + F(n-2), \\ F(0) = 0, F(1) = 1. $$ Let $a(n)$ be A268407 (i.e., number of North-East lattice paths that do not bounce off the ...
user avatar

1
2 3 4 5
34