Find Jobs
Hire Freelancers

Task C++ or python

$10 USD

Închis
Data postării: peste 4 ani în urmă

$10 USD

Plata la predare
The device consists of several blocks. For each block, the probability of its failure-free operation for a certain time (reliability) is known. If at least one of the device blocks fails, the entire device ceases to work, and therefore the probability of failure-free operation of the entire device P is found as the product of the reliability of its blocks: P device = p1 · p2 · ... · pN. To increase the reliability of the device, it was decided to backup some units. Block reservation is the connection of one or several of the same blocks in parallel to it. In the event of an accident of the first block, the second one will perform its functions, etc., this replacement will not affect the reliability of all other blocks. We assume that the probability of failure-free operation of a group of K identical blocks (including the original one) is found as follows: p '= 1 - (1 - p) K, where p is the probability of failure-free operation of one such block. The probability of failure-free operation of the device is then defined as P'device = p'1 · p'2 · ... · p'N. The cost of each unit and the amount S allocated for the modernization of the entire device are known. It is required to find the maximum probability of device uptime, which we can obtain, provided that the total cost of the added blocks should not exceed S. Input data The first line of the input contains an integer N - the number of blocks in the device (1 ≤ N ≤ 30). The next N lines contain two numbers separated by a space - the probability of failure-free operation of the next block pi and its cost si (pi is a real number, 0 <pi ≤ 1, si is an integer, 1 ≤ si ≤ 1000). The last line contains an integer S - the amount allocated for the modernization of the device (0 ≤ S ≤ 1000). Output Print one number - the probability of the device’s uptime after modernization with an accuracy of at least four digits after the decimal point. For example: Input: 3 0.6 10 0.7 14 0.8 8 30 Output: 0.62899
ID-ul proiectului: 22409390

Despre proiect

6 propuneri
Proiect la distanță
Activ: 4 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
6 freelanceri plasează o ofertă medie de $21 USD pentru proiect
Avatarul utilizatorului
Hi, I'm an expert in C++ and python programming. I'm sure that I can easily do this project for you. We can have a chat about it. Thanks.
$30 USD în 1 zi
4,9 (338 recenzii)
7,3
7,3
Avatarul utilizatorului
Hi, The problem you are posting is not straightforward as a brute force solution will be very expensive computationally. However, i have figured out a way to solve this which will be much faster than the brute force approach. I can develop this in python but as you can see, the cost is higher than what you had put as the expected budget. Let me know if you are interested and we can discuss this further. thanks sanjay
$25 USD în 5 zile
5,0 (8 recenzii)
3,8
3,8
Avatarul utilizatorului
C++ Programming, Python skilled professional with the required expertise. Can help to deliver the solution as needed on the expected lines. Please private message me to discuss the project further. Hope to build a long term business relationship. Thanks!
$36 USD în 7 zile
5,0 (1 recenzie)
2,0
2,0
Avatarul utilizatorului
Hi Sir, Python Core Development Course from Saylani Welfare Trust,2019 06 Months CADCAM Creo 2.0 Course from KTDMC in Collaboration with NAVTTC 14-May to 30-October 2018 Certificate of Computer Operator from Saylani Welfare Trust, 2014 AutoCad and SolidWorks. Python Automation Bot Design,Web Scrapping and Basic Django Framework Want to check my portfolio come on chat Khizer
$10 USD în 7 zile
0,0 (0 recenzii)
0,0
0,0
Avatarul utilizatorului
I believe I will be the best person for your work. I am an Algorithm Expert and had solved lots of programming problems in different online judges. So hope you will give me your work.
$10 USD în 1 zi
0,0 (0 recenzii)
0,0
0,0
Avatarul utilizatorului
hello, i am a university student in computer engineering and i would be happy to solve your problem.
$15 USD în 5 zile
0,0 (0 recenzii)
0,0
0,0

Despre client

Steagul RUSSIAN FEDERATION
Vologda, Russian Federation
0,0
0
Membru din nov. 19, 2019

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.