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

  Explain the role of such calculations in clipping algorithms

Given a line segment with endpoints (2. 5) and (9, 15), provide the equation for that line segment using a parameterized representation.

  Write a short code fragment to add the even numbers

1.Write a short code fragment to add the even numbers from 1 to 10 using an 8086 processor and the instructions given in the lecture. 2.Search the web for the programming model for a Zilog Z80 microprocessor and compare it with the programming m..

  Create a visual logic flowchart that parallels pseudocode

Create a Visual Logic flowchart that parallels this pseudocode.

  Write a program that implements binary search first using

To understand the value of recursion in a programming language write a program that implements binary search first using recursion and without recursion.

  Write an m file that defines a row vector

Write an M-file that defines a row vector of 50 elements with all ones. Add a code that replaces every element that is in an even place (for example the 2nd, 4th, 6th,...) with the number 2. Add a code that replaces every element that is in a place d..

  Consolidation strategy that will require it to centralize

A prestigious university has recently implemented a consolidation strategy that will require it to centralize their student records. In order to move forward, the local university will need to develop a data model that will retain student records ..

  Government purchases decrease

Assume that government purchases decrease by $10 billion, with other factors held constant, including the price level. Calculate the change in the level of real GDP demanded for each of the following values of the MPC. Then, calculate the change if t..

  Create a gantt chart that is based on the details

Create a work plan listing the tasks that will need to be completed to meet the system's requirements - Create a Gantt chart that is based on the details of your work plan. You may use any drawing/presentation/project management tool with which you ..

  Discuss when program might use both base and derived class

Discuss when a program might use both the base class and the derived class and why

  Different software packages to different departments

Did you explain how they would deploy different software packages to different departments?

  Article related to the cloud mechanisms

Find 1 article related to  the cloud mechanisms, and to turn in the following: (1) TheURL of the article, (2) A brief summary of the article

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