CSOR 4231 Analysis of Algorithms Assignment

Assignment Help Theory of Computation
Reference no: EM133045644

CSOR 4231 Analysis of Algorithms - Columbia University

Problem 1. We are given a directed acyclic graph G, by its adjacency list representation, and two nodes s and t. Give an algorithm that computes the number of paths from s to t; you do not have to list explicitly the paths, just print the number. The algorithm should run in time O(n+e), where n is the number of nodes and e the number of edges of the graph.

(Hint: If d(u) denotes the number of paths from node u to node t, derive an equation that expresses d(u) in terms of the quantities d(v), v ∈Adj(u).)

Problem 2. There is a set N of cities that a salesman may visit. If he visits city i he makes profit pi>0. The transportation cost from city i to city j is cij >0. The salesman wants to find a cyclic route on a subset of cities such that the ratio of profit to cost is maximized. To this end, consider the directed graph G=(N,E) whose nodes are the cities and which has an edge between every pair of cities. For any simple cycle

C = (NC,EC) in this graph, the profit-to-cost ratio is r(C) = ∑j∈NC Pj /∑(i, j)∈ECcij

Let r* be the maximum ratio achievable by a cycle. One way to determine r* is by binary search: by first guessing some ratio r and then testing whether r < r* or r ≥ r*.

Consider any r>0. Let Gr be the weighted graph (G,w) where each edge (i,j) of G is given weight wij =rcij - pj.

a. Show that if there is a cycle in Gr of negative weight then r < r*.

b. Show that if all cycles of Gr have nonnegative weight then r ≥ r*.

c. Give an efficient algorithm that takes as input the profits pi, the costs cij, and a desired accuracy ε>0 and returns a cycle C for which r(C) ≥ r* - ε. Justify the correctness of your algorithm and analyze its running time in terms of |N|, ε, and R= max(i,j)εE (pj /cij).

Problem 3.
a. If G=(N,E) is an undirected graph and u,v are two nodes, denote by μ(u,v) the maximum number of edge-disjoint paths from u to v (i.e. paths that do not share any edges). Show that μ(u,v) can be computed in polynomial time.

