Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Suppose you're consulting for a company that manufactures pc equipment

19/12/2020 Client: saad24vbs Deadline: 10 Days

Foundations of Algorithms


Homework #6


All members of the collaboration group are expected to participate fully in solving collaborative problems, and peers will assess performance at the end of the assignment. Note, however, that each student is required to write up their solutions individually. Common solution descriptions from a collaboration group will not be accepted. Furthermore, to receive credit for a collaborative problem, each student in the collaboration group must actively and substantively contribute to the collaboration.


Self-Study Problems All of the following problems come from the textbook and have solutions posted on the web at


http://mitpress.mit.edu/algorithms.


You are permitted to use this site to examine solutions for these problems as a means of self-checking your solutions. These problems will not be graded. Only problems from Chapter 15 are included since the authors have not provided sample problems for chapter 29.


Problems: 15.2-5, 15.3-1, 15.4-4, 15-4, 16.1-4, 16.2-2, 16.2-7,


Problems for Grading 1. [20 points] Suppose you are consulting for a company that manufactures PC equipment and ships it


to distributors all over the country. For each of the next n weeks, they have a projected supply si of equipment (measured in pounds) that has to be shipped by an air freight carrier. Each week’s supply can be carried by one of two air freight companies, A or B.


• Company A charges a fixed rate r per pound (so it costs r × si to ship a week’s supply si). • Company B makes contracts for a fixed amount c per week, independent of the weight. However,


contracts with company B must be made in blocks of four consecutive weeks at a time.


A schedule for the PC company is a choice of air freight company (A or B) for each of the n weeks with the restriction that company B, whenever it is chosen, must be chosen for blocks of four contiguous weeks in time. The cost of the schedule is the total amount paid to company A and B, according to the description above.


Give a polynomial-time algorithm that takes a sequence of supply values s1, s2, . . . , sn and returns a schedule of minimum cost. For example, suppose r = 1, c = 10, and the sequence of values is


11, 9, 9, 12, 12, 12, 12, 9, 9, 11.


Then the optimal schedule would be to choose company A for the first three weeks, company B for the next block of four contiguous weeks, and then company A for the final three weeks.


2. [20 points] CLRS 29.4-3: Write down the dual of the maximum-flow linear program, as given in lines (29.47)–(29.50) on page 862 of the textbook. Explain how to interpret this formulation as a minimum- cut problem.


3. [20 points] Collaborative Problem: As some of you know well, and others of you may be interested to learn, a number of languages (including Chinese and Japanese) are written without spaces between the words. Consequently, software that works with text written in these languages must address the word segmentation problem—inferring likely boundaries between consecutive words in the text. If English were written without spaces, the analogous problem would consist of taking a string like “meetateight” and deciding that the best segmentation is “meet at eight” (and not “me et at eight” or “meet ate ight”


1


or any of a huge number of even less plausible alternatives). How could we automate this process?


A simple approach that is at least reasonably effective is to find a segmentation that simply max- imizes the cumulative “quality” of its individual constituent words. Thus, suppose you are given a black box that, for any string of letters x = x1x2 · · ·xk, will return a number quality(x). This number can be either positive or negative; larger numbers correspond to more plausible English words. (So quality("me") would be positive while quality("ight") would be negative.)


Given a long string of letters y = y1y2 · · · yn, a segmentation of y is a partition of its letters into contiguous blocks of letters, each block corresponding to a word in the segmentation. The total quality of a segmentation is determined by adding up the qualities of each of its blocks. (So we would get the right answer above provided that quality("meet") + quality("at") + quality("eight") was greater than the total quality of any other segmentation of the string.) Give an efficient algorithm that takes a string y and computes a segmentation of maximum total quality. You can treat a single call to the black box computing quality(x) as a single computational step. Prove the correctness of your algorithm and analyze its time complexity.


4. Collaborative Problem. In the course content, we explained how we can solve two-player zero-sum games using linear programming. One of the games we described is called “Rock-Paper-Scissors.” In this problem, we are going to examine this game more closely. Suppose we have the following “loss” matrix for Player 1 (i.e., we are showing how much Player 1 loses rather than gains, so reverse the sign):


A =


 0 1 −1−1 0 1 1 −1 0


 . (a) [10 points] What is the expected loss for Player 1 when Player 1 plays a mixed strategy x =


(x1, x2, x3) and Player 2 plays a mixed strategy y = (y1, y2, y3)?


(b) [10 points] Show that Player 1 can achieve a negative expected loss (i.e., an expected gain) if Player 2 plays any strategy other than y = (y1, y2, y3) =


( 1 3 ,


1 3 ,


1 3


) .


(c) [10 points] Show that x = ( 1 3 ,


1 3 ,


1 3


) and y =


( 1 3 ,


1 3 ,


1 3


) form a Nash equilibrium.


