Skip to main content

Questions tagged [probabilistic-algorithms]

Questions about (typically randomized) algorithms that can produce no or an incorrect answer with a certain probability.

Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

It is known that BPL $\subseteq$ P where BPL is the class of languages that have a probabilistic Turing machine which decides input correctly with probability $\ge \frac{2}{3}$ and always halts ...
advocateofnone's user avatar
1 vote
1 answer
80 views

Consider the following randomised distributed algorithm for computing (constant-approximation) maximum matching. The algorithm has $\log ∆$ iterations indexed by $i∈{0,1,2,\ldots,\log ∆− 1}$. We ...
cartman's user avatar
  • 21
0 votes
0 answers
76 views

Skip lists work in layers. My question is no more than that: What is the expected number of layers in a skip list with the parameter $p \in (0,1)$? My best attempt to so far is $$\sum_{i = 1}^\infty i ...
coderodde's user avatar
1 vote
0 answers
58 views

This is about the proof of Lemma 5.13 in the well-renowned book Motwani R, Raghavan P. Randomized Algorithms. Cambridge University Press; 1995. Access with institutional login: link. (The lemma is in ...
M G's user avatar
  • 11
5 votes
1 answer
217 views

The book Arora and Barak defines class IP (interactive protocol) by making the verifier have private coins. Before proceeding to public coin proofs and showing they are the "same," the book ...
advocateofnone's user avatar
0 votes
0 answers
36 views

I wonder how should I state the communication complexity when having a linear PCP combined with another protocol? May I ask that if I have a protocol that utilizes a linear PCP that has proof length n,...
js wang's user avatar
  • 101
0 votes
0 answers
34 views

In HyperLogLog, we estimate cardinality using the Harmonic Mean of the maximum number of leading zeroes observed across hashed values. The final estimate is derived using P(at least max_zeroes) rather ...
Anish's user avatar
  • 1
1 vote
3 answers
213 views

Given an array 𝑎[1..𝑛] containing half zeros and half ones, we need to find a position in 𝑎 that contains the value 1. Consider the following two algorithms: Algorithm 1 ...
user179480's user avatar
0 votes
0 answers
75 views

Q) Assume that the success probability of a probabilistic algorithm $M$. In other words, a probabilistic Turing machine, satisfies $p_{succ} \geq \frac{1}{p(n)}$, for some polynomial $p(n)= O(n^c)$ ...
MathPlease's user avatar
3 votes
1 answer
134 views

For $n$ elements, a two-level hash table contains an $O(n)$ top-level hash table whose entries are hash tables also. Each table samples from a 2-universal family. To hash an element $x$, we first hash ...
thh's user avatar
  • 31
4 votes
0 answers
85 views

Given an arbitrary metric space $M=(X,d)$, is there a $(1+\epsilon)$-approximate algorithm (maybe probabilistic or randomized) that can estimate the diameter of $X$? This algorithm should be faster ...
user43464's user avatar
  • 141
1 vote
0 answers
36 views

I'd like to disribute the HeavyKeeper algorithm. So far I couldn't find resources on how to merge two HeavyKeeper data structures. Is this even possible without scraficing accuracy?
Karsten's user avatar
  • 111
0 votes
1 answer
54 views

Suppose that I would like to divert 10% of requests coming into an API to some other service. The request needs to be sent to the service at the time the request is processed. The requests should be ...
Jeremy Fisher's user avatar
2 votes
0 answers
50 views

Let's say I have a random variable $V$ which takes values from the finite set $V = \{v_1, v_2,...,v_N \}$. I want to pick one value randomly based on given probabilities $p_i = \Pr(V=v_i)$. Let's call ...
Hamed's user avatar
  • 121
3 votes
1 answer
166 views

The complexity class BPP requires that the running time be guaranteed polynomial, though with only a 2/3 chance of the correct output. ZPP, on the other hand, guarantees correct output, but now only ...
Mike Battaglia's user avatar
2 votes
0 answers
98 views

I'm working on a project involving set-like data structures. For one of the algorithms I am using that does a merge-like operation on two of these structures I can take a very big shortcut if I know ...
MacroPolo's user avatar
1 vote
0 answers
44 views

