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

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  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).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

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