Free Tutorials, Linux Command, Source Code Architecture,  Software Engineering, Intelligent Systems, RDBMS, Computer Accounting,  Operations Research, Discrete Mathematics, Network, SAD Lay Networks Lay Networks
Computer Science Networking Operating Systems Linux and Unix Source Code Script & Languages Protocols Glossary
Web laynetworks.com
Google
 


Project July 2002

Question 1:

Specify, design and implement a software tool that will compute the Cyclomatic complexity for the programming language of your choice. Use the graph matrix as the operative data structure in your design.

Answer: Part - 3

Flow graph notation

Flow graph is the notation for the representation of control flow. The flow graph depicts logical control flow using the notation illustrated below.

Sequence

if

While

Until

Case


Each structured construct has a corresponding flow graph symbol. Each circle called a flow graph node represents one or more procedural statements. A sequence of process boxes and a decision diamond can map into a single node. The arrows in the flow graph called edges or links represent flow of control and are analogous to flowchart arrows. An edge must terminate at a node even if the node does not represent any procedural statements. Areas bound by edges and nodes are called regions. When counting regions we include the area outside the graph as a region. In the C language the conditional constructs are if, while, case etc. When compound conditions are encountered in a procedural design, the generation of a flow graph becomes slightly more complicated. A compound condition occurs when one or more Boolean operators is present in a conditional statement. A separate node is created for each of the conditions a and b in the statement if a OR b. Each node that contains a condition is called a predicate node and is characterized by two or more edges emanating from it.

3. From the control flow graph, create the connection matrix.

The connection matrix is a kind of graph matrix.

Graph matrices

The procedure for deriving the flow graph and even determining a set of basis paths is amenable to mechanization. To develop a soft ware tool that assists in basis path testing, a data structure called a graph matrix can be quite useful. A graph matrix is a square matrix whose size (ie number of rows and columns) is equal to the number of nodes on the flow graph. Each row and column corresponds to an identified node, and matrix entries correspond to connections (an edge) between nodes. An example of a flow graph and its corresponding graph matrix is shown here.



Cont...

TMA 2001 Project 2001 Project July 2002 TMA

 

Top

Back
Next
FDDI Frequently Asked Questions (FAQ), The function and frame format of FDDI,Aloha,Comparative analysis between two types of ATM Switches,Knockout Switch,Barcher-Banyan Switch,Various popular standards for compressing multimedia data,Distributed Multimedia Survey: Standards, ASCII to hex value chart,Comparative analysis - TCP - UDP, Addressing Formats and QoS parameters, Bellman Ford's Algorithm Lay networks, free, java, java script, asp, vb, linux, ignou, tutorial, Unix commands, System Analysis, System Design, Ipv6, quiz, download, free, Computer Architecture, Object Oriented System, Relational Database Management Systems, Object Oriented System, Operating Systems, Software Engineering, Communications and Networks, Discrete Mathematics, Intelligent Systems, Operations Research, Accounting and Finance on Computersmca, networking, protocols, glossary, assignment, project, tma, programming source code, programming, source code, unix, free
 
Book Mark/Share this site at BlinkBits BlinkList Blogmarks co.mments Delicious Digg Fark Furl it! Google Ma.gnolia Netvouz NewsVine RawSugar Reddit Shadows Simpy Stumble Technorati YahooMyWeb

Copyright © 2000- 2007 Lay Networks All rights reserved. 
This website is best viewed in Firefox 1.0.1 above.

Web Hosting sponsored by Customized Software Company India
Web Site Designed by Web Designing, Flash Animation, Multimedia Presentations, Broacher/catalogue designing, Web Promotion 
Refer to your freind About Us Legal IGNOU Contact Us Feedback Donate to laynetworks.com Download Management Tutorials Tutorials History Search here