I am looking for information about a specific sort of problem: There is a set of samples, and some subset of them are positive. It is possible to combine samples and test if the combination contains ...
user833970's user avatar
4 votes
0 answers
83 views

In $\tilde{O}(n)$ time, can I generate $n$ random lattice points so that no four lie on the same circle? You can assume we pick points from a grid of side length $k \gg n$ (say, take $k=n^2$). I have ...
innocuous-squid's user avatar
0 votes
1 answer
58 views

Could someone help me understand why in the below proof, if $k > log_{2}n$, then $P(N_i=1)< \frac{1}{n}$?
Flying Spaghetti's user avatar
0 votes
1 answer
64 views

Suppose a polynomial time machine that has an access to a polynomially long string of bits independent on the input. On average, it's impossible to compress this string to a subpolynomially long ...
rus9384's user avatar
  • 2,151
2 votes
0 answers
51 views

LogLog/HyperLogLog provides a great way for estimating the cardinality of the set of $n$ objects. At its simplest, you hash all $n$ objects into binary strings, find the largest number of leading 0's $...
chausies's user avatar
  • 652
2 votes
1 answer
140 views

Here, flip() is a function that returns 0 or 1 with equal probability. It can be proved ...
Ferran Gonzalez's user avatar
0 votes
1 answer
234 views

Let's say I have a Monte Carlo algorithm $A$ that gives the correct answer with a probability $p$ > $1/2$. I don't have any information on if it's decisional or not. I understand that I can make ...
diegodr02's user avatar
0 votes
0 answers
63 views

Here an interesting graph problem I've recently saw: After a heist in New York City, a group must reach Miami within a set timeframe to catch an escape boat. Their vehicle's GPS shows U.S. routes with ...
Kumar A.'s user avatar
1 vote
1 answer
110 views

Let us assume I use bloom filters of size $m$ bits with $k$ hash functions. Now I have two set $X$ and $Y$. Let $B(X)$ be bloom filter of the set $X$. In general I know that $B(X\cup Y)= B(X) \lor B(Y)...
Galois group's user avatar
1 vote
0 answers
76 views

https://complexityzoo.net/Complexity_Zoo:R RL: Randomized Logarithmic-Space Has the same relation to L as RP does to P. The randomized machine must halt with probability 1 on any input. It must also ...
l4m2's user avatar
  • 247
3 votes
1 answer
196 views

Problem Description Given $a, b, n \in \mathbb{N}$ with $a < b < n$. Let $M$ be the set of all possible bit strings of length $n$ which begin and end with one and have at least $a$ and at most $...
user13062187's user avatar
1 vote
2 answers
73 views

Right now i am looking at the following statement, but i cant grasp why it is correct. Can somebody help? "If we look at F0 uniformly distributed (and, say, pairwise independent) elements of [0, ...
Ilian kurt's user avatar
1 vote
0 answers
88 views

Let's say that I have a Las Vegas algorithm for a given problem (whose answer is true/false for simplicity) with a chance of ...
Lightsong's user avatar
  • 239
4 votes
0 answers
42 views

I have been thinking a bit about error correcting codes, in particular the following problem: Consider the problem of transmitting a single real number $x \in [0,1]$ over a lossy connection, where ...
almostuseful's user avatar
2 votes
1 answer
125 views

Suppose we have an array of $n$ integers. Suppose that we pick one of these elements uniformly at random and call it $x$. Suppose that $\log n$ elements are also sampled (uniformly at random) from the ...
joeren1020's user avatar
10 votes
4 answers
2k views

An undecidable problem is a decision problem proven to be impossible to construct an algorithm that always leads to a correct yes-or-no answer. I wonder if there are examples of probabilistic ...
Student's user avatar
  • 241
0 votes
1 answer
845 views

I want to analyse the time complexity for Unsuccesful search using probabilistic method in a Hash table where collisions are resolved by chaining through a doubly linked list. And the doubly linked ...
Equation_Charmer's user avatar
1 vote
0 answers
58 views

I do have a seemingly fundamental question that I somehow struggle to intuitively make sense of. Setting: Let us consider a randomized algorithm $R$ that has $t$ steps. In each step, it is fed with ...
user153219's user avatar
0 votes
1 answer
79 views

