Find Jobs
Hire Freelancers

Algorithm for constrained set partition (combinatorics with C++)

$30-250 USD

Suljettu
Julkaistu lähes 3 vuotta sitten

$30-250 USD

Maksettu toimituksen yhteydessä
I need a reasonably efficient algorithm implemented for a specific integer partition problem. In short, I have a multiset of integers, each of which belongs to a subset. I don't know the matching of integers to subsets; only the number and sum of elements in each subset. In general this means there are multiple partitions that fit the constraint. If we assume these partitions are equally likely, I want to find the likelihood that each integer value may belong to each of the subsets. I have written a more formal description of the problem here: [login to view URL] I've been struggling to find a good algorithm for this presumably NP-hard problem. It's clearly related to the set partition problem, but I'm having trouble finding the right approach given the many, many variants out there. Deliverables C++ code which takes two arbitrary tables of integers as input (see PDF for an example), and outputs a table with four columns: each integer value x_k from the multiset, repeated for each of the subsets in column 2 the subset id j=1,...,J, repeated as needed to produce each combination with column 1 the number of possible partitions where integer x_k is in subset j (numerator of the probability) the number of possible partitions (denominator of the probability) – same value for all rows I need an algorithm that does not need all partitions in memory as it enumerates through them, or it may fail on more complex cases. Some lexicographic approach would be ideal in case e.g. I want to parallelize the code later or sample partitions rather than fully enumerate (this is NOT part of this request!). The use of GMP might be a good idea to handle larger integers. We can decide on the data format that's most convenient for input and output. I think CSV may be okay at this stage. I'll provide some examples for testing the algorithm. This code will be used for academic research, and may be published at some point in the future, so I'd like to put the code under a MIT license (negotiable). Soft deadline, but the sooner the better of course :) Happy to clarify anything that's not entirely clear!
Projektin tunnus (ID): 30493029

Tietoa projektista

4 ehdotukset
Etäprojekti
Aktiivinen 3 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
4 freelancerit tarjoavat keskimäärin $113 USD tätä projektia
Käyttäjän avatar
SOFTWARE ARCHITECTURE EXPERT!!! EXPERT IN C++ HELLO DEAR CLIENT I have gone through your project details and the work is DOABLE since its within my area of EXPERTISE.I will tackle are required guideline to deliver desired goal Please consider my bid. THANKS
$140 USD 7 päivässä
4,7 (33 arvostelua)
5,0
5,0
Käyttäjän avatar
Hi, I've read your description carefully. I have more than 11 years experience with C/C++/Algorithm. ************************************************************************************* I'm confident in your project with high quality on time. Looking forward to discuss with you project more detail via chatting. I'm very happy to put my bid on your project. Thanks & Best regards!
$120 USD 5 päivässä
5,0 (2 arvostelua)
1,1
1,1
Käyttäjän avatar
I will read all notes and verify the notes. I will do my best. Please grant me this project to me.
$140 USD 7 päivässä
0,0 (0 arvostelua)
0,0
0,0
Käyttäjän avatar
Hello, I have MSc in computational engineering and PhD. I have written C++ codes. I can deliver your requirements. Please fell free to contact me to discuss your problem.
$50 USD 7 päivässä
0,0 (0 arvostelua)
0,0
0,0

Tietoja asiakkaasta

Maan SWITZERLAND lippu
Zurich, Switzerland
0,0
0
Liittynyt kesäk. 10, 2021

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.