Skip to main content
added 27 characters in body
Source Link
Yuval Filmus
  • 279.1k
  • 27
  • 316
  • 512

We have to run a song on a Walkman, for that we need 2 full batteries. Let's say we have a mixed set of 30 batteries (15 are empty and and 15 are full) and then only way to test if the battery is full or empty is to put them in the Walkman and try it out. We cannot tell which one is empty or full if we put inside one full and one empty.

The question is to find the minimum needed step to run the walkman (to find 2 full batteries)

I modelledmodeled the problem like that : let s that the Walkman is a function f which take two arguments and it return 1 it the walkman works, and 0 otherwise. $$ f: \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

Let the Walkman br a function $f$ which take two arguments and returns 1 if the walkman works, and 0 otherwise. $$ f\colon \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

It gave meI was given a hint to use the Turán lemma;lemma:

when a graph G=(V,E) with V the vertex set and|V|=n does not contain a K-clique with $k >1 $ $$ |E|\leq (1-\frac{1}{k-1})\frac{n^2}{2} $$

When a graph $G=(V,E)$ with $V$ the vertex set and $|V|=n$ does not contain a $k$-clique with $k >1$, then $$ |E|\leq \left(1-\frac{1}{k-1}\right)\frac{n^2}{2} $$

The idea was to consider the batteries as vertex and create a complete graph and then when $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$.

Using the adversary argument I have to prove that the lower bound to find the battery must be 18, so any help how to solve this?

We have to run a song on a Walkman, for that we need 2 full batteries. Let's say we have a mixed set of 30 batteries (15 are empty and and 15 are full) and then only way to test if the battery is full or empty is to put them in the Walkman and try it out. We cannot tell which one is empty or full if we put inside one full and one empty.

The question is to find the minimum needed step to run the walkman (to find 2 full batteries)

I modelled the problem like that : let s that the Walkman is a function f which take two arguments and it return 1 it the walkman works, and 0 otherwise. $$ f: \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

It gave me a hint to use the Turán lemma;

when a graph G=(V,E) with V the vertex set and|V|=n does not contain a K-clique with $k >1 $ $$ |E|\leq (1-\frac{1}{k-1})\frac{n^2}{2} $$

The idea was to consider the batteries as vertex and create a complete graph and then when $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$.

Using the adversary argument I have to prove that the lower bound to find the battery must be 18, so any help how to solve this?

We have to run a song on a Walkman, for that we need 2 full batteries. Let's say we have a mixed set of 30 batteries (15 are empty and and 15 are full) and then only way to test if the battery is full or empty is to put them in the Walkman and try it out. We cannot tell which one is empty or full if we put inside one full and one empty.

The question is to find the minimum needed step to run the walkman (to find 2 full batteries)

I modeled the problem like that :

Let the Walkman br a function $f$ which take two arguments and returns 1 if the walkman works, and 0 otherwise. $$ f\colon \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

I was given a hint to use the Turán lemma:

When a graph $G=(V,E)$ with $V$ the vertex set and $|V|=n$ does not contain a $k$-clique with $k >1$, then $$ |E|\leq \left(1-\frac{1}{k-1}\right)\frac{n^2}{2} $$

The idea was to consider the batteries as vertex and create a complete graph and then when $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$.

Using the adversary argument I have to prove that the lower bound to find the battery must be 18, so any help how to solve this?

Bumped by Community user
Corrected many typos and grammar lapses. Added two tags.
Source Link
John L.
  • 39.1k
  • 4
  • 34
  • 91

weWe have to run a song on a Walkman,for for that we need 2 full batteries.Let s Let's say we have a mixed set of 30 batteries (15 are emtpyempty and and 15 are full) and then only way to test if the battery is full or empty is to put them in the Walkman and try it out.we can not We cannot tell which one is empty or full (oneif we put inside one full and one empty).

The question is to find the minumumminimum needed step to run the walkman (to find 2 full batteries)

I modelled the problem like that : let s that the Walkman is a function f which take two argummentsarguments and it return 1 it the walkman works  ,and and 0 otherwise. $$ f: \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

It was givengave me a hint to use the Turán lemma;

when a graph G=(V,E) with V the vertex set and|V|=n does not contain a K-clique with $k >1 $ $$ |E|\leq (1-\frac{1}{k-1})\frac{n^2}{2} $$

The idea waswas to consider the batteries as vertex and create a Completecomplete graph and then whenwhen $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$.

usingUsing the adversayadversary argument iI have to prove that the lower bound to find the battery must be 18, so any help how to can solve this  ?

we have to run a song on a Walkman,for that we need 2 full batteries.Let s say we have a mixed set of 30 batteries (15 are emtpy and and 15 are full) and then only way to test if the battery full or empty is to put them in the Walkman and try it out.we can not tell which one is empty or full (one we put inside one full and one empty).

The question is to find the minumum needed step to run the walkman (to find 2 full batteries)

I modelled the problem like that : let s that the Walkman is a function f which take two argumments and it return 1 it the walkman works  ,and 0 otherwise. $$ f: \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

It was given me a hint to use the Turán lemma;

when a graph G=(V,E) with V the vertex set and|V|=n does not contain a K-clique with $k >1 $ $$ |E|\leq (1-\frac{1}{k-1})\frac{n^2}{2} $$

The idea was to consider the batteries as vertex and create a Complete graph and then when $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$

using the adversay argument i have to prove that the lower bound to find the battery must be 18, so any help how to can solve this  ?

We have to run a song on a Walkman, for that we need 2 full batteries. Let's say we have a mixed set of 30 batteries (15 are empty and and 15 are full) and then only way to test if the battery is full or empty is to put them in the Walkman and try it out. We cannot tell which one is empty or full if we put inside one full and one empty.

The question is to find the minimum needed step to run the walkman (to find 2 full batteries)

I modelled the problem like that : let s that the Walkman is a function f which take two arguments and it return 1 it the walkman works, and 0 otherwise. $$ f: \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

It gave me a hint to use the Turán lemma;

when a graph G=(V,E) with V the vertex set and|V|=n does not contain a K-clique with $k >1 $ $$ |E|\leq (1-\frac{1}{k-1})\frac{n^2}{2} $$

The idea was to consider the batteries as vertex and create a complete graph and then when $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$.

Using the adversary argument I have to prove that the lower bound to find the battery must be 18, so any help how to solve this?

Source Link
Mohbenay
  • 319
  • 2
  • 9

lower bound proof with adversary argument

we have to run a song on a Walkman,for that we need 2 full batteries.Let s say we have a mixed set of 30 batteries (15 are emtpy and and 15 are full) and then only way to test if the battery full or empty is to put them in the Walkman and try it out.we can not tell which one is empty or full (one we put inside one full and one empty).

The question is to find the minumum needed step to run the walkman (to find 2 full batteries)

I modelled the problem like that : let s that the Walkman is a function f which take two argumments and it return 1 it the walkman works ,and 0 otherwise. $$ f: \{b_1,b_2 \dots b_{30}\} \times \{b_1,b_2 \dots b_{30}\} \rightarrow\{0,1\}$$

It was given me a hint to use the Turán lemma;

when a graph G=(V,E) with V the vertex set and|V|=n does not contain a K-clique with $k >1 $ $$ |E|\leq (1-\frac{1}{k-1})\frac{n^2}{2} $$

The idea was to consider the batteries as vertex and create a Complete graph and then when $ f(b_i,b_j)=0$ we delete the edge between $b_i$ and $b_j$

using the adversay argument i have to prove that the lower bound to find the battery must be 18, so any help how to can solve this ?