1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anna007 [38]
3 years ago
13

Consider the following inductive definition of an approved bit string of 0's and 1's.Foundation: The bit string 0 is an approved

bit string.Constructor: If s and t are approved bit strings, then so are 1s1 and s0t.Use structural induction to show that every approved bit string consists of an odd number of 0's and an even number of 1's. Make sure to indicate what P(n) is (i.e., the predicate you are proving holds true for all natural numbers n).
Mathematics
1 answer:
Alinara [238K]3 years ago
3 0

As for every proof by induction, we start with the base case: the string '0' consists of an odd number of 0's and an even number of 1's, because there is one 0 and there are no 1s (and zero is even).

Now, if we let n represent the number of iterations, we have that the initial string '0' is the 0-th iteration. So, P(n) is the claim "the string built with the n-th iteration consist of an odd number of 0's and an even number of 1's", and we have just proven P(0).

Once the base case is proven, we can assume that all proposition from P(0) to P(n-1) are true.

We can build the n-th iteration in two ways:

CASE 1: The n-th iteration is in the form 1s1.

Since s is a string obtained at some previous iteration, we can assume that is consists of an odd number of 0's (say s_0) and an even number of 1's (say s_1). The string '1s1' has the following numbers of zeroes and ones:

  • Zeroes: s_0
  • Ones: s_1+2

In fact, starting from s, we only added two 1's (at the beginning and the end). So, '1s1' also has an odd number of 0's (because s_0 is odd) and an even number of 1's (because s_1+2 is the sum of two even numbers).

CASE 2: The n-th iteration is in the form s0t.

Since s and t are strings obtained at some previous iteration, we can assume that they consist of an odd number of 0's (say s_0,\ t_0) and an even number of 1's (say s_1,\ t_1).

Now, how many 0's and 1's are there in the string 's0t'?

  • Zeroes: s_0+t_0+1
  • Ones: s_1+t_1

In fact, starting from s and t, we only added one 0 (between the two original strings). So, 's0t' also has an odd number of 0's (because s_0+t_0+1 is the sum of three odd numbers, and thus odd) and an even number of 1's (because s_1+t_1 is the sum of two even numbers, and thus even).

You might be interested in
. Suppose that the times required for a cable company to fix cable problems in its customers' homes are uniformly distributed be
SCORPION-xisa [38]

The probability that a randomly selected cable repair visit will take at least 43 minutes will be 88%.

Given: The times required for a cable company to fix cable problems in its customers' homes are uniformly distributed between 40 minutes and 65 minutes.

It can be deduced that the probability that a randomly selected cable repair visit will take at least 43 minutes will be calculated thus:

= 1 - [(43 - 40)/(65 - 40)

= 1 - 0.12

= 0.88

Hence, The probability that a randomly selected cable repair visit will take at least 43 minutes will be 88%.

Learn more about probability here brainly.com/question/6354635

#SPJ4

8 0
2 years ago
Xy - 11 = 5 show the direct variation expalin your reasoning
Vedmedyk [2.9K]
Hey there, Lets solve this one by one 

Firstly, a<span>dd </span>11<span> to both sides 

</span>xy=5+11 
<span>
Now, </span><span>Simplify </span><span>5+11</span><span> to </span><span>16 

</span>xy=16 
<span>
Finally, d</span><span>ivide both sides by variable </span><span>y 

</span>x = 16 /y<span>
</span>
5 0
4 years ago
A lab technician cuts a 15 in piece of glass tubing into two pieces. One piece is 7 in longer than the other. How long are the​
zysi [14]

Answer:

2.1 in

Step-by-step explanation:

I only wrote the expression 7n = 15. Then figured it out from there. I ended up with n = 2.1

I'm sorry if this doesn't help. I tried my best to solve it. Hope this leads you to the right answer ^^

8 0
2 years ago
Can any one help me solve this ?
Neko [114]
The answer to your question is 12b^2
Because 3-12 is -9 pal :)
3 0
3 years ago
Please help ASAP give you 20 points and brainiest
GuDViN [60]

Answer:

Total charge= -25

Step-by-step explanation:

Given :

Charges of some ions

Aluminium    +3

Phosphate     -3

Chloride         -1

Silver               +1

To find total charge on 8 phosphate,7 chloride and 2 Aluminium atoms

Aluminium    +3 × 2 =+6

Phosphate     -3 × 8 = -24

Chloride         -1 × 7 = -7

total charge=

+6-24-7 =+6 -31

= -25

6 0
4 years ago
Other questions:
  • Use the model below to calculate 9 ÷ 1 3 please help.<br>9/3<br>3/9<br>13 1/2<br>27
    15·1 answer
  • Daphne gave away three more than half of her apples. she gave away 17 apples in all. how many apples did daphne have
    12·1 answer
  • Last year, 150 students used tablet computers at Luz's school.
    12·2 answers
  • Plz hurry
    14·1 answer
  • Ten times the sum of a number and 9
    13·2 answers
  • The​ cost, in​ dollars, of producing x belts is given by Upper C (x )equals 594 plus 10 x minus 0.067 x squared. Find the rate a
    10·1 answer
  • It is 1/2 mile from the students home to a store and back. In a week, she walked to the store and back home 1 time. In the same
    15·2 answers
  • You must be at least 42 inches tall to ride the bumper cars at an amusement park. Write an inequality that represents this situa
    5·1 answer
  • Whats the answer for y=-<img src="https://tex.z-dn.net/?f=%5Cfrac%7B2%7D%7B3%7D" id="TexFormula1" title="\frac{2}{3}" alt="\frac
    10·1 answer
  • 5. write an equation for the table of values. explain how you got your answer
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!