Using a competitive ratio measure

Assignment Help Basic Computer Science
Reference no: EM13706088

Imagine you are standing next to a long fence, extending as far as you can see in both directions. You want to cross the fence and you know that somewhere it has a hole you can go through. But, you don't know whether the hole is to your right or left, or how far away it is. You want a strategy for finding the hole that does well using a competitive ratio measure.

Let's model this problem as follows: you are initially located at the origin on the real line. The hole is at some (positive or negative) integer coordinate n. You can move left or right at cost equal to the distance moved, and the game continues until you reach n. You then look at the ratio of your cost to |n| (n is the optimal off-line cost since it is the distance you would have travelled if you had known where the hole was). Design a deterministic algorithm whose competitive ratio is at most 9.

Reference no: EM13706088

Questions Cloud

Why are cigarettes and alcohol the most heavily taxed : Why are cigarettes and alcohol the most heavily taxed items in the US? Now, if the government increases the price of these items by 10%, how does this affect the stores that sell them?
Describe the logistics system : Describe the steps in making sure that flights take off on time for an airline. Describe the different steps that must occur for an on-time plane departure.
What is use of the mac and ip for vlan 1 in a cisco switch : Implement the network topology using Packet Tracer - How many MAC does the 24 port Cisco switch used in the Packet Tracer - How many MAC does the 24 port Cisco switch used in the Packet Tracer has and what is the use of the MAC and IP for VLAN 1 in ..
The solution is some real number : Let P be a problem. For any instance x ∈ P, the solution is some real number f(x). Let A be a randomized algorithm for P, such that it gives a solution A(x) that lies in [1/2f(x), 2f(x)] with probability 2/3.
Using a competitive ratio measure : Imagine you are standing next to a long fence, extending as far as you can see in both directions. You want to cross the fence and you know that somewhere it has a hole you can go through. But, you don't know whether the hole is to your right or..
Design a file system checker for our file system : Design a file system checker for our file system. You should call it csefsck. It will have to do the following: The DeviceID is correct All times are in the past, nothing in the future Validate that the free block list is accurate this includ..
Suppose you want to manage a relatively small project : Suppose you want to manage a relatively small project, but you have no access to project management software of any kind. How could you use a spreadsheet program or a database program to manage the project? Share your ideas in 750 words.
Advantages and disadvantages to a firm of financial hedging : What are the advantages and disadvantages to a firm of financial hedging of its operating exposure compared to operational hedges (such as relocating its manu-facturing site)?
Control recommendation strategies in computer security : Control recommendation strategies in computer security environment. This must be an APA style report with in text citation for example (Stallings, 2012) and I need the reference in APA style at the end.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  A lot of examples of failed information system devlopment

2.Why would a company spend so much time and resources on a systems and then cancel it or not use it?

  Why is it important to have a body of standard job

Why is it important to have a body of standard job descriptions for hiing information security professionals?

  Create a new string to represent the corresponding full name

Create a new string to represent the corresponding full name, and display it on screen in format: Lastname, Firstname, Middle name.

  What general algorithm approach solving following problem

Help a robot move along its track (with spaces numbered 0 through 99) by calculating its new position when given `direction` equal to "forward" or "backward" and `number_of_moves` indicating a non-negative number of spaces

  Design the administration program for a veterinary office

this is an individual assignment. You will design the administration program for a veterinary office: This office attends to three different kinds of animals: Dogs, Birds, and Fish. You are to capture these with their respective classes. Each subclas..

  Who developed the ibm pc

What is the code name for the 12 engineers who developed the IBM PC and In which year did Amazon.com report that for the first time sales of e-books exceeded the sales of hardcover books?

  What would the data dictionary

what would the data dictionary look like for question 5a pg. 88

  Write organizational factors for benefits of new information

Write three organizational factors which can prevent a firm in completely realizing benefits of new information system, and give examples for each.

  Explain material protected under all copyright laws

All rights reserved. This material is protected under all copyright laws as they presently exist. No portion of this material may be reproduced, in any form or by any means, without permission in writing from publisher.

  Give a formal proof

Give a formal proof

  Which structure would be the best for the storyboard

Case 2-3 Michael wants to create a Website based on his famous cooking show. He would like to provide instructions on how to create some of his favorite dishes. He would like his recipes to be displayed in very simple, step by step pages.

  Function prototypes lack parameters

These function prototypes lack parameters; add whatever parameters you feel are necessary so that the program works without global variables. The program's output should reflect the bus's actions by reporting each change in state, along with the n..

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