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

  What networking-communications changes were in past decades

What networking and communications changes were introduced in the past decade (2000s), and what were their implications?

  Some businesses and organizations use active directory

Some businesses and organizations use Active Directory (AD) to provide SSO access to the enterprise. Analyze the advantages and disadvantages of using AD for SSO access.

  Write a version of sum pairs i that sums each component

Using SML write a version of sumPairs that sums each component of the pairs separately, returning a pair consisting of the sumof the first components and the sum of the second components

  Use a temporary location t to store the intermediate results

Compare zero-, one, two-, and three- address machines by writing programs to compute.

  Which library procedures issue system calls

With respect to a programmer, a system call looks the same as a call to a library procedure. Is a programmer required to identify which library procedures issue system calls? Explain your answer.

  How to choose optimal location of pipeline for oil field

A Consultant is to lay oil pipeline running east to west through the oil field of n wells. From each well spur pipeline is to be connected directly to main pipeline along shortest path.

  Business intelligence and data warehouses

Business Intelligence and Data Warehouses

  Recognize the types of each variable as nominal and ordinal

Suppose you are working on data analysis project about laptop computers. Each computer is explained by following variables. Recognize the types of each variable as nominal, ordinal, interval or ratio.

  Discuss zoning and lun masking practices for virtualization

Storage concepts and application today are critical since our data needs have grown exponentially over the last decade. Virtualization makes storage a bit more complex in terms of configurations and options. Storage can local or remote include use of..

  Esign the class billtype with data members to store patients

Design the class doctorType, inherited from the class personType, with an additional data member to store doctors speciality. Add appropriate constructors and member functions to initialize, access, and manipulate the data members.

  Use the readline() method to obtain a value from the user

Write a code segment that will analyze a numeric value provided by the user to determine if he or she is a newborn, a child, a teenager, or an adult. Make sure to include the following in your code:

  What one characteristic about standard normal distribution

What one characteristic about the Standard Normal Distribution make it different from any normal distribution How do the standard deviation of 1 makes it diffenert. Can you plz explain? Do it some how throw the base answer off?

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