Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below are two graphs, each of which is defined by the sets of nodes, initial nodes, final nodes, edges, and defs and uses. Each graph

Below are two graphs, each of which is defined by the sets of nodes, initial nodes, final nodes, edges, and defs and uses. Each graph also contains a collection of test paths. Answer the following questions about each graph.

GRAPH 1:

N = {1,2,3,4,5,6}

N0={1}

Nf={6}

E={(1,2),(2,3),(2,6),(3,4),(3,5),(4,5),(5,2)}

def(x)={1,3}

use(x)={3,6} //Assume the use of x in 3 precedes the def

Test Paths:

t1=[1,2,6]

t2=[1,2,3,4,5,2,3,5,2,6]

t3=[1,2,3,5,2,3,4,5,2,6]

t4=[1,2,3,5,2,6]

GRAPH 2:

N={1,2,3,4,5,6}

N0={1}

Nf={6}

E={(1,2),(2,3),(2,6),(3,4),(3,5),(4,5),(5,2)}

def(x)={1,5}

use(x)={5,6} //Assume the use of x in 5 precedes the def

Test Paths:

t1=[1,2,6]

t2=[1,2,3,4,5,2,3,5,2,6]

t3=[1,2,3,5,2,3,4,5,2,6]

  1. Draw the graph.
  2. List all of the du-paths with respect to x. (Note: Include all du-paths, even those that are sub-paths of some other du-path).
  3. List the test requirements for all-def criteria
  4. List the test requirements for all-use criteria.
  5. List the test requirements for all-du-path criteria

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

6. Realize that your interview will be edited; in some cases, for ?

Answered: 1 week ago