One student suggested the following algorithm to test a string of a's and b's to see if
Question:
One student suggested the following algorithm to test a string of a's and b's to see if it is a word in S*. where S = {aa ba aba abaab}. Step 1, cross off the longest set of characters from the front of the string that is a word in S. Step 2, repeat step 1 until it is no longer possible. If what remains is the string A. the original string was a word in S*. If what remains is not A (this means some letters are left, but we cannot find a word in S at the beginning), the original string was not a word in S*. Find a string that disproves this algorithm.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 83% (6 reviews)
The string that disproves this algorithm is as follows i abaab The string i...View the full answer
Answered By
James Warinda
Hi! I’m James Otieno and I'm an experienced professional online tutor with countless hours of success in tutoring many subjects in different disciplines. Specifically, I have handled general management and general business as a tutor in Chegg, Help in Homework and Trans tutor accounts.
I believe that my experience has made me the perfect tutor for students of all ages, so I'm confident I can help you too with finding the solution to your problems. In addition, my approach is compatible with most educational methods and philosophies which means it will be easy for you to find a way in which we can work on things together. In addition, my long experience in the educational field has allowed me to develop a unique approach that is both productive and enjoyable.
I have tutored in course hero for quite some time and was among the top tutors awarded having high helpful rates and reviews. In addition, I have also been lucky enough to be nominated a finalist for the 2nd annual course hero award and the best tutor of the month in may 2022.
I will make sure that any student of yours will have an amazing time at learning with me, because I really care about helping people achieve their goals so if you don't have any worries or concerns whatsoever you should place your trust on me and let me help you get every single thing that you're looking for and more.
In my experience, I have observed that students tend to reach their potential in academics very easily when they are tutored by someone who is extremely dedicated to their academic career not just as a businessman but as a human being in general.
I have successfully tutored many students from different grades and from all sorts of backgrounds, so I'm confident I can help anyone find the solution to their problems and achieve
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Consider the following algorithm to remove all duplicates from an array: Sort the array. For each element in the array, look at its next neighbor to decide whether it is present more than once. If...
-
Implement the following algorithm to construct magic n n squares; it works only if n is odd. Set row = n - 1, column = n / 2. For k = 1 ... n * n Place k at [row][column]. Increment row and column....
-
Consider the following algorithm to sort the entries in a stack S1. First create two empty stacks, S2 and S3. Move the top of S1 to S2. Now, at any given time, stack S2 holds the entries in sorted...
-
A 1200-kg car has a maximum power output of 120hp. How steep a hill can it climb at a constant speed of 75km/h if the frictional forces add up to 650 N?
-
Using your answer to Exercise 5, draw an E-R diagram for the data entry form in Figure 4-35. Specify cardinalities. State your assumptions.
-
Assume we have an isolated link (not connected to any other link) such as a private network in a company. Do we still need addresses in both the network layer and the data-link layer? Explain.
-
List barriers to effective interpersonal communication and how to overcome them.
-
Using the 911 call data in Problem 5-27, forecast calls for weeks 2 through 25 using = 0.9. Which is best? (Again, assume that actual calls in week 25 were 85 and use an initial forecast of 50...
-
Suppose that Lil John Industries' equity is currently selling for $32 per share and that 2.5 million shares are outstanding. The firm also has 55,000 bonds outstanding, which are selling at 104...
-
Alice, Bob, Carol, the ABC Partnership, Franklin Corporation, and the Gleason Family Trust own shares of Holston Corporation's single class of stock as follows: The Holston shareholders have owned...
-
A language L 1 is smaller than another language L 2 if L 1 L 2 and L 1 L 2 Let T be any language closed under concatenation; that is, if t 1 T and t 2 T. then t 1 t 2 is also an element of T....
-
Let w be a string o f letters and let the language T be defined as adding w to the language S. Suppose further that T* = S*. (i) Is it necessarily true that w S? (ii) Is it necessarily true that w ...
-
A sprinter accelerates from rest. Is the work done on the sprinter positive, negative, or zero? Explain.
-
Allison, Inc., produces two products, X and Y, in a single joint process. Last month the joint costs were P75,000 when 10,000 units of Product X and 15,000 units of Product Y were produced....
-
8+0.5 = 4. Consider a system with a lead compensator Ge(s) = +0.13 followed by a plant G(s) = 10 Determine a value for a gain K on the error signal such that the phase margin s(s+1) of the open-loop...
-
Standard Normal Distribution. In Exercises 17-36, assume that a randomly selected subject is given a bone density test. Those test scores are normally distributed with a mean of 0 and a standard...
-
After making several improvements in the east process, you now want to put controls in place to detect new problems if they occur. To help with this, the workers collected a sample of 5 capsules each...
-
Help es ! Required information The box shown has cardboard sides and wood strips along the edges and from corner to corner. The strength of the box is provided primarily by the wood strips, and a...
-
Find the exact value, if any, of each composite function. If there is no value, say it is not defined. Do not use a calculator. sin -1 [sin(-8/9)]
-
A Firm intends to invest some capital for a period of 15 years; the Firm's Management considers three Options, each consisting of purchasing a machinery of a specific brand, different for each...
-
Assume that we would like to expand the MIPS register file to 128 registers and expand the instruction set to contain four times as many instructions. 1. How this would this affect the size of each...
-
Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register $t0 and uses the value of this field to replace bits 31 down to 26 in register $t1 without changing the...
-
Provide a minimal set of MIPS instructions that may be used to implement the following pseudoinstruction: not $t1, $t2 // bit-wise invert
-
How do external factors such as changing consumer preferences affect the retail industry?"
-
Production costs that are not attached to units that are sold are reported as: Cost of goods sold Selling expenses Administrative costs Inventory
-
Please show workings :) Oxford Company has limited funds available for investment and must ration the funds among four competing projects. Selected information on the four projects follows: Life of...
Study smarter with the SolutionInn App