Dvc Diablo Valley College Walks in Graphs of K Kool Strings Problem

Problem One. Walks in Graphs of k-kool strings.

A 3-bit string is a string made up of 3 characters, each a 0 or a 1. Suppose you’d like to write out, in one string, all eight of the 3-bit strings in any convenient order.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

For example, if you wrote out the 3-bit strings in the usual order starting with 000, 001, 010, . . . , you could concatenate them together to get a length 3 times 8 = 24 24-string that started 000001010. . . .

But you can get a shorter string containing all eight 3-bit strings by starting with 00010. . . . In which Now 000 is present as bits 1 through 3, and 001 is present as bits 2 through 4, and 010 is present as bits 3 through 5, . . . .

    Say a string is 3-kool if it contains every 3-bit string as 3 consecutive bits somewhere in it. Find a 3-kool string of length 10, and explain why this is the minimum length for any string that is 3-kool.

  1. Explain how any walk that includes every edge in the graph shown in Figure determines a string that is 3-kool. Find the walk in this graph that determines your 3-kool string from part 1.
  2. Explain why a walk in the graph of Figure above that includes every every edge exactly once provides a minimum length 3-kool string.
  3. The situation above generalizes to k >=2. Namely, for each k there is a digraph, B k, such that the nodes are V(B k)={ 0 , 1 } k, and any walk through B k that contains every edge exactly once determines a minimum length , (k+1)-kool bit-string. What is this minimum length?
  4. Define the transitions of Bk. Verify that the in-degree and out-degree of every vertex is even, and that there is a positive path from any vertex to any other vertex (including itself) of length at most k.Problem Two.Let x =21212121; y = 12121212: Use the Euclidean algorithm to find the GCD of x and y. Show all steps.Problem Three. The Bug on a Rug with Shahrzaad.There is a bug on the edge of a 1-meter rug. The bug wants to cross to the other side of the rug. It crawls at 1 cm per second. However, at the end of each second, a malicious first-grader named Shahrzaad stretches the rug by 1 meter. Assume that her action is instantaneous and the rug stretches uniformly. Thus, here’swhat happens in the first few seconds:The bug walks 1 cm in the first second, so 99 cm remain ahead.Shahrzaad stretches the rug by 1 meter, which doubles its length. So now there are 2 cm behind the bug and 198 cm ahead.The bug walks another 1 cm in the next second, leaving 3 cm behind and 197 cm ahead. Then Shahrzaad strikes, stretching the rug from 2 meters to 3 meters. So thereare now 3 times 3/2 = 4.5 cm behind the bug and 197 *3/2= 295.5 cm ahead.The bug walks another 1 cm in the third second, and so on.Your job is to determine this poor bug’s fate.(a) During second i , what fraction of the rug does the bug cross?(b) Over the first n seconds, what fraction of the rug does the bug cross altogether?Express your answer in terms of the Harmonic number H n = 1 1 + 1 2 + 1 3 + . . . + 1 n(c) Our currently known universe is thought to be about 3 ⋅ 10 10 light years in diameter.How many universe diameters must the bug travel to get to the end of the rug?(This distance is NOT the inflated distance caused by the stretching but only the actual walking done by the bug).Problem Four. HT I wins, TH II wins, if not repeat.To determine which of two people gets a prize, a coin is flipped twice. If the flips are a Head and then a Tail, the first player wins. If the flips are a Tail and then a Head, the second player wins. However, if both coins land the same way, the flips don’t count and whole the process starts over.Assume that on each flip, a Head comes up with probability p, regardless of what happened on other flips.Use the four step method to find a simple formula for the probability that the first player wins.What is the probability that neither player wins?Suggestions: The tree diagram and sample space are infinite, so you’re not going to finish drawing the tree. Try drawing only enough to see a pattern. Summing all the winning outcome probabilities directly is difficult. However, a neat trick solves this problem and many others.Hint: Let s be the sum of all winning outcome probabilities in the whole tree. Notice that you can write the sum of all the winning probabilities in certain subtrees as a function of s. Use this observation to write an equation in s and then solve.Problem 5.If we raise an irrational number to an irrational power, can the result be rational?Show that it can by considering 2 2 and arguing by cases.(Note that 2 2is not rational, but …)

