Git Product home page Git Product logo

collatz's Introduction

Convergence verification of the Collatz problem

Build Status

Details

This repository contains computer programs implementing a completely new approach to calculating iterates of the Collatz function. The trick is that, when calculating the function iterates, the programs switch between two domains in such a way that they can always use the count trailing zeros (ctz) operation and a small lookup table with pre-computed powers of three. This approach differs significantly from the commonly used approach utilizing a space-time tradeoff using huge lookup tables. Mathematical details on this approach are given here. The programs can check 128-bit numbers.

Contact

David Barina [email protected]

License

This project is licensed under the terms of the MIT license.

References

collatz's People

Contributors

xbarin02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collatz's Issues

Use <stdint.h> types

Hi,

You use unsigned long instead of uint64_t, because GMP forces you to do so.

I had the same problem with GSL , and I solved it writing a wrapper around its functions, and adding some compile-time assertions to ensure that the types are the same.

I would like to show you an example of what I did, so that if you like it, you can apply it to your code. I think it will look better with uint64_t.

Assertions:
https://github.com/alejandro-colomar/libalx/blob/master/inc/libalx/base/assert/assert.h

Wrappers:
https://github.com/alejandro-colomar/libalx/blob/master/inc/libalx/extra/gsl/statistics/mean.h

You could either write wrappers (I would do that), or just assert that the types are the same and use the typedefs directly.

cl.h is missing

When compiling the gpuworker, I'm getting a fatal error from CL/cl.h being missing. There isn't any file in the repository for this file, so how do I get it?

cc -std=c89 -pedantic -Wall -Wextra -march=native -O3 -D_XOPEN_SOURCE=500 -DCL_TARGET_OPENCL_VERSION=220 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DSIEVE_LOGSIZE=16 -DTASK_UNITS=16 -DUSE_ASYNC_CALL gpuworker.c -lOpenCL -o
gpuworker
gpuworker.c:11:10: fatal error: CL/cl.h: No such file or directory
11 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
make: *** [<builtin>: gpuworker] Error 1

website glitch

The website (collatz-problem.org) seems to have a glitch that's making the assignment percentage show as more than 100%. Also, the time left for verification is stuck on Calculating...
screenshot of problem

Can we contribute using BOINC?

Since the website isn't clear, I'm just wondering if this project is distributed (such as BOINC) or if this project just runs on your computer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.