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

  Write a mips program where we store 5 integers in the array

Write a mips program where we store 5 integers in the array. For example.

  Shortest path between each pair of nodes using floyd''s metho

find the shortest path between each pair of nodes using Floyd's method

  Write a program that prompts for a pattern of 6 dice

Write a program that prompts for a pattern of 6 dice and then counts the number of throw necessary to get that pattern to appear.

  Required value for the move command

Shape_index is a required value for the move command. It is the index of the shape in the shape data arrays that you wish to move. It should range between 0 and MAX_SHAPES - 1. Be sure to validate the index.

  Explain the three main channels

Explain the three main channels (not the Fed's tools: omo, rr, dr) through which the Fed can influence economic activity. Specifically explain the ways that Fed policy can influence consumption and investment.

  Prediction for open standards that may change world again

In April of 1990, entire concept of domain was born, and email addresses "opened up". What might be the prediction about more open standards which may change our world again?

  A user deliberately or accidently interrupts a print job

In some instances, a user deliberately or accidently interrupts a print job

  Explore tables forms queries reports

1) Make sure that you review the introduction and Chapter1 from the text  book, you can download the practice files from microsoft.com/fwlink/? 2) Explore Tables, Forms, Queries, reports and printing objects.

  Evaluate events that could delay the closing of a project

Identify events that could delay the closing of a project or phase. Evaluate which event you believe would cause the longest delay and explain why. Provide an example to justify your answer

  Perform in-depth research and provide an explanation

You will perform in-depth research and provide an explanation of how an issue associated with your selected topic relates to the consumption of digital media.

  What rc key value leave state vector during initialization

What RC4 key value will leave state vector, S unchanged during initialization? That is after the initial permutation of S, the entries of S will be equal to the values.

  Investigate project management body of knowledge

Investigate Project Management Body of Knowledge (PMBoK). Write a report on one of knowledge areas. Describe the task of understanding potential threats

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