Giter Site home page Giter Site logo

canonical_expansion's Introduction

Canonical Expansion Project

Short Description

This project implements an algorithm to find the canonical expansion of a given number. It incorporates various factorization methods, including trial divisions, Pollard's Rho method, and others, to decompose numbers into their prime factors.

Required Software

  • C++ compiler (GCC or Clang)
  • CMake (version 3.10 or higher)
  • Make
  • Docker (for building and running within a container)
  • GMP (GNU Multiple Precision Arithmetic Library)

How to Use

Building and Running the Executable

  1. Clone the repository and navigate to the project directory.
  2. Build the project using CMake and Make. Use the following commands:
    cmake . && make -j12
  3. Run the executable with a number as an argument to find its canonical expansion. For example:
    ./canonicalExpansion 666

Docker hub link:

https://hub.docker.com/repository/docker/omega111111/factorization/general

Building and Running with Docker

  1. Ensure Docker is installed and running on your system.
  2. Build the Docker image from the Dockerfile provided in the project directory. Replace your-image-name with your preferred name for the Docker image:
    docker build -t your-image-name .
  3. Once the image is built, run it using Docker. The following command runs the container and executes the canonical expansion algorithm with a specified number (e.g., 666):
    docker run your-image-name ./canonicalExpansion 666

Replace your-image-name with the name you used when building the Docker image.

By following these steps, you can compile and run the canonical expansion algorithm both directly on your machine and within a Docker container.

canonical_expansion's People

Contributors

maksymdidukh avatar prumat4 avatar avept avatar

Watchers

 avatar

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.