(d) [10 points] Let x = ( 1 3 ,


1 3 ,


1 3


) as in part (c). Is it possible for (x,y) to be a Nash equilibrium for


some mixed strategy y′ ̸= ( 1 3 ,


1 3 ,


1 3


) ? Explain.


2


Applied Sciences

Architecture and Design

Biology

Business & Finance

Chemistry

Computer Science

Geography

Geology

Education

Engineering

English

Environmental science

Spanish

Government

History

Human Resource Management

Information Systems

Law

Literature

Mathematics

Nursing

Physics

Political Science

Psychology

Reading

Science

Social Science

Home

Blog

Archive

Contact

google+twitterfacebook

Copyright © 2019 HomeworkMarket.com

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Essay Tutor
Helping Hand
University Coursework Help
Homework Guru
Writer Writer Name Offer Chat
Top Essay Tutor

ONLINE

Top Essay Tutor

I have more than 12 years of experience in managing online classes, exams, and quizzes on different websites like; Connect, McGraw-Hill, and Blackboard. I always provide a guarantee to my clients for their grades.

$65 Chat With Writer
Helping Hand

ONLINE

Helping Hand

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$60 Chat With Writer
University Coursework Help

ONLINE

University Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$62 Chat With Writer
Homework Guru

ONLINE

Homework Guru

Hi dear, I am ready to do your homework in a reasonable price and in a timely manner.

$62 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Evolution in Recent History and Mutations in Evolution Discussion - Dhcs ca gov services medi cal pages countyoffices aspx - How is the periodic table organized - Homework Topic 2 - Module 3 Public Human - Organisational standards for creating business documents - The Ethics Behind Assessment - Mark messier biotech breakout trader - Kottee step model - Grand harvest square raid blade and soul - Toms shoes stakeholders - Integral of xf x dx - Whirlpool case study answers hrm - Mr kinnear alias grace - Sodium hydroxide reacts with ammonium chloride - Organic qualitative analysis flow chart - Example of soap note nurse practitioner - Code of conduct for ngo - How does umuofia choose to settle the dispute - Acfi business rules 2017 - Joule thomson coefficient ideal gas - Vmware vcenter converter standalone product - Top 100 weirdest phobias - Week 1 - Libor scandal case study - 5 hanslow way taylors lakes - Iec 61000 3 13 - Assignment - Romeo and juliet act 4 scene 2 questions and answers - Lem hlsr 10 p - The hunter tasmanian tiger - Eng 122 week 1 content quiz - Felipe y juan carlos están con los hermanos lópez. cierto falso - Interest accrued on 6 month note payable - Short answer - What is a slogan - Marketing and operations management at ikea - Sofía cuida su pez mucho amor. - The new york times company policy on ethics in journalism - What do statistically significant findings imply - Martín y rodolfo nadan en la piscina. van a nadar en la piscina mañana también. - Embraced by the needle outline - Shakespeare in modern english - Transaction exposure and economic exposure - How to make an atb online account - Input process output examples - Why is family preservation important - Act 3 scene 1 romeo and juliet questions - Qut how to defer - What was the titanics top speed - VA W5 - Jay z 8 miles and runnin lyrics - Linear Algebra - Java craps game using methods - CS6 - Hozelock bib tap connector - Sociology (Need within 24 hours) - Pan europa foods sa case study answers - Write a discussion post and weather u think the score u received is accurate of your intelligence level .why or why not? - Marketing Paper - Purina Company - People of Irish Heritage. People of Italian Heritage. People of Puerto Rican Heritage. - Is cellular respiration endergonic or exergonic - Commemorative speech examples about mothers - Importance of food safety ppt - Internal mobility in hrm ppt - Navalwarcollege blackboard - BUSINESS ETHICS #1 2 pages - Cutting feathers for fletching - Cost of control account is credited with - Richard neustadt presidential power - Www printeron com ddl bear - Plas y cadno camping - App Development - Mediatrix 4102 default ip - Indian camp hemingway pdf - Sample codebook for content analysis - Bcg matrix of maruti suzuki - Zone of proximal development - How many strings of eight uppercase english letters are there - Pangzitv - Includes all the activities involved in selling products - A soraya no le gusta trabajar. ella trabaja que adelia. - Portland cement safety data sheet - Charlie brown linus and sally - Integrated health solutions lothian - 10 adam 10 police code - Ncopds - Season tickets for the wildcats are priced at - A company's broad "macro-environment" refers to - Handwriting nsw foundation style - VT #4 - Unsolved mysteries in physics - Bell rock loop track - Module 3 Discussion - Apocalypto movie questions and answers - 300 Words Due Tomorrow - 1 Scholarly Reference - Price and Due Date NON NEGOTIABLE - Human Resources/Project Management - Marketplace live simulation - Lesson 7.2 practice a ratio in similar polygons - Plas madoc swimming lessons - Separation of mixtures post lab answers