4. There are two circles, let's call them L and R. You are standing in circle...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. There are two circles, let's call them L and R. You are standing in circle L. Someone calls out a string of letters, each of which is either a or b. Whenever you hear a you stay in or move to L. Whenever you hear b you move to the circle you are not standing in. Let S be the set of all finite strings containing only as and/or bs, which we'll consider to be defined structurally as follows: • ε € S (recall from a previous course that ɛ is often used to refer to the empty string). • If se S then sa and sb are in S (recall from a previous course, and the lecture(s) on structurally-defined expressions, that we put two strings beside each other to mean concatenation, and usually leave out quotes for literal strings if there's no ambiguity). If you have any trouble with this question, do the following first. In particular, before asking about this question on the bulletin board or in office hours, make sure you have done this "warmup" first-and feel free to ask about it: • Write out a good set of examples/test cases illustrating the kinds of elements that are in S. In particular, include boundary/extreme/special cases. There are an infinite number of elements, so as usual for example/test cases you want to illustrate the "variety" of possibilities. But what "variety" means can depend a lot on what you are doing with the elements of S so as you explore the problem consider whether to extend your set of illustrative elements. • For each of your examples, determine which circle you end up in. (a) Give a brief non-recursive (i.e., it should not reference the character-by-character process) single- sentence English description to decide whether a string from S causes you to end up in circle L. (b) Prove, by Structural Induction on S, your claim from part (a). Depending on how you phrased your claim, adding something like “and if not then it makes you end up in R” (if that's not already explicit) will likely help. 4. There are two circles, let's call them L and R. You are standing in circle L. Someone calls out a string of letters, each of which is either a or b. Whenever you hear a you stay in or move to L. Whenever you hear b you move to the circle you are not standing in. Let S be the set of all finite strings containing only as and/or bs, which we'll consider to be defined structurally as follows: • ε € S (recall from a previous course that ɛ is often used to refer to the empty string). • If se S then sa and sb are in S (recall from a previous course, and the lecture(s) on structurally-defined expressions, that we put two strings beside each other to mean concatenation, and usually leave out quotes for literal strings if there's no ambiguity). If you have any trouble with this question, do the following first. In particular, before asking about this question on the bulletin board or in office hours, make sure you have done this "warmup" first-and feel free to ask about it: • Write out a good set of examples/test cases illustrating the kinds of elements that are in S. In particular, include boundary/extreme/special cases. There are an infinite number of elements, so as usual for example/test cases you want to illustrate the "variety" of possibilities. But what "variety" means can depend a lot on what you are doing with the elements of S so as you explore the problem consider whether to extend your set of illustrative elements. • For each of your examples, determine which circle you end up in. (a) Give a brief non-recursive (i.e., it should not reference the character-by-character process) single- sentence English description to decide whether a string from S causes you to end up in circle L. (b) Prove, by Structural Induction on S, your claim from part (a). Depending on how you phrased your claim, adding something like “and if not then it makes you end up in R” (if that's not already explicit) will likely help.
Expert Answer:
Answer rating: 100% (QA)
a A string from S causes you to end up in circle L if and only if the number o... View the full answer
Related Book For
Foundations of Financial Management
ISBN: 978-1259024979
10th Canadian edition
Authors: Stanley Block, Geoffrey Hirt, Bartley Danielsen, Doug Short, Michael Perretta
Posted Date:
Students also viewed these programming questions
-
Provide an example of an ethical decision or issue that may arise in your profession. Explain how the code of ethics could be used to provide guidance regarding the decision or issue. End with an...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Will the Canadian Galaxy Digital Holdings stock reach $2000 per share in the future? How many years will it take to reach $2000 per share in the future? Explain why you as a course hero tutor...
-
Water is pumped in through the bottom of the tank in Exercise 19. How much work is done to fill the tank (a) To a depth of 2 feet? (b) From a depth of 4 feet to a depth of 6 feet? Data from in...
-
List the requirements for mutual exclusion.
-
Discuss ways in which the priority inversion problem could be addressed in a real time system. Also discuss whether the solutions could be implemented within the context of a proportional share...
-
True or False: When checking for soft foot on a large, heavy machine resting on I-beam rails, it is always advisable to use the one-foot-at-atime method called for by the laser equipment manual.
-
For the past several years, Derrick Epstein has operated a part-time consulting business from his home. As of June 1, 2008, Derrick decided to move to rented quarters and to operate the business,...
-
Sara was a TV host under contract to Program A. Sara's contract with Program A contained negative covenants to the effect that she would not act as a presenter for anyone else. She breached her...
-
Isorait Co is a company which installs kitchens and bathrooms to customer specifications. It is planning to invest KShs. 4,000,000 in a new facility to convert vans and trucks into motorhomes. Each...
-
Explain the importance of international business education. (15 mks)
-
Hence, When analyzing these ratios, it's essential to compare them to industry benchmarks or historical data to identify trends and areas for improvement. Ratios provide a comprehensive view of the...
-
Assume you are a visitor from another planet who is viewing mass media in America for the first time. Explain what would you learn or infer our culture from what you see. Identify what you would see...
-
The post-COVID-19 world is different from that before 2019. Businesses have to adapt to the new normal. Processes that are implemented during the pandemic have to be dismantled. Customers' behaviors...
-
Scores are obtained from the Law School Admission Test (LSAT) are normally distributed with a mean score of 550 and a standard deviation of 110. If a test score is selected at random, find the...
-
How would you describe the conflicts in one of your relationships in terms of conflict management styles? Does this style change when you are in conflict with a different person? Why or why not?
-
The entropy change in a certain expansion process is 5.2 kJ/K. The air is initially at 80 kPa and 27C and 4 m volume, achieves a final temperature of 127C. The final volume of gas is 3 (a) 254 m (c)...
-
One of the significant and relevant accounts for this cycle is equipment. For this account, what would typically be the most relevant assertions for the auditor to consider? Why is it important for...
-
The Adams Corporation makes standard-size 2-inch fasteners , which it sells for $155 per thousand. Mr. Adams is the majority owner and manages the inventory and finances of the company. He estimates...
-
Adjust the annual formula for a future value of a single amount at 12 percent for 10 years to a semiannual compounding formula. What are the interest factors (FVIF) before and after? Why are they...
-
In the previous problem, if there is no increase in sales and all other facts remain the same, what would be Eli's ending cash balance? What observation can be reached from these two problems? Show...
-
(a) Show that the variancecovariance matrix of the disturbances in (9.1) is given by (9.2). (b) Show that the two nonzero block matrices in (9.2) can be written as in (9.3). (c) Show that...
-
Using the Harrison and Rubinfeld (1978) data published in Belsley, Kuh and Welsch (1980) and provided on the Springer website as Hedonic.xls, reproduce Table 9.1. Perform the Hausman test based on...
-
Using the Monte Carlo setup for the unbalanced one-way error component model considered by Baltagi and Chang (1994), compare the various estimators of the variance components and the regression...
Study smarter with the SolutionInn App