Find Jobs
Hire Freelancers

DESIGN ANALYSIS OF ALGORITHMS

$10-30 USD

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

$10-30 USD

Оплачується при отриманні
The knapsack problem is that given a set of positive integers { a1,……,an } , and knapsack of size s , find a subset A of { a1,……, an }such that the sum of elements in A is the largest , but at most s. Part 1. Use the dynamic programming method to design an algorithm for the knapsack problem. Prove the correctness of your algorithm. Show the computational time of your algorithm carefully. Part2. Use C++ to implement the function below int knapsack ( int *a, //the input integers int n, // the number of input integers int s, // knapsack size int *subset, //subset elements int &size_of_subset // the number of items in the subset ) Test your program for the following knapsack problem: Input list: 5, 23, 27, 37, 48, 51, 63, 67, 71, 75, 79, 83, 89, 91, 101, 112, 121, 132, 137, 141, 143, 147, 153, 159, 171, 181, 190, 191. With knapsack size 595. Print out a subset with the sum of its elements so that the sum has the closest distance to 595. Also print out your source code.
ID проекту: 9837717

Про проект

6 пропозицій(-ї)
Дистанційний проект
Активність 8 yrs ago

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

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

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
hi I am CS grad Student and love to do online programming contest . I am [login to view URL] with the knapsack problem. I can deliver it best. thanks
$15 USD за 4 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
6 фрілансерів(-и) готові виконати цю роботу у середньому за $27 USD
Аватарка користувача
Just did this for another person. Got interested in the problem, and working on an optimized version. However, had to stop due to other commitments. Can do it for you.
$25 USD за 1 день
5,0 (2 відгуки(-ів))
1,8
1,8
Аватарка користувача
Hello. How are u. I saw your description . I understood it and can do it well. I have done several project like this. I'm an expert in Data Structures and Algorithms. And I know Java ,C/C++,C# and Python well. I'm interested this project. I want to discuss with you about this project. If it's possible,please contact me and explain more detail. I wait your good reply. Bye.
$30 USD за 1 день
5,0 (3 відгуки(-ів))
1,5
1,5
Аватарка користувача
I am a PhD student in computer science, specializing in data mining and machine learning. I am well versed with c++ and dynamic programming. I would be happy to help you in your project and we could discuss details of your project in chat.
$30 USD за 0 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
Hello Sir/Madam, We have gone through the details you have provided and we have already worked on a similar project before and can deliver as u have mentioned and would be pleased to work on this with you to deliver the results that you have expected and we have already worked on a similar project before and can deliver as u have mentioned We are sure you will not be disappointed if you give us this opportunity. Our team is experienced, creative & efficient enough to get your job done well. We have an impeccable record and all our clients enjoy working with us, we are sure that you will too, our prices are cheapest in market. can u provide your email or sky-pe etc for further discussion about the project I am ready to discuss with you with best Regards
$25 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
A proposal has not yet been provided
$30 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I have Ivy League degree in computer science. Also received offers from Google, Microsoft, Uber, Bloomberg etc.
$30 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
Edinburg, United States
5,0
1
На сайті з лют. 21, 2016

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

Інші роботи від цього клієнта

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