I am looking for an algorithm for the following problem: I have a set of users and a set of books. Every user has their own set of favorite books, which may be empty, and is a subset the set of books. ...
rapt's user avatar
  • 113
1 vote
1 answer
102 views

The complexity class $\mathsf{BPP}$ is typically defined as the class of all problems for which: Running an algorithm once takes polynomial time at most. The answer is correct with the probability at ...
rus9384's user avatar
  • 2,151
0 votes
0 answers
63 views

For $1\ge p_1 \ge \dots \ge p_n \ge 0$, and for $i\in[n]$ draw $k$ iid binary strings with $m$ length: $$X_{i,1},\dots,X_{i,k}\stackrel{iid}{\sim} \text{Bernoulli}(p_i)^m.$$ Viewing these binary ...
Ameer Jewdaki's user avatar
2 votes
1 answer
174 views

An $\epsilon$-tester given an input and a property, is defined as follows: If the input holds the property then the tester should accept with probability at least $\frac 2 3$. Otherwise if the input ...
AK-23's user avatar
  • 123
1 vote
2 answers
164 views

I have an array $a$ with $n$ elements, all of which have an associated weight. For example: $a = \{ (A,2), (B,5), (C,9), ..., (Z,1) \}$, such that element $A$ has weight $w_A=2$, element $B$ has ...
Maltus's user avatar
  • 11
1 vote
0 answers
53 views

:) Currently I am browsing through the internet on the hunt for a topic for my bachelors thesis. Whilst being on Reddit I discovered an interesting repo (https://github.com/mxgmn/MarkovJunior) for a ...
Matplayerino's user avatar
1 vote
0 answers
36 views

This question is about the second frequency algorithm described in N. Alon, T. Matias, and M. Szegedy The space complexity of approximating the frequency moments. Specifically, I am asking about the ...
yarchik's user avatar
  • 125
1 vote
0 answers
53 views

I was asked to show the equality $ RP(1 − 2^{-2^{n}}) = P $, which seems wrong to me (?). The $ \supseteq $ direction is obvious, and I want to show the other direction. My first intuition was to run ...
Xiobiq's user avatar
  • 161
3 votes
0 answers
143 views

Orthogonal arrays often appear in probabilistic algorithms. They can be efficiently constructed from, e.g., BCH codes. But is there an efficient algorithm that can verify if an array is orthogonal? I ...
yarchik's user avatar
  • 125
2 votes
1 answer
287 views

A polynomial hash of a string $s$ with base $b$ and modulus $M$ is defined as $$ H(s) = (s_0 + s_1 b + s_2 b^2 + \dots + s_{n-1} b^{n-1}) \mod M. $$ I have proven (and this is quite obvious) that ...
Alisa Sireneva's user avatar
0 votes
1 answer
75 views

Are turing machines with an infinite program tape that is completely random, or another example is a Game of Life simulation on an infinite randomly initialized grid, still turing machines, so to ...
Chao Somnium's user avatar
1 vote
1 answer
82 views

I have a recurring task which finished just now. I schedule it to run every ten minutes; the task will reoccur $10n$ minutes from now for all positive $n$. If instead I choose 50/50 between ten ...
Jonas Kölker's user avatar
2 votes
1 answer
442 views

The following is exercise 3.8 from the first edition of Mitzenmacher and Upfal's Probability and Computing: Randomized Algorithms and Probabilistic Analysis. Suppose that we have an algorithm that ...
Johnny's user avatar
  • 373
2 votes
2 answers
456 views

An event that occurs with high probability is one whose probability depends on a certain number $n$ and goes to $1$ as $n$ goes to infinity, i.e. it can be made as close as desired to $1$ by making $n$...
AspiringMat's user avatar
1 vote
0 answers
36 views

I have been reading the proof in the following paper, and I am unable to understand some parts in the proof. This paper shows that a distribution $A$ over $[n]\times[m]$, $n\geq m$, can be $\epsilon$-...
user141088's user avatar
2 votes
2 answers
452 views

The following question (in two parts) comes from a homework sheet of the fall 2019 semester cs170 course taught at UC Berkely taught by professors Vazerani and Tal. Design an algorithm that takes in ...
heckeop's user avatar
  • 123

1
2 3 4 5