Problem regarding the polynomial-time algorithm

Assignment Help Basic Computer Science
Reference no: EM13968301

1. A graph is k-colorable if each vertex can be given one of colors, and no edge connects identically colored vertices. Give a linear-time algorithm to test a graph for two-colorability. Assume graphs are stored in adjacency-list format; you must specify any additional data structures that are needed.

2. Give a polynomial-time algorithm that ?nds rV/21 vertices that collectively cover at least three-fourths (3/4) of the edges in an arbitrary undirected graph.

3. Show how to modify the topological sort algorithm so that if the graph is not acyclic, the algorithm will print out some cycle. You may not use depth-?rst search.

4. Let be a directed graph with vertices. A vertex is called a sink if, for every v in such that /=v, there is an edge (v, s), and there are no edges of the form (s, v). Give an O(N) algorithm to determine whether or not has a sink, assuming that is given by its × adjacency matrix.

Reference no: EM13968301

Questions Cloud

Algorithm to solve version of the problem : Suppose that walls in the maze can be knocked down, with a penalty of P squares. P is speci?ed as a parameter to the algorithm. (If the penalty is 0, then the problem is trivial.) Describe an algorithm to solve this version of the problem. What is..
Define evangeliam as it occurs in acts : Read all of the biblical book of Acts with reference the book "The Mystical Way of Evanglism" by Heath's , I need you to read in the content of thier good news relationship between DEED AND WORD. Define evangeliam as it occurs in Acts
Strategic issues analysis of a global company : Strategic Issues Analysis of a Global Company - while this is the strategy that I most admire of the Starbucks Corporation, it is also the first topic that comes to mind when asked about a major strategic issue they are currently facing: How do the..
Determine the longest unweighted path : 1. When a vertex and its incident edges are removed from a tree, a collection of sub- trees remains. Give a linear-time algorithm that ?nds a vertex whose removal from an N vertex tree leaves no subtree with more than N/2 vertices. 2. Give a linear..
Problem regarding the polynomial-time algorithm : Give a polynomial-time algorithm that ?nds rV/21 vertices that collectively cover at least three-fourths (3/4) of the edges in an arbitrary undirected graph.
Design a linear algorithm : Let G = (V, E) be an undirected graph. Use depth-?rst search to design a linear algorithm to convert each edge in G to a directed edge such that the resulting graph is strongly connected, or determine that this is not possible.
How a business should be managed may sound attractive : The stakeholder view of how a business should be managed may sound ethically attractive but could be too simplistic.
How would you respond to the director of visitor''s bureau : In light of the city's fiscal problems, what is the most likely motivation for the new charge? Will the new overhead charge achieve its objective?
Write a summary about given article : Read this article- Researchers Say Gene Changes Show Who's Gay by MAGGIE FOX, Write a summary about it

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Change font and font size

500 words with a bibliography summary must include all of the following topics: (Microsoft 2013)

  Manufacturing process requires machining and finishing

A small business produces 3 types of cables: A, B, and C. The cost of in-house production is estimated to be $6, $12, and $10 per foot of A, B, and C respectively. The manufacturing process requires machining and finishing. The machining and finis..

  What role to assign to four workstations

What role (or roles) would you assign to each of the four workstations and any other equipment you recommend? What type of upgrades, if any, might the workstations require to make your solution work?

  Describe a pipelined datapath needed to support

Describe a pipelined datapath needed to support the following instruction. Also specify the values of control signals using the diagram in the text book.

  What weaknesses in choicepoint information security manageme

Question 1. What weaknesses in ChoicePoint Information Security Management practices likely contributed to their data breach? Please explain how they contributed and what Choice Point could do to strengthen these areas.

  Explain the steps take to stop cyber squatter explain the

explain the steps take to stop cyber squatteryou are a owner of the register trademark and you just found that domain

  What is the message

The following padded ASCII-coded message is stored in successive memory locations in a computer.

  Create a new table for suppliers contact information

1. Create a new table for Suppliers' contact information and set the primary key and appropriate data types for the fields. The table should at least contain the following information: a. Company name and address  b. Representative's name, pho..

  Human and nature dynamics (handy) model

This paper is centered around some results obtained from the Human and Nature Dynamics (HANDY) model. This model is equation 3 in their paper.

  Research options for improving the current use of tcp/ip

Research options for improving the current use of TCP/IP and recommend new software and equipment that's available. Describe how use of equipment, software, and multiplexing could aid in improving use for communications which would reduce network con..

  Explain cost and scope in procurement management section

Please review the attached paper and make necessary corrections. Additionally please include triple threat items - time, cost and scope in Procurement Management section in following sections

  Revise please revise the attached report to reflect a

please revise the attached report to reflect a company that sells airline parts. it must be

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