1. Pairs of integers a. Consider a set S = {(a, b) = Z x Z|a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Pairs of integers a. Consider a set S = {(a, b) = Z²⁰ x Z²º|a + b is divisible by 3 and a ≤ b}. Write all elements of this set S for which a + b < 10. b. Give a recursive definition (by specifying its basis and recursion) of this set S (that is, the set of pairs of nonnegative integers with first no larger than second and their sum divisible by 3, where a + b is not bounded). 2. Binary strings with same number of 0s and 1s. a. Give a recursive definition of a set S of all binary strings that have the same number of Os and 1s. Hint: in particular, the following strings have the same number of 0s and 1s: the empty string A, the string 000111 and the string 10100011. Check that your recursive definition can generate all of them. b. Give an example of a string that can be put into S by two different sequences of applications of your recursive definition rules. c. Now show, using structural induction on your recursive definition, that every string in your set has even number of symbols. 1. Pairs of integers a. Consider a set S = {(a, b) = Z²⁰ x Z²º|a + b is divisible by 3 and a ≤ b}. Write all elements of this set S for which a + b < 10. b. Give a recursive definition (by specifying its basis and recursion) of this set S (that is, the set of pairs of nonnegative integers with first no larger than second and their sum divisible by 3, where a + b is not bounded). 2. Binary strings with same number of 0s and 1s. a. Give a recursive definition of a set S of all binary strings that have the same number of Os and 1s. Hint: in particular, the following strings have the same number of 0s and 1s: the empty string A, the string 000111 and the string 10100011. Check that your recursive definition can generate all of them. b. Give an example of a string that can be put into S by two different sequences of applications of your recursive definition rules. c. Now show, using structural induction on your recursive definition, that every string in your set has even number of symbols.
Expert Answer:
Answer rating: 100% (QA)
Q1 a Given that consider a set S ab Z 0 Z 0 ab is divisible by 3 and a b write all elements of set S ... View the full answer
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these mathematics questions
-
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...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Prove the famous (your name) uncertainty principle, relating the uncertainty in position (A = x) to the uncertainty in energy For stationary states this doesnt tell you muchwhy not? (B = p/2m + V):
-
Explain procedures for collecting accounting evidence.
-
The unadjusted trial balance of Good Times, Inc., at January 31, 20X6, does not balance. In addition, the trial balance needs to be adjusted before the financial statements at January 31, 20X6 can be...
-
Apex Accounting, Inc., has cash of \($2,000\), supplies costing \($800\), and stockholders equity of \($1,300\). Determine the liabilities of the business. Write the accounting equation for Apex...
-
Assume today's settlement price on a CME EUR futures contract is $1.3140/EUR. You have a short position in one contract. Your performance bond account currently has a balance of $1,700. The next...
-
Anzac Corporation issued preference shares 8 years ago at a par value of $10.00 per share. If preference shares are paying $1.36 in dividends per year and the current market price is $10.16, what is...
-
Top Quality Appliance-Long Beach has just purchased a franchise from Top Quality Appliance (TQA). TQA is a manufacturer of kitchen appliances. TQA markets its products via retail stores that are...
-
How much heat is required to heat 1 0 . 0 g of ice at - 5 . 0 0 oC to become liquid water at + 7 . 0 0 oC ? In this temperature range, the heat capacity of H O ( s ) is 3 7 . 7 J / mol * K , and the...
-
Solve the following in quality, write down the answer and interval notation 8 x < - 6 x - 2 8
-
The polynomial p(2) +7-36 has a known factor of (+3). Rewrite p(ar) as a product of linear factors. p(r)-
-
Describe the importance of Vocal and Physical delivery. Public communication
-
How does the dynamic viscosity of a non-Newtonian fluid, characterized by its dependence on shear rate and time, influence the flow behavior and resistance within complex geometries, and what...
-
QUESTION 8 Year 2 Year 1 For the year ended December 31 $8,500 $6,500 Revenues Expenses Net Income 5,500 4,000 At December 31 Year 2 Year 1 Assets $15,500 $9,000 Liabilities Stock Retained Earnings...
-
In mechanical drawings, a_________ provides a view of an object as though it had been cut along some imaginary plane. Group of answer choices front elevation ground plan sectional drawing rear...
-
A consumer magazine is evaluating five brands of trash compactors for their effectiveness in reducing the volume of typical household products that are discarded. In the experiment, each block...
-
Show that the set of odd natural numbers is countable.
-
Show the data structure that results and the answers returned by the FIND-SET operations in the following program. Use the linked-list representation with the weighted-union heuristic. Assume that if...
-
Professor Dante reasons that because node ranks increase strictly along a simple path to the root, node levels must monotonically increase along the path. In other words, if x.rank > 0 and x.p is not...
-
What is the purpose of tests of controls?
-
Why are some tests of controls performed during the interim period?
-
What four factors should the auditor consider in deciding what evidence, if any, needs to be obtained during the period from the interim date to the balance sheet date?
Study smarter with the SolutionInn App