Question

Q11. [10, optional] The reverse of a string can be defined recursively as: AR = a, (wa) R = awR for all a e, wel*. Prove that

0 0
Add a comment Improve this question Transcribed image text
Answer #1

To proof it by mathematical induction, we have to show that the condition holds for p(0),taking p(n) is true, we have to proof that p(n+1) is also true..

here is the solution...

let, Size of a soe. lul=0 let, u=€ [Epsilon] CE (UV)* = (EVJR - VR - VER = VRUR um let, Size of Vire.lv1 = 0 let, v=€ & Cur=

is true. а also. 2 R. (aukar let, for (ulang the condition holds.ie. (UV) VER Then, we have to proof that for lul=ntl. the co

Cu w) R = cu vage R son is true] to Es true] ntl also, = a (urg [*: fway!.am] aurar [ we [ We took (uue ver a RVR UR [ar-a]

please leave a comment of you have any doubt, thank you...

Add a comment
Know the answer?
Add Answer to:
Q11. [10, optional] The reverse of a string can be defined recursively as: AR = a,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Asvanced Calculus 12. Consider A = R'. Ifu, v E A, the Hamming distance is defined...

    Asvanced Calculus 12. Consider A = R'. Ifu, v E A, the Hamming distance is defined by d(u, v) to be the number of coordinates in which they differ. For example if u = (0,1,2) and v = (0,5,6) then d(u, v) = 2 since the vectors differ in the 2nd and 3rd coordinate, but agree in the 1st. (a) Show that d(u, v) is a metric on A. (b) Let S be the subset of A consisting of the...

  • Prove using mathematical induction that for every positive integer n, = 1/i(i+1) = n/n+1. 2) Suppose...

    Prove using mathematical induction that for every positive integer n, = 1/i(i+1) = n/n+1. 2) Suppose r is a real number other than 1. Prove using mathematical induction that for every nonnegative integer n, = 1-r^n+1/1-r. 3) Prove using mathematical induction that for every nonnegative integer n, 1 + i+i! = (n+1)!. 4) Prove using mathematical induction that for every integer n>4, n!>2^n. 5) Prove using mathematical induction that for every positive integer n, 7 + 5 + 3 +.......

  • 11: I can identify the predicate being used in a proof by mathematical induction and use...

    11: I can identify the predicate being used in a proof by mathematical induction and use it to set up a framework of assumptions and conclusions for an induction proof. Below are three statements that can be proven by induction. You do not need to prove these statements! For each one clearly state the predicate involved; state what you would need to prove in the base case; clearly state the induction hypothesis in terms of the language of the proposition...

  • QUESTION 10 The equality relationon any set S is: A total ordering and a function with an inverse. An equivalence relation and also function with an inverse. A function with an inverse, and an equiva...

    QUESTION 10 The equality relationon any set S is: A total ordering and a function with an inverse. An equivalence relation and also function with an inverse. A function with an inverse, and an equivalence relation with as single equivalence class equal to S An equivalence relation and also a total ordering QUESTION 11 A binary operation on a set S, takes any two elements a,b E S and produces another element c e S. Examples of binary operations include...

  • Problem 3.3: For a string x € {0,1}*, let af denote the string obtained by changing...

    Problem 3.3: For a string x € {0,1}*, let af denote the string obtained by changing all 0's to l's and all l's to O's in x. Given a language L over the alphabet {0,1}, define FLIP-SUBSTR(L) = {uvFw: Uvw E L, U, V, w € {0, 1}*}. Prove that if L is regular, then FLIP-SUBSTR(L) is regular. (For example, (1011)F = 0100. If 1011011 e L, then 1000111 = 10(110) F11 € FLIP-SUBSTR(L). For another example, FLIP-SUBSTR(0*1*) = 0*1*0*1*.)...

  • 1. The motion of a vibrating string of length , with fixed endpoints, immersed in a fluid (such as air) can be mode...

    1. The motion of a vibrating string of length , with fixed endpoints, immersed in a fluid (such as air) can be modeled by -27- 0<r<T, t>0 (PI) u(0, t) = u(, t ) t20 0 is a damping term, modelling the effect of at where c,>0. The term proportional to air resistance on the string. (a) Explain why the damping term has a minus sign. (2 points) (4 points) (b) Consider the separable solutions to (P1), ie., those of...

  • only f and g please 1. The motion of a vibrating string of length T, with fixed endpoints, immersed in a fluid (suc...

    only f and g please 1. The motion of a vibrating string of length T, with fixed endpoints, immersed in a fluid (such as air) can be modeled by Fu 2&u 21 0rT t>0 at Ot2 (P1) u(0,t)u, t) 0 t20 Qu is a damping term, modelling the effect of at where c,>0. The term proportional to air resistance on the string. (a) Explain why the damping term has a minus sign (2 points) (4 points) (b) Consider the separable...

  • Here is my code to put a quote down, flip it, and reverse it. I do...

    Here is my code to put a quote down, flip it, and reverse it. I do not have much knowledge on coding. Does my code only use Variables, Console I/O, Java Program Design, Intro to IDEs, If Statements, Selection and Conditional Logic, Strings, Loops, Nesting, and Iteration? If not, could it be fixed to only use them? These are the offical steps of the assignment: - Ask a user to enter a quote - whether it's several sentences or a...

  • can you do 4.83 Ar- Q Sea 100 V, what does the gain become? age at...

    can you do 4.83 Ar- Q Sea 100 V, what does the gain become? age at the collector. (b) Replacing the transistor by its T model, da the small-signal equivalent circuit of the a plifier. Analyze the resulting circuit to dete mine the voltage gain t/ 04.81 Consider the CE amplifier circuit of Fig. 4.43(a). It is required to design the circuit (i.e., find values for I and Rc) to meet the following specifications: (a) R,5kn (b) the voltage gain...

  • (Re_x)_cr=5(10^5) au ar +0 ay au dy? Revie ди ar + =0 ду Water flows past...

    (Re_x)_cr=5(10^5) au ar +0 ay au dy? Revie ди ar + =0 ду Water flows past a flat plate of length L = 15 cm at U = 2 m/s. What is the disturbance thickness of the boundary layer at = 10 cm from the front of the plate? The properties of water are pw = 1000 kg/m” and Vw = 1x10-6 m/s Express your answer in mm to three significant figures. View Available Hint(s) 8 = 1.12 mm Submit...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT