Find Jobs
Hire Freelancers

Build a code for me in c# or python

₹600-1500 INR

Stengt
Lagt ut over 4 år siden

₹600-1500 INR

Betalt ved levering
Non-deterministic 0/1 Knapsack solver You need to be alert to (usually minor) changes that may be made to the assignment statement or to the guidelines after the assignment is first put up. Refresh this frame and re-read the assignment carefully before you make your final submission. Assignment statement In the knapsack problem a set of items, each with a mass and a payoff are to be packed in a knapsack which can accomodate a given maximum mass. The aim is to choose the items so as not to exceed the capacity of the knapsack, while maximising the payoff. All of these are given as integers. You are required to read the capacity of the knapsack sequence of <mass, payoff> pairs and determine the choice of items to maximise the payoff without violating the knapsack capacity in the following two ways: [login to view URL] a deterministic technique and [login to view URL] a non-deterministic technique In each case do the following: [login to view URL] the count of execution of the steps where the choices are made and [login to view URL] the choices made and the payoff thus obtained. You need to submit a text report including the following: [login to view URL] of the deterministic problem solution scheme [login to view URL] of the non-deterministic problem solution scheme, including the using of OS primitives that are used and the relevant system calls, and [login to view URL] whether or not the given problem is in the class NP Your report should also contain three example formulae which are satisfiable and three example formulae that are not. These examples are to be developed by you (not taken from anywhere).
Prosjekt-ID: 20945634

Om prosjektet

4 forslag
Eksternt prosjekt
Aktiv 5 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
4 frilansere byr i gjennomsnitt ₹1 450 INR for denne jobben
Brukeravatar
I am realy good with python and I learned this subject already Relevant Skills and Experience Python, and I learn this subject at university
₹1 450 INR om 2 dager
0,0 (0 omtaler)
0,0
0,0
Brukeravatar
There are some issues with your description. Regarding solving it deterministically, it can be done pseudo-polynomially (although it's truly exponentially) using dynamic programming. That can be implemented in C# or Python, no problem. Regarding solving it "nondeterministically", I guess the idea is to solve it polynomially (in a nondeterministic Turing machine), to show that it's in NP. The problem here is that you have to turn the problem into a decision problem (one that returns a boolean), so you have to add a quota to the parameters. The solution is based on "guessing" an order to add the items to the knapsack. This solution cannot be implemented in C# or Python (since these do not implement nondeterministic Turing machines). An implementation of the idea would need to "backtrack" to consider all possible item orderings, leading again to an exponential time (deterministic) solution. The problem is NP-complete, so no surprise here. I didn't understand the "3 example formulae which are satisfiable and 3 that are not". I don't see this having to do with knapsack, but more with SAT. Let me know if you want me to solve it for you.
₹2 000 INR om 7 dager
5,0 (1 omtale)
0,0
0,0
Brukeravatar
Python Lover
₹1 300 INR om 1 dag
0,0 (0 omtaler)
0,0
0,0

Om klienten

INDIAs flagg
Hyderabad, India
0,0
0
Medlem siden aug. 7, 2019

Klientbekreftelse

Andre jobber fra denne klienten

Pyton & c# coder
₹1500-12500 INR
Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.