We want to count the number of distinct paths from node s to node t in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We want to count the number of distinct paths from node s to node t in the following directed graph. O O O O O O O O O O O O ΤΟ FO +0 O O その O O O O O O FO O O O O CO O O *0 O O The following figure shows three distinct paths from s to t. A path from s to t consists of exactly 12 edges. Both the blue path and the red path shown in the figure go through the vertex g. The green path does not go through the vertex g. Two paths are equal if and only if they both use the exact same 12 edges, and they are distinct otherwise. The three paths shown are thus distinct. Q O O CO O O a O O O O O O O O O 2. Binomials (3 points) 1. We have n distinct objects, some of which we are distributing among Alice, Bob, and Charlie. Out of these n objects, we give a objects to Alice, b objects to Bob, and c objects to Charlie. Give n, a, b, and c such that the number of ways we can do this is equal to 600 Show your calculations and justify your answer. (Hint: Systematic methods exist. Brute-force methods can be resorted to by expanding the expression.) n = a= 3. Algorithmic counting (6 points) C= 1. Let T be the set of strings of length 13 over the alphabet {a, b, c). E.g. the string aaabbbbccabcb is in T. Let S be the subset of strings in T that simultaneously satisfy all of the following three constraints: (1) no two a symbols can be next to each other, (2) no two b symbols can be next to each other, and (3) no two c symbols can be next to each other. That is, a string x T is in S if none of the three strings aa, bb, and cc are a substring of x. How many strings are there in S? Show your calculations and explain your answer. 2. Let B = {0, 1}14 be the set of bit-strings of length 14. Let C be the subset of bit-strings in B for which no two zeros are next to each other. E.g. the two strings 11111111111111 and 10110111110101 are in C. The string 10110110001100 is not in C since it contains 00 as a substring. Beeblebrox correctly claims that the size of C is given 13 (15) + (14) + (23³) + (12) + (44) + (3) + + Argue that Beeblebrox's claim is true. We want to count the number of distinct paths from node s to node t in the following directed graph. O O O O O O O O O O O O ΤΟ FO +0 O O その O O O O O O FO O O O O CO O O *0 O O The following figure shows three distinct paths from s to t. A path from s to t consists of exactly 12 edges. Both the blue path and the red path shown in the figure go through the vertex g. The green path does not go through the vertex g. Two paths are equal if and only if they both use the exact same 12 edges, and they are distinct otherwise. The three paths shown are thus distinct. Q O O CO O O a O O O O O O O O O 2. Binomials (3 points) 1. We have n distinct objects, some of which we are distributing among Alice, Bob, and Charlie. Out of these n objects, we give a objects to Alice, b objects to Bob, and c objects to Charlie. Give n, a, b, and c such that the number of ways we can do this is equal to 600 Show your calculations and justify your answer. (Hint: Systematic methods exist. Brute-force methods can be resorted to by expanding the expression.) n = a= 3. Algorithmic counting (6 points) C= 1. Let T be the set of strings of length 13 over the alphabet {a, b, c). E.g. the string aaabbbbccabcb is in T. Let S be the subset of strings in T that simultaneously satisfy all of the following three constraints: (1) no two a symbols can be next to each other, (2) no two b symbols can be next to each other, and (3) no two c symbols can be next to each other. That is, a string x T is in S if none of the three strings aa, bb, and cc are a substring of x. How many strings are there in S? Show your calculations and explain your answer. 2. Let B = {0, 1}14 be the set of bit-strings of length 14. Let C be the subset of bit-strings in B for which no two zeros are next to each other. E.g. the two strings 11111111111111 and 10110111110101 are in C. The string 10110110001100 is not in C since it contains 00 as a substring. Beeblebrox correctly claims that the size of C is given 13 (15) + (14) + (23³) + (12) + (44) + (3) + + Argue that Beeblebrox's claim is true.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these accounting questions
-
Bob plans to retire in 20 years. By then he hopes that his savings are equivalent to $1,000,000 today. Assuming annual inflation of 3% and investment returns of 7%: a. How much does Bob need to have...
-
1. What is Brads financial planning life stage? With respect to his current financial position what are some of the things Brad should be considering? 2. What are Brads major goals? Evaluate his...
-
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...
-
What is a time series? Explain the four characteristics that time series may exhibit and provide some practical examples.
-
(a) Given the joint characteristic function of a pair of random variables, X, Y (1, 2). How do we get a marginal characteristic function of one of the random variables, say, X () from the joint...
-
Calculate the 2016 tax liability and the tax or refund due for each situation: a. Mark is single with no dependents and has a taxable income of $60,000. He has $10,700 withheld from his salary for...
-
From the following trial balance and notes relating to Betta Buys, prepare an income statement for the year to 28 February 2010, and a balance sheet as at that date. 3 W Dr 34 Cr Bank 960 Cash 250...
-
Dingel Corporation has contracted with you to prepare a statement of cash flows. The controller has provided the following information. Additional data related to 2010 are as follows. 1. Equipment...
-
12. Harrison loaned his friend Mattson $100 for one year at a simple interest rate of 5%. The total amount of money that Mattson will pay back at the end of the year is a. $5.00 b. $100.00 c. $105.00...
-
What Is Big Data, And What Opportunities And Challenges Does It Provide For Marketers? (AACSB: Communication: Reflective Thinking) 4-2 Explain How Marketing Intelligence Differs From Marketing...
-
Superior Company provided the following data for the year ended December 31 (all raw materials are used in production as direct materials): Selling expenses Purchases of raw materials Direct labor...
-
Hitech Ltd plans to raise $5 million for a business expansion. The company plans to sell shares that will pay a dividend of $3 in one year. The dividend will then grow at an annual rate of 20% for 2...
-
Wedd Corporation uses activity-based costing to assign overhead costs to products. Overhead costs have already been allocated to the company's three activity cost pools as follows: Processing,...
-
Dipaola Corporation has provided the following data concerning last month's operations. Purchases of raw materials Indirect materials included in manufacturing overhead Direct labor cost...
-
Let 12 4 -10 3 0 2 6 1 A -2 0 13 6 -4 30 0 13J -1 2 3 0 4 8 -1 B = 0 0 3 2 0 0 0 7. b = 310 3 Q1: Show A-1 in terms of the matrices involved in the Gaussian elimination process.
-
What do you understand by the "historic-trade-off" of Meredith's Report? What are its pros and cons for employees?
-
In each of the following independent cases, document the system using whatever technique(s) your instructor specifies. a. Dreambox Creations (www.dreamboxcreations.com/) in Diamond Bar, California,...
-
The Enormous Electrical Company Ltd (EE) was formed in March 19X8 by the merger of two smaller companies. It retails household electrical appliances of all kinds through a chain of thirty shops which...
-
Esparto Ltd (E) is a paper and cardboard manufacturing company whose year-end is 31 March 1989. The auditors are visiting the company early in January 1989 in order to plan their audit approach for...
-
Luca and Co. are the auditors of Softdream Limited, which owns a frozen food warehouse and a chain of three retail outlets in the town of Glory. The warehouse supplies a wide range of frozen foods to...
Study smarter with the SolutionInn App