2. Let L be the set of all finite strings over A = {a,b} and let...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Let L be the set of all finite strings over A = {a,b} and let R be the following binary relation on L (num(a, x) denotes the number of occurrences of a in the string x): xRy num(a, x) = num(a, y) ^ num(b, x) = num(b, y). Observe that R is an equivalence relation on L. (a) What is the number of strings in the equivalence class which contains ababa? Explain why. (b) What is the number of equivalence classes of R which contain strings of length k? Explain why. (c) Are there any equivalence classes which contain just one string? If the answer is YES, give the number of such classes and provide some examples; if it is NO, explain why all equivalence classes contain more than one string. 2. Let L be the set of all finite strings over A = {a,b} and let R be the following binary relation on L (num(a, x) denotes the number of occurrences of a in the string x): xRy num(a, x) = num(a, y) ^ num(b, x) = num(b, y). Observe that R is an equivalence relation on L. (a) What is the number of strings in the equivalence class which contains ababa? Explain why. (b) What is the number of equivalence classes of R which contain strings of length k? Explain why. (c) Are there any equivalence classes which contain just one string? If the answer is YES, give the number of such classes and provide some examples; if it is NO, explain why all equivalence classes contain more than one string.
Expert Answer:
Answer rating: 100% (QA)
1 Sure I can help you with this problem a What is the number of strings in the equivalence class which contains ababa Explain why The number of string... View the full answer
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date:
Students also viewed these programming questions
-
re Regular Languages and Finite Automata (a) Let L be the set of all strings over the alphabet {a, b} that end in a and do not contain the substring bb. Describe a deterministic finite automaton...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
The adjusted trial balance of Silver Sign Company follows: Requirements 1. Assume Silver Sign Company has a January 31 year end. Journalize Silvers closing entries at January 31. 2. How much net...
-
Carolina Atlantic sells specialty paper to commercial clients. The paper can be produced at zero marginal cost. Some clients are intensive users who are price-sensitive; their demands are given by P...
-
Give names that include (R) and (S) designations for your answers to Practice Problem 5.22. In problem 5.22 (a) (b) (c) (d) (e) (f) CI Cl OH OH Cl Cl OH CI OH OH Tartaric acid
-
CGI Federal, Inc., is a corporation that provides a number of services to the United States Passport Agency, included the processing of passport application. Passport applicants must submit sensitive...
-
Degelman Company uses a job order cost system and applies overhead to production on the basis of direct labor costs. On January 1, 2014, Job No. 50 was the only job in process. The costs incurred...
-
Data Input Box: Number of mortgages in initial pool 500 Average mortgage balance $300,000 Initial mortgage pool balance $150,000,000 Prepayment rate 7.50% Mortgage rate 4.50% Servicing and Guarantee...
-
Perhaps more surprising to Mr. Pitkin was a proposal by the VP of Marketing to make a major investment in market share by increasing promotional expenditures by $2.5 million during 1998-2000. Sales...
-
Suppose you own a gas station and the only other gas station in town is across the street from your gas station. Explain in general terms the two outcomes that you might expect to happen in other...
-
What role does innovation play in the strategic planning process, and how can organizations cultivate a culture of innovation to drive continuous improvement and competitive advantage in dynamic...
-
How do advanced organizational theories conceptualize delegation as a mechanism for promoting adaptability, innovation, and resilience in the face of evolving challenges ?
-
What is a market surplus? How does it differ from a consumer surplus? List and explain three factors that shift the demand curve. Give an example of each.
-
Briefly analyze Zipcar from a POCD (People-Opportunity-Context-Deal) perspective. 2. Using the May 2000 projections, what are Zipcar's unit economics? Specifically, what is their cost structure in...
-
Over the past two weeks, we've taken a brief look at how the structure of the marketplace impacts the profit maximizing behaviour of the firm or firms operating within that structure. This week's...
-
Using a spring-mass-damper schematic, explain the basic working of a seismic instrument.
-
Experiment: Tossing four coins Event: Getting three heads Identify the sample space of the probability experiment and determine the number of outcomes in the event. Draw a tree diagram when...
-
Let A = {0, 2, 4, 6, 8, 10}, B = {0, 1, 2, 3, 4, 5, 6}, and C = {4, 5, 6, 7, 8, 9, 10}. Find a) A B C. b) A B C. c) (A B) C. d) (A B) C.
-
Draw the directed graph of the reflexive closure of the relations with the directed graph shown. 1. 2. b d
-
How many of the 16 different relations on {0, 1} contain the pair (0, 1)?
-
In a steam power plant, coal is burned at the rate of 50 lbm/min. The percentage of ash in the coal is 9% by mass. The combustion of coal takes place in a fluidized bed reactor and the ash in the...
-
2-Mercaptoethanol (C 2 H 6 OS) is produced by reacting ethylene oxide (C 2 H 4 O) with hydrogen sulfide (H 2 S) as per the following reaction equation. The reaction takes place in the presence of...
-
Chlorobenzene is produced by direct chlorination of benzene. However, a parallel reaction that produces dichlorobenzene hexachloride also occurs. The parallel reactions are shown here. The single...
Study smarter with the SolutionInn App