Find Jobs
Hire Freelancers

binary search in python.

$30-250 USD

Imeghairiwa
Imechapishwa over 1 year ago

$30-250 USD

Kulipwa wakati wa kufikishwa
I have a function: def generate_sequence(a, b, y, n, length): sequence = [a, b] for i in range(2, length): next_element = (sequence[i-1] + y) % n [login to view URL](next_element) return sequence where: a is first element of sequence b is second element of sequence y is a constant value beetween elements in sequences n is prime as modulo length - is a how much elements must be generated. to generetate samples you should use: n= 340282366920938463463374607431768211507 a= 143175619015091158262702567736164681468 b= 335999156169938687300833334560756099505 y= 192823537154847529038130766824591418037 length = 30 I want to get binary search algorithm which: tell me what position in the sequence number c, which is only the upper part of the number being sought, has example: elements in sequences: elem 188540326403847752875589493953579306035 2 elem 41081496637756818450345653346402512565 3 elem 233905033792604347488476420170993930602 4 elem 86446204026513413063232579563817137132 5 elem 279269741181360942101363346388408555169 6 elem 131810911415270007676119505781231761699 7 elem 324634448570117536714250272605823179736 8 elem 177175618804026602289006431998646386266 9 elem 29716789037935667863762591391469592796 10 elem 222540326192783196901893358216061010833 11 elem 75081496426692262476649517608884217363 12 elem 267905033581539791514780284433475635400 13 elem 120446203815448857089536443826298841930 14 elem 313269740970296386127667210650890259967 15 elem 165810911204205451702423370043713466497 16 elem 18352081438114517277179529436536673027 17 we are looking "279269741181360942101363346388408555169" which is number 6 in sequence and we are looking for high part of" 279269741181360942101363346000000000000" , and it should tell me that is "number six in sequences". are you able to that?
Kitambulisho cha mradi: 35809450

Kuhusu mradi

10 mapendekezo
Mradi wa mbali
Inatumika 1 yr ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
10 wafanyakazi huru wana zabuni kwa wastani $122 USD kwa kazi hii
Picha ya Mtumiaji
Hi, How are you? Very glad to bid your project because my skills are fitted in this project well. I am expert in Python , machine learning and image processing. I am very familiar with binary search. I will do my best to provide the results you are looking for. If you award me, the project will be done perfectly. Thanks.
$100 USD ndani ya siku 3
5.0 (12 hakiki)
5.4
5.4
Picha ya Mtumiaji
Hi there yes I am expert in PYTHON and I can help you out for sure Kindly send me a message we'll discuss further Looking forward to hear you Thank you
$50 USD ndani ya siku 1
5.0 (80 hakiki)
4.9
4.9
Picha ya Mtumiaji
Hi, We have a lot of experience in Python and have worked on similar projects. We would love to show our work and we can deliver this quickly. Please connect with us to take this forward.
$200 USD ndani ya siku 7
5.0 (13 hakiki)
4.5
4.5
Picha ya Mtumiaji
Hi, Sir. Thank you for your proposal. I am eager to work with your idea. As for python, I have been working on it for more than 8 years. As you may know, there are many applications based on Python such as pyqt, pycv, and deep learning. I have a lot of experience in these fields. Nowadays, Python is also applied to Web development. My major skills for web projects are Django, Flask, and Web scrapping. The most important things I am focused on are credit and integrity. I will do my best until you satisfy and I am sure you will save money and time from working with me. I am sure I am the person who you are looking for. I hope we could have a chat as soon as possible. I want to know your idea in more detail. Best regards...
$111 USD ndani ya siku 3
4.7 (9 hakiki)
3.7
3.7
Picha ya Mtumiaji
Hope you are doing great today. Glad to inform you that I have built multiple projects in PHP, Laravel, React Js, Java, Software Architecture, HTML,CSS3,MAGENTO,ELEMENTOR,WORDPRESS,NODE.JS SHOPIFY, WIX, and ASP.NET in my career so far I. Please Note: I would love to connect with you over the chat for further discussion and start as soon as possible Please visit my profiles for reviews and get fully satisfied with my services and customer support https://www.freelancer.com/u/ahmedwa533m Hello, How Are You? I have read your job description completely I have experience in Python and I am confident that I can produce quality content for you that will be of interest to your readers. I am available for a full-time writing position, and I am happy to work on a freelance basis if that is what you prefer. I look forward to hearing from you soon! Thank you for your time. Regards Ahmed Waseem Please come over chat and discuss your requirement in a detailed way.
$110 USD ndani ya siku 5
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
Hello, I'm Hassan, from Morocco, Industrial engineer and python developer, I have read your description carefully and focused, so l will help you to do your project until to be satisfied you can trust on me. I will be very happy to help you. Contact me. Best regards. Hassan Industrial engineer.
$70 USD ndani ya siku 7
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
Yes, I am able to do that. One way to implement a binary search algorithm for this task would be to: Set the lower and upper bounds of the search range to the first and last elements of the sequence, respectively. While the lower bound is less than the upper bound, perform the following steps: a. Calculate the middle element of the search range by averaging the lower and upper bounds. b. Compare the upper part of this middle element with the upper part of the number being sought. c. If they match, return the position of this middle element in the sequence. d. If the upper part of the middle element is less than the upper part of the number being sought, set the lower bound to be one more than the middle element. e. If the upper part of the middle element is greater than the upper part of the number being sought, set the upper bound to be one less than the middle element. If the algorithm has not returned by this point, the number being sought does not exist in the sequence.
$100 USD ndani ya siku 7
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
hai i can do your project perfectly and i will deliver it on time see my work you will get satisfied with my work and i have done works like this so please give me the details of the project. Thanks
$30 USD ndani ya siku 2
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya POLAND
Bydgoszcz, Poland
0.0
0
Njia ya malipo imethibitishwa
Mwanachama tangu Apr 24, 2019

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.