1. Below are four graphs, each of which is defined by the sets of nodes, initial...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Below are four graphs, each of which is defined by the sets of nodes, initial nodes, final nodes, edges, and defs and uses. Each graph also contains some test paths. Answer the following questions about each graph. Graph II. N= {1, 2, 3, 4, 5, 6} No = {1} N = {6} E=((1,2), (2,3), (2.6), (3,4), (3,5), (4,5), (5,2)) def(1) = def (3) use(3) = use(6) = {z} // Assume the use of x in 3 precedes the def Test Paths: t1 = [1, 2, 6] 12 13 [1, 2, 3, 4, 5, 2, 3, 5, 2, 6] 1, 2, 3, 5, 2, 3, 4, 5, 2, 6] 14 [1, 2, 3, 5, 2, 6] Graph III. N (1, 2, 3, 4, 5, 6} No = {1} Ny = {6} = {(1,2), (2,3), (3,4), (3,5), (4,5), (5,2), (2,6)} def(1) = def(4) = use(3) = use (5) = use(6) = {x} Test Paths: t = [1, 2, 3, 5, 2, 6] 12 [1, 2, 3, 4, 5, 2, 6] (a) Draw the graph. (b) List all of the du-paths with respect to r. (Note: Include all-du-paths, even those that are subpaths of some other du-path). (c) Determine which du-paths each test path tours. Write them in a table with test paths in the first column and the du-paths they cover in the second column. For this part of the exercise, you should consider both direct touring and sidetrips. (d) List a minimal test set that satisfies all defs coverage with respect to r. (Direct tours only.) Use the given test paths. (e) List a minimal test set that satisfies all uses coverage with respect to r. (Direct tours only.) Use the given test paths. (f) List a minimal test set that satisfies all-du-paths coverage with respect to x. (Direct tours only.) Use the given test paths. 1. Below are four graphs, each of which is defined by the sets of nodes, initial nodes, final nodes, edges, and defs and uses. Each graph also contains some test paths. Answer the following questions about each graph. Graph II. N= {1, 2, 3, 4, 5, 6} No = {1} N = {6} E=((1,2), (2,3), (2.6), (3,4), (3,5), (4,5), (5,2)) def(1) = def (3) use(3) = use(6) = {z} // Assume the use of x in 3 precedes the def Test Paths: t1 = [1, 2, 6] 12 13 [1, 2, 3, 4, 5, 2, 3, 5, 2, 6] 1, 2, 3, 5, 2, 3, 4, 5, 2, 6] 14 [1, 2, 3, 5, 2, 6] Graph III. N (1, 2, 3, 4, 5, 6} No = {1} Ny = {6} = {(1,2), (2,3), (3,4), (3,5), (4,5), (5,2), (2,6)} def(1) = def(4) = use(3) = use (5) = use(6) = {x} Test Paths: t = [1, 2, 3, 5, 2, 6] 12 [1, 2, 3, 4, 5, 2, 6] (a) Draw the graph. (b) List all of the du-paths with respect to r. (Note: Include all-du-paths, even those that are subpaths of some other du-path). (c) Determine which du-paths each test path tours. Write them in a table with test paths in the first column and the du-paths they cover in the second column. For this part of the exercise, you should consider both direct touring and sidetrips. (d) List a minimal test set that satisfies all defs coverage with respect to r. (Direct tours only.) Use the given test paths. (e) List a minimal test set that satisfies all uses coverage with respect to r. (Direct tours only.) Use the given test paths. (f) List a minimal test set that satisfies all-du-paths coverage with respect to x. (Direct tours only.) Use the given test paths.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
A nurse researcher is assessing how well patients respond to two different dosing regimens of a new drug approved to treat diabetic neuropathy. Two different dosing regimens are administered, and...
-
A nurse researcher is assessing how well patients respond to two different dosing regimens of a new drug approved to treat diabetic neuropathy. Two different dosing regimens are administered, and...
-
The object is used to execute a static Oracle query, but the object is used to execute a dynamic Oracle query with IN and OUT parameters. a. PreparedStatement, Statement b. Statement,...
-
Consider the measure space ((, B, μ) where μ (finite interval) Then, by means of an example, show that Fc need not be left-continuous. c + ((0, x]) x > 0, c ((x, 0]) x <...
-
What is the annual employee maximum for the Qu bec Employment Insurance premium?
-
Water flows through a constant diameter pipe with a uniform velocity given by \(\mathbf{V}=(8 / t+5) \hat{\mathbf{j}} \mathrm{m} / \mathrm{s}\), where \(t\) is in seconds. Determine the acceleration...
-
1. List 10 mistakes that Mike made with respect to customer relations and management of his business. 2. For each business error, identify why it was a mistake. For example, poor customer relations,...
-
Cost Accounting incl. Full vs. Variable Costing; Budgeting & Financial Planning 1. What is the impact of volume changes in planned capacity on overhead surcharges? How are planned capacity and...
-
A vehicle with a mass of 1 . 5 tons weighs 5 0 0 kg on the front axle while stopping, L equals 3 3 meters and h equals 6 4 cm . The driver presses the brakes and the vehicle slows down to a speed of...
-
What is the difference between a closed society and an open society? Is the United States a closed or an open society? What about Japan, the historic Soviet Union, and Great Britain?
-
Suppose Techoland and Cornsylvania form a currency union and adopt the electrocarrot as their common currency. Now suppose again that there is an increase in demand for electronic goods in both...
-
Why is H. erectus the first hominin to move out of the African continent and colonize the Old World?
-
In the face of a financial crisis such as that created by the dot.com collapse and the 9/11 terrorist attacks in the US, why would a central bank have responded by lowering interest rates and...
-
How has industrialization affected the family, kinship, marriage, and divorce?
-
Give the formulas for the following ionic compounds a) Potassium Iodide b) Cobalt (II) Chloride c) Chromium (III) Hydroxide
-
Express these numbers in standard notation. a. 2.87 10-8 b. 1.78 1011 c. 1.381 10-23
-
Nestls financial statements are presented in Appendix B. Financial statements of Delfi Limited are presented in Appendix C. Instructions Refer to the financial statements and answer the following...
-
Writing Financial statement information about four different companies is as follows. Instructions a. Determine the missing amounts. (Hint: For example, to solve for (a), Assets Liabilities = Equity...
-
The financial statements of TSMC are presented in Appendix A. The complete annual report, including the notes to the financial statements, is available at the companys website. Instructions Refer to...
Study smarter with the SolutionInn App