-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multithreaded fibonacci series #475
Comments
Can you explain how multithreading is helpful here? The fastest algorithm that I know of is O(log n) to generate (n + 1)-th and n-th Fibonacci numbers. The more important question is what is the applicability of Fibonacci numbers? In which domain their efficient implementation is required to solve a non-trivial problem? Any references? |
Is this issue relating to implementation of fastest algorithm to find nth fibonacci series number? |
I would be happy to contribute to the project as I find my skills a good fit for the issue . As a GSSOC 23 member I humbly ask to allow me to contribute to the issue. |
I would be happy to contribute to the project as I find my skills a good fit for the issue . Please allow me to contribute to the issue. |
Well, I think it is better to use threading here for faster and efficient calculation and threading will also take less space as compared to recursion approach. |
Please refer the above content. I have created fibonacci.py file which includes the code for multi-threaded fibonacci series and I have verified it and checked it twice before submitting. I have also created test for that as per the problem given. Please see that and tell me if anything to change or edit, I will do that. I really liked this project. I want to work in this project in GSOC 2025. |
One thing also according to your example if we assume fib_multi(1) = fib_multi(2) = 1 then your examples are working but in the code I have assumed fib_multi(0)=fib_multi(1) = 1 and then the series follows. |
Pull request #593 |
Description of the problem
implementation of multi-threaded Fibonacci series with a method fib_multi with takes the parameter n. This is part of SWoC v2.
Example of the problem
References/Other comments
CLRS: chapter 27: Multithreaded algorithms
Not sure under which file hierarchy should this python file come under? Perhaps a new directory can be created to facilitate multithreaded algorithms.
The text was updated successfully, but these errors were encountered: