Preview

Design and Analysis of Algorithms

Good Essays
Open Document
Open Document
777 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Design and Analysis of Algorithms
510.6401 Design and Analysis of Algorithms

January 21, 2008

Problem Set 1
Due: February 4, 2008. 1. In the bin packing problem, the input consists of a sequence of items I = {1, . . . , n} where each item i has a size, which is a real number 0 ≤ ai ≤ 1. The goal is to “pack” the items in the smallest possible number of bins of unit size. Formally, the items should be partitioned in disjoint subsets (bins), such that the total size in each bin is at most 1. The first fit heuristic scans the items one by one, and each item is assigned to the first bin that it can fit in. Prove that first-fit is a 2-approximation algorithm for bin packing. Hint. Bound from below the number of bins used by an optimal solution; and bound from above the number of bins used by first fit, using the observation that nearly all bins are at least half-full. 2. Suppose now that you want to pack as much as possible in a single bin. Formally, the input consists of a set of items I = {1, . . . , n}, where each item i has a size 0 < ai ≤ 1. A solution is a set of items S ⊂ I such that i∈S ai ≤ 1 (i.e., the size of the bag is 1). The value of a solution S is the total size of the items in the solution, i.e., i∈S ai . (a) Describe an optimal solution to the problem. What is the time complexity of your algorithm? (b) Give a polynomial-time algorithm with approximation ratio 2 (i.e., it guarantees that you fill at least half of the optimal value). What is the time complexity of your algorithm? Warning. The simplest solution doesn’t work! 3. Consider the following algorithm for the m-machine load-balancing problem (S is the set of jobs): Repeat: (a) Let A be the sum of weights of all jobs in S (b) Find a subset S1 ⊆ S whose sum of weights is close to A/m (c) S ← S \ S1 ; m ← m − 1 until m = 0. Suppose that the subset sum step above is implemented using an approximation algorithm, which guarantees that its result is within a factor of 1 − ǫ from the optimal subset sum, for some 0 < ǫ < 1. What can you say

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Given $U$ as the set all the devices located at the edge of the network with physical proximity of the device that wants to request computational resources $D$. Therefore, the PAR problem can be modeled as a graph $G$, where the vertexes of this graph are elements of the set U, and the edges of G are the communication link between them. In our approach, the vertexes are classified according to into the following types:…

    • 232 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    IF You Want To Purchase A+ Work Then Click The Link Below , Instant Download…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    5. [3] Ten processes share a critical section implemented by using a semaphore x. Nine…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Introductory note: The SCR case study provides a valuable real-world experience for students. The case involves an imaginary IT consulting firm that maintains a realistic Web site, complete with a company intranet that students can access. The student becomes an entry-level systems analyst reporting to a supervisor named Jesse Baker.…

    • 4448 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    A long time ago software developers or programmers did not use reusable code because there were not too many reliable, and efficient software or application software available. Therefore, whenever a big project comes forth the software developers or programmers tend to start building from the ground up. After many years of building software from the ground up for each project or request, the software developers had come to an agreement that building software from ground up is very costly and time consuming, especially for an inexperience software developer. Therefore, the software developers or engineers had come to conclusion that they need to develop and implement a platform where different software developers can benefit from each others codes or components.…

    • 671 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Starting from the first odd negative integer closest to 0, which is -1, we can count backwards infinitely without a boundary on the left side of the number line for this instance.…

    • 699 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This pack of IT 240 Latest Version Set (A) Week 1 Discussion Question 2 includes:…

    • 450 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    5. What distinguishes a Loop control construct from a While control construct, in terms of what is known about the number of times the block of code will be repeated?…

    • 610 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Coking: The Carbon rich Heavy Residues of other refinery processes are treated at high temperatures to produce lighter value adding products…

    • 1590 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    The town of Eden Bay has many workers that are all determined to succeed, but without having a strategic plan set in place, as well as a clear mission statement the employee’s are becoming frustrated. Some of the workers have mentioned that they work off a budget from year to year without any sight of a long-term plan set in place. This will surely add to their frustration and prevent the town from setting and reaching its desired long-term goals.…

    • 487 Words
    • 2 Pages
    Powerful Essays
  • Powerful Essays

    operations analysis

    • 1463 Words
    • 5 Pages

    Operations analysis is a designed business strategy used by organizations to determine whether the overall operational structure adheres to the proposed business plan adopted and utilized by the organization (Tatum and Bronwyn). The supply chain operations form a vital area in any business because it involved the supply and delivery of goods and services offered by a given company. There has been a rapid evolvement in the discipline of supply chain management creating many challenges to the current and future managers who have to move at the same rate the new analytical techniques are moving. In most cases, most supply chain managers struggle with these challenges and sometimes call for help from senior management of an organization to give them solutions to different scenarios subsidizing business operations and acquire additional skills on how to deal with problems in future (Ross 11).…

    • 1463 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    High Performance Analysis

    • 457 Words
    • 2 Pages

    Being a nurse for this many years, the term ‘high performance’ is not something new to my ears. I had heard this terms many times but honestly, I did not knew how much weight it carries in healthcare organization. In this paper I am horned to have the opportunity to explore and gain the understanding of this term and discover exactly what does it mean? According to Thompson (2007), in order to appreciate what high performances are, we got to recognize the standards of goals and objectives of the organization as one piece. This statement is an eye opening for me as now I understand that organization goals and objectives are used to lead operationally. According to Buchbinder & Shanks (2012), in order to understand performance, we got to be grateful for the value of setting and…

    • 457 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Structrual Analysis

    • 763 Words
    • 4 Pages

    In their essays, both authors Sidney Callahan and Deborah Tannen discuss strategies for a possible improvement in society’s ways of arguing. In “Fight Fierce but Fair: Practice at Home,” (1994), Callahan claims “if you learn to fight well and fairly at home, you can contribute to the civic struggle necessary to keep a pluralistic society moving.” With a set of guidelines and rules composed through personal experience, Callahan successfully uses this technique to give readers an immediate call to action and a solid, convincing essay. In “The Triumph of the Yell,” (1994), Tannen claims that “more and more these days, journalists, politicians, and academics treat public discourse as an argument – not in the sense of making an argument, but in the sense of having one, of having a fight.” Tannen masterfully uses the anecdotes and introduces new ideas to readers to create a compelling argument.…

    • 763 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Computer Engineering

    • 312 Words
    • 2 Pages

    Computer engineering, the fastest growing engineering field for the past few years, is a very broad discipline which addresses the relationship and interactions between software and hardware in solving real engineering problems. This includes such diverse areas as: biomedical devices, home automation, games and toys, environmental controls, automobile control systems and intelligent vehicle highway systems, industrial robotics, voice/speech recognition, computer intelligence, networking, and cellular communications.…

    • 312 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Theory of Computation

    • 106491 Words
    • 426 Pages

    Associate Product Manager: Mirella Misiaszek Editorial Assistant: Jennifer Smith Senior Manufacturing Coordinator: Trevor Kallop Cover Designer: Steve Deschesne For permission to use material from this text or product, submit a request online at http://www.thomsonrights.com Any additional questions about permissions can be submitted by e-mail to thomsonrights~thomson.com Disclaimer Thomson Course Technology reserves the right to revise this publication and make changes from time to time in its content without notice. ISBN 0-534-95097-3…

    • 106491 Words
    • 426 Pages
    Powerful Essays