Find Jobs
Hire Freelancers

Solve the K-Server problem using dynamic programming using Xlib for when K=3.

$10-30 USD

В роботі
Опублікований over 7 years ago

$10-30 USD

Оплачується при отриманні
The aim of this project is to model an instance of the k-server problem for three servers with input given from the screen. Initially the servers are located at the top left corner (yellow), top right (red) and middle of the bottom line (blue). The user specifies a sequence of request points by left mouseclicks in the window, terminated by a right mouseclick. You show after each mouseclick a strategy of your choice (in thin yellow/red/blue lines) then after the final right mouseclick you compute and display the optimal strategy (in thick yellow/red/blue lines). Your program then prints (to stdout) the total length of both strategies, and the competitiveness ratio that you achieved. You can find the optimal strategy by a dynamic-programming type argument: If the input sequence was n request points long (p1,...,pn), you create an n × n × n × n array; the entry cost[i][j][k][t] is the cost of the cheapest sequence of moves that starts at the given starting positions and serves the requests up to time step t, and ends up with the yellow server at pi, the red server at pj, and the blue server at pk. One of ijk must be t, since the last request at pt was served, all other table entries have cost ∞. Any possible table entry must have been reached by moving one of the three servers from a position at step t − 1. The attached file is a sample project using xlib written in C. The project should model the attached sample project
ID проекту: 12265380

Про проект

1 пропозиця
Дистанційний проект
Активність 7 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними

Про клієнта

Прапор UNITED STATES
Lake's Bay, United States
5,0
2
Спосіб оплати верифіковано
На сайті з груд. 2, 2016

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.