1. Complete and upload your work on the following before midnight.
2. In case of accessing any outsider please include galaxy, planet, individual and mean of communication…
Problem 5.
If we raise an irrational number to an irrational power, can the result be rational?
and arguing by cases.
Show that it can by considering v2v2
(Note that vzV2 is not rational, but…)
Problem Four. HTI wins, TH II wins, if not repeat.
To determine which of two people gets a prize, a coin is flipped twice. If the flips are a Head and then a Tail, the first player wins. If the flips are a Tail and then a Head, the second player
wins. However, if both coins land the same way, the flips don’t count and whole the process starts over.
Assume that on each flip, a Head comes up with probability p, regardless of what happened on other flips.
• Use the four step method to find a simple formula for the probability that the first player wins.
• What is the probability that neither player wins?
Suggestions: The tree diagram and sample space are infinite, so you’re not going to finish drawing the tree. Try drawing only enough to see a pattern. Summing all the winning outcome
probabilities directly is difficult. However, a neat trick solves this problem and many others.
Hint: Let s be the sum of all winning outcome probabilities in the whole tree. Notice that you can write the sum of all the winning probabilities in certain subtrees as a function of s. Use this observation
to write an equation in s and then solve.
Problem Three. The Bug on a Rug with Shahrzaad.
Bug on a Rug
O
复制链接
Problem Three. The Bug on a Rug with Shahrzaad.
Bug on a Rug
复制链接
HAPPY
APPLES
There is a bug on the edge of a 1-meter rug. The bug wants to cross to the other side of the rug. It crawls at 1 cm per second. However, at the end of each second, a malicious first-grader
named Shahrzaad stretches the rug by 1 meter. Assume that her action is instantaneous and the rug stretches uniformly. Thus, here’s
what happens in the first few seconds:
• The bug walks 1 cm in the first second, so 99 cm remain ahead.
• Shahrzaad stretches the rug by 1 meter, which doubles its length. So now there are 2 cm behind the bug and 198 cm ahead.
• The bug walks another 1 cm in the next second, leaving 3 cm behind and 197 cm ahead.
• Then Shahrzaad strikes, stretching the rug from 2 meters to 3 meters. So there
are now 3 times 3/2 = 4.5 cm behind the bug and 197*3/2= 295.5 cm ahead.
• The bug walks another 1 cm in the third second, and so on.
Your job is to determine this poor bug’s fate.
(a) During secondi, what fraction of the rug does the bug cross?
(b) Over the first n seconds, what fraction of the rug does the bug cross altogether?
Express your answer in terms of the Harmonic number Hn = 1 + } + f +…+h
(c) Our currently known universe is thought to be about 3 · 1010 light years in diameter.
How many universe diameters must the bug travel to get to the end of the rug?
(This distance is NOT the inflated distance caused by the stretching but only the actual walking done by the bug).
Problem Two.
Let x=21212121; y = 12121212: Use the Euclidean algorithm to find the GCD of x and y. Show all steps.
(This distance is NOT the inflated distance caused by the stretching but only the actual walking done by the bug).
Problem Two.
Let x=21212121; y = 12121212: Use the Euclidean algorithm to find the GCD of x and y. Show all steps.
Problem One. Walks in Graphs of k-kool strings.
Kool & The Gang – Celebration (Official M…
BAME
分享
Vevo
A 3-bit string is a string made up of 3 characters, each a O or a 1. Suppose you’d like to write out, in one string, all eight of the 3-bit strings in any convenient order.
For example, if you wrote out the 3-bit strings in the usual order starting with 000,001, 010,…, you could concatenate them together to get a length 3 times 8 = 24 24-string that started
000001010….
But you can get a shorter string containing all eight 3-bit strings by starting with 00010…. In which Now 000 is present as bits 1 through 3, and 001 is present as bits 2 through 4, and 010
is present as bits 3 through 5,….
+1
10
+0
11
+1
10
+0
11
+1
+0
+1
+0
00
01
+0
+1
1. Say a string is 3-kool if it contains every 3-bit string as 3 consecutive bits somewhere in it. Find a 3-kool string of length 10, and explain why this is the minimum length for any string
that is 3-kool.
2. Explain how any walk that includes every edge in the graph shown in Figure determines a string that is 3-kool. Find the walk in this graph that determines your 3-kool string from part
1.
3. Explain why a walk in the graph of Figure above that includes every every edge exactly once provides a minimum length 3-kool string.
4. The situation above generalizes to k >=2. Namely, for each k there is a digraph, Bk, such that the nodes are V(Bx)= {0,1}* and any walk through Ba that contains every edge
exactly once determines a minimum length, (k+1)-kool bit-string. What is this minimum length?
5. Define the transitions of Bk. Verify that the in-degree and out-degree of every vertex is even, and that there is a positive path from any vertex to any other vertex (including
itself) of length at most k.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Are you stuck with your online class?
Get help from our team of writers!