b. For an undirected graph G and nodes u,v, denote by λ(u,v) the minimum number of edges whose removal disconnects u from v (i.e. there is a set L of λ(u,v) edges such that the graph G'=(N,E-L) has no path from u to v). Prove that for every graph G and every pair of nodes u,v, μ(u,v)= λ(u,v).

c. The edge connectivity of a connected undirected graph G=(N,E), denoted λ(G), is the minimum number of edges whose removal disconnects the graph. Observe that λ(G)=min{ λ(u,v) | u,v ∈ N}. Show that the edge connectivity can be computed by running a maximum flow algorithm on at most |N| flow networks, each having O(|N|) nodes and O(|E|) edges.

Problem 4. An Integer Linear Program (ILP) is the problem of optimizing (minimizing or maximizing) a linear function of a set of variables, subject to a set of linear inequality and equality constraints, with the additional restriction that the variables take only integer values. A 0-1 ILP is an ILP in which the variables are restricted to take value 0 or 1, i.e., the ILP includes (among others) constraints xi ≥0, xi ≤1, and the restriction "xi integer" for all variables xi.

a. The Node Cover problem is the following: Given an undirected graph G=(N,E), find a minimum-size subset S of nodes such that every edge contains a node in S.

Express the Node Cover problem as a 0-1 Integer Linear Program. In particular, given any undirected graph G, construct a 0-1 ILP that has a variable xi for every node i of the graph G and has a suitable objective function and set of constraints such that a (0-1) vector x is an optimal solution to the 0-1 ILP if and only if the set of nodes { i | xi =1} is a minimum node cover of G.

b. Let IP(G) be your 0-1 ILP of part (a) for a graph G, and let P(G) be the Linear Program that is obtained from IP(G) by removing the integrality restriction on the variables, i.e. the LP that contains all the other constraints including the inequalities xi ≥0, xi ≤1. Is there a graph G such that IP(G) and P(G) have different optimal values? Either exhibit such a graph, or prove that IP(G) and P(G) have equal optimal values for all G.

c. Is there a bipartite graph G such that IP(G) and P(G) have different optimal values? Either exhibit such a graph, or prove that IP(G) and P(G) have equal optimal values for all bipartite graphs G.

Reference no: EM133045644

Questions Cloud

What is the cycle time of your process : Furthermore, assume three class mates come over, and each of you is assigned to exactly one task (A-D). What is the cycle time of your process
Issues in the social media industry : Normative theory and its components based on ethical issues in the social media industry?
Five characteristics of useful money : Name three finance functions important to the firm's overall operations and performance.
Project on job recruiting : This is a general 6 sigma question. Can I create a control chart if I was doing a 6sigma project on job recruiting?
CSOR 4231 Analysis of Algorithms Assignment : CSOR 4231 Analysis of Algorithms Assignment Help and Solution, Columbia University - Assessment Writing Service
Composite score for each of the suppliers : A manager has decided to reduce the number of suppliers for a critical subassembly from three to two. She has asked you to review the three current suppliers (A
Business and marketing strategies : Companies can use competitive intelligence to direct their business and marketing strategies and gain a competitive edge
Internal versus external secondary data sources : Differentiate between Internal versus External Secondary Data sources with its advantages and disadvantages.
Universal declaration of human rights : Identify three articles of the human rights declaration that correlate with constitutional principles in the US.

Reviews

len3045644

12/12/2021 10:38:36 PM

Prepare a presentation 10 slides in power point excluding the title page & references and be sure the slides as bullets & short sentences not paragraph + Add notes 3 points for each slide (as bullets & very brief explanation) + add photos or background relating the topic. Note: Use same numbering mentioned beside each title & part

len3045644

12/12/2021 10:38:26 PM

after reading the handouts attached in ppt file just only to know what we are studied in the course, need to do the project in the docx file follow by the project structures and identify a case of labor dispute in a UAE based establishment, and discuss the attached points with their parts without any missing points required to write about it.

len3045644

12/12/2021 10:28:34 PM

-for each of the algorithms that you give, include an explanation of how the algorithm works and show its correctness. -Make your algorithms as efficient as you can, state their running time, and justify why they have the claimed running time. All time bounds below refer to worst- case complexity, unless specified otherwise.

Write a Review

Theory of Computation Questions & Answers

  What is the GNFA that results from ripping state

CS 5700 Computability, Automata, and Formal Languages Assignment, University of Colorado Colorado Springs, USA. What is the GNFA that results from ripping state

  Construct a turing machine to compute the product

Construct a turing machine to compute the product x*y of any two positive integers x and y. Assume that the inputs x and y are represented in unary and are separated by a single 0.

  Find the definition of cellular automata

Give the definition of cellular automata. Explain their applications. Use the Game of Life as an example.

  How a hacker might go about cracking a message encrypted

INFA640 - Cryptography and Data Protection - Describe how a hacker might go about cracking a message encrypted with each type of algorithm

  Demonstrate that each word problem is a valid argument

Demonstrate that each word problem is a valid argument. Use rules of inference to show steps and reasons in the proof.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Find regular expressions that represent set of all strings

Find regular expressions that represent the set of all strings of 0s and 1 with at least two consecutive 0s or three consecutive 1s.

  What is collaborative ?ltering

What are we referring to when we talk about a secondary use of data and What is collaborative ?ltering? Who uses it?

  Research literature survey on a tesla autopilot technology

Individual paper is a formal concise intensive research literature survey on a Tesla Autopilot technology (Emerging Technology).

  Prove dfsa recognizing l has at least n states

Let Ln be the set of strings with at least n bits in which the nth symbol from the end is a 0. Use Exercise to show that a deterministic finite-state machine.

  Find the largest sub automaton of h

Construct a nondeterministic automaton whose observer is not minimum-state, that is, it has equivalent states.

  Create a recursive java method maximum

Create a recursive java method maximum that calculate the maximum element of a linked list of integers.The solution must be simplified and should not use class Node or head

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