Skip to content
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

fast-fib #272

Closed
Closed

Conversation

collinjackson
Copy link
Contributor

@collinjackson collinjackson commented Aug 16, 2024

Example program that computes a Fibonnaci sequence with a configurable n and seed values.

It's using an iterative algorithm, which is O(n) runtime, faster than the naive recursive algorithm in fib.rs, which is O(fib(n)).

The result is returned as output.

Copy link

vercel bot commented Aug 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nexus-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 7:10pm

@duc-nx
Copy link
Contributor

duc-nx commented Aug 21, 2024

Before you merge, I'll investigate why the write output doesn't print out.

@duc-nx duc-nx force-pushed the @collinjackson/example-program-modifications branch from 7a98413 to 8194945 Compare August 23, 2024 19:01
@duc-nx
Copy link
Contributor

duc-nx commented Aug 23, 2024

I made a push that print out the output. Feel free to revert it. Very simple change.
My output:

Setting up Nova public parameters...
Compiling guest program...
Proving execution of vm...
>>>>> Logging
2
<<<<<
Verifying execution...  Succeeded!

@collinjackson
Copy link
Contributor Author

Closing without merge since we're changing out the default program for the upcoming testnet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants