Perform a benchmark analysis

Assignment Help Basic Computer Science
Reference no: EM13847101

Perform a benchmark analysis of the following problems:

Problem 1: Write an algorithm to classify the edges of a directed graph G into the four categories: tree edge, back edge, forward edge and cross edge (defined in 22.3 Depth First Search - Classification of edges).

Problem 2: An Euler circuit in an undirected graph is a circuit (i.e. a cycle that may go through some vertices more than once) that includes every edge exactly once. Give an algorithm that finds an Euler circuit in a graph, or tells that the graph doesn't have one.

Problem 3: Write a depth-first search algorithm to determine if an undirected graph has a cycle.

Problem 4: Write a breadth-first search algorithm to determine if a directed graph has a cycle
Implementation, testing and documentation required for each of the above 4 problems.

Note on SUBMITTING

1. Format: You should submit for each of the four problems: (1) all the source files (.java files under the src folder; please do not sent the class files or other files), (2) a screenshot sample file (the output displayed while running your application to show the required functionalities) and (3) a documentation file. The documentation should contain at least the design decisions, the test plan, the output for the runs. The documentation should be no more than two pages in length and no less than one page. The font size should be 12 point, the page margins one inch, and the paragraphs single spaced.

2. Input data: you should test all your algorithms for at least 2 input graph data (the data does not have to be read from the input; hard-coded is good enough, for full grade). One input data per problem is of your own choice, while the other one is mandatory as follows:

Problem 1- the directed graph G=(V, E) with the following sets of vertices and edges:

V=(A, B, C, D, E, F, G};

E={(A, D), (A, F), (B, A), (C, A), (C, B), (C, D), (C, E), (C, F), (D, B), (D, G), (E, G), (F, A), (G, E)};

Problem 2- the undirected graph G=(V, E) with the following sets of vertices and edges:

V={1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

E={(1,2), (1,10), (2,3), (3,4), (3,6), (3,9), (4,5), (5,6), (6,7), (6,9), (7,8), (8,9), (9,10)}. Please notice that the graph is undirected; thus

although an edge (n1,n2)ÎE occurs only once in the edges set, it goes both ways, that is (n1,n2) AND (n2,n1);

Problem 3- the undirected graph G=(V, E) with the following sets of vertices and edges:

V= {1, 2, 3, 4, 5, 6, 7}

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

Problem 4- the directed graph G=(V, E) with the following sets of vertices and edges:

V=(A, B, C, D, E, F, G);

E={(A, B), (A, C), (A, F), (B, C), (B, D), (D, A), (D, C), (E, C), (E, G), (F, A), (F, C), (G, D), (G, E)}.

Reference no: EM13847101

Questions Cloud

Prepare simple balance sheet of assets and liabilities : Assume that Bank A receives a primary deposit of $100,000 and that it must keep reserves of 10 percent against deposits. Prepare a simple balance sheet of assets and liabilities for the bank immediately after the deposit is received.
The first putting green championship was held : In 1895, the first Putting Green Championship was held. The winner’s price money was $240. In 2014, the winner’s check was $1,400,000. What was the percentage in cream per year in the winner's check over this period?
Mutual fund tracking-expiration date-strike price-quality : A $1 billion mutual fund tracking the s&p 500 index. The index currently trades at 2000. In order to protect the fund against an index decline beyond 10% in a year. ie, the value of the fund in a year mush be above 900m. What forward or option positi..
Default on its sovereign debt caused the spread : In early 2010, the possibility that Greece might default on its sovereign debt caused the spread between German and Greek debt to ____ by about ____ percentage points
Perform a benchmark analysis : Write an algorithm to classify the edges of a directed graph G into the four categories: tree edge, back edge, forward edge and cross edge (defined in 22.3 Depth First Search - Classification of edges).
Trade credit-increasing accounts payable : The Thompson Corporation projects an increase in sales from $1 million to $3 million, but it needs an additional $300,000 of current assets to support this expansion. Thompson can finance the expansion by no longer taking discounts, thus increasing a..
Are there any ethical concerns in the case why not why not : Does Blue Ridge Paper Products' (BRPP) policy differ from a traditional employee stock ownership plan (ESOP)? What are the implications? Are there any ethical concerns in the case? Why? Why not
Use the equivalent annual cost approach to evaluate : A company wishes to select the best of three possible computers, each expected to meet the University's growing need for computational and storage capacity. The three computers— A, B, and C—are equally risky. Calculate the NPV for each computer over ..
Analyze why cisco landed in financial trouble : Study the networked supply chain concept as implemented by Cisco. What are its strengths and weaknesses - Analyze why Cisco landed in financial trouble

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Function whose job is to input

Write a function whose job is to input #'s, non-# to quit, recover from the input failure by calling recover(), and tell main some statistics about the numbers read. A. unsigned readA();

  Describe how all the processess could be completed

a system that is in an unsafe state is not necessarily deadlocked. explain why this is true. give an example of such a system ( in an unsafe state) and describe how all the processess could be completed without causing deadlock to ocur

  Encode or decode a color combination

In the early days of computer graphics, colors where represented as two numbers. The first number was the foreground color and the second was the background color. These two values, which ranged from 0 to 15 were stored within a single byte; the fore..

  Eliminate unit productions from the following

Eliminate unit productions from the following CFG S->AB A->a B->C/b C->D D->E E->a

  Design a program that prompts the user to enter a number

Design a program that prompts the user to enter a number within the range of 1 to 10. The program should display Roman numeral version of that number. If the number is outside the range of 1 to 10, the program should display an error message.

  Explain integration between systems and infrastructure

Describe the relationship and integration between systems and infrastructure. Note: Database and Data Warehousing, Analytics, Interfaces and Cloud Technology, and Infrastructure and Security should be considered.

  The processes and procedural considerations for implementing

For the purpose of this assignment, you will have to recap your previous assignment (in 250 words) and then provide a well-researched and informed report to the CIO.

  Suppose you observe that your home pc

Suppose you observe that your home PC is responding very slowly to information requests from the net. And then you further observe that your network gateway shows high levels of network activity

  People and organization responsible for bumping problems

Answer from the perspective of the airlines and from the perspective of the customers. What people, organization, and technology factors are responsible for excessive bumping problems?"

  Include a description of the media used for storage

imagine one real life example of each: a multi-file volume and a multi-volume file. include a description of the media used for storage and a general description of the data in the file.

  Provision a multi-terabit fat pipe between the two locations

Consider the aspect of latency. Why is this aspect important. Let us suppose I want to send data between LA and Tokyo - i somehow provision a multi-terabit fat pipe between the two locations and push data through it. Would latency still be a concern ..

  Give an example of an original engineering design problem

Give an example of an original engineering design problem and clearly outline the objectives, the constraints, and the design variables.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd