Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need complete solution for this and also it asks to shiw polynomial time algorithm so please provide me everything Problem Suppose we want to

I need complete solution for this and also it asks to shiw polynomial time algorithm so please provide me everything image text in transcribed
Problem Suppose we want to replicate a file over a collection of n servers, labeled s1, s2,., Sn. To place a copy of the file at server St results in a placement cost of ci, for an integerci>0 Now, if a user requests the file from server Si, and no copy of the file is present at Si, then the servers Si+1, Si+2, Si+3... are searched in order until a copy of the file is finally found, say at server Sj, where j > i. This results in an access cost of j -i. (Note that the lower-indexed servers S-1, Si--2, are not consulted in this search.) The access cost is 0 if Si holds a copy of the file. We will require that a copy of the file be placed at server Sn, so that all such searches will terminate, at the latest, at Sn. We'd like to place copies of the files at the servers so as to minimize the sum of placement and access costs. Formally, we say that a configuration is a choice, for each server St with i 1,2, n - 1, of whether to place a copy of the file at St or not. (Recall that a copy is always placed at Sn.) The total cost of a configuration is the sum of all placement costs for servers with a copy of the file, plus the sum of all access costs associated with all n servers. Give a polynomial-time algorithm to find a configuration of minimum total cost

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions