Determine the worst-case time efficiency of ff

Assignment Help Basic Computer Science
Reference no: EM131252728

Consider the greedy algorithm for the bin-packing problem, which is called the first-fit (FF) algorithm: place each of the items in the order given into the first bin the item fits in; when there are no such bins, place the item in a new bin and add this bin to the end of the bin list.

a. Apply FF to the instance

467_4fa1ec8e-5123-4380-96fe-d9cdba6e47cc.png

and determine whether the solution obtained is optimal.

b. Determine the worst-case time efficiency of FF.

c. Prove that FF is a 2-approximation algorithm.

 

Reference no: EM131252728

Questions Cloud

Has julie been treated fairly in the newport electronics : Has Julie been treated fairly in the "Newport Electronics" case? Is this a case of "wrongful termination"? Justify your answer.
Explain the most common forms of digital crime : Determine the category of computer crimes or cyber terrorism that presents the greatest overall threat at the present time. Provide a rationale to support your response. Summarize the roles and responses that the U.S. government, court systems, an..
Who is the movie protagonist : Who is the movie's protagonist? What factors and needs motivate or complicate their actions? Can you characterize each of them according to their depth (round characters versus flat) and motivation
Find the set of nash equilibrim of the game : Find the set of Nash equilibria (mixed as well as pure) of the game in Figure 1. Show that the game is dominance solvable; - find the pair of payoffs that survives. Find an order of elimination such that more than one outcome survives.
Determine the worst-case time efficiency of ff : Determine the worst-case time efficiency of FF.
Explain any special circumstances applicable : You also may explain any special circumstances applicable to your background and elaborate on your scholarly publications, awards, achievements, abilities, and/or professional history.
What ways can the business benefit from a web site : Prepare functional specifications for the company's use of the Web and the Internet. Include links to and from other sites in your design. Prepare a list of technological specifications for implementation (e.g., what hardware and software are nec..
Analyze a passage in shakespeare : Analyze a passage in Shakespeare and translate the language into modern English. Your ability to translate Shakespeare's English, and work to understanding it on it's own merits, is instrumental to analyzing and enjoying Hamlet.
Analyze how informal groups form and how they influence : Analyze how informal groups form and how they influence the activities of public agencies. What role does organizational culture play in the forming of these informal groups?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a c++ program to evaluate postfix expressions

Write a C++ program to evaluate postfix expressions. Your program should take postfix expression as an input, process it with the help of stack and display the result after performing required calculations.

  A priority encoder has 2^n inputs

A priority encoder has 2^n inputs. It produces an N-bit binary output indiciating the most significant bit of the input that is TRUE, or 0 if none of the inputs are TRUE

  Tax and government multipliers

Two identical countries, Country A and Country B, can each be described by a Keynesian-cross model. The MPC is 0.8 in each country.

  Compare the memory management systems of windows

Compare the memory management systems of Windows (recent versions, after Win 2000) and Linux from the pagination/segmentation point of view.

  Write a function in c language with prototype

write a function in C language with prototype.

  Write a program that prompts the user to enter expenses

Write a program that prompts the user to enter expenses in various expense categories they have (e.g., housing, food, clothing, transportation, education, health care, vacations), then prints the estimated FairTax that person would pay.

  Determine the greatest weight of the log

The coefficient of static friction between the log and the ground is µs = 0.5 , and between the rear wheels of the tractor and the ground µs œ = 0.7 . The front wheels are free to roll. Assume the engine can develop enough torque to cause the rear..

  Difference between multiprogramming and multi-threading

Under what circumstances would you choose to use an interpreted language?

  Design a finite state machine similar to a 3 bit counter

design a finite state machine similar to a 3 bit counter. in this case you will have 3 bits of state which you can think of as a 3 bit unsigned number, but this time the counter must count by 3s--the sequence it goes through should be 0, 3, 6, 1, ..

  Develop an incident-response policy which covers the growth

gem infosys a small software company has decided to better secure its computer systems after a malware attack shut down

  Analyze these data to test the null hypothesis

Analyze these data to test the null hypothesis that delay after exposure does not affect leaflet angle

  Write a program that asks a user for a file name and prints

Write a program that asks a user for a file name and prints the number of characters, words, and lines in that file.

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