Giter VIP home page Giter VIP logo

primitive-pythagorean-triplets's Introduction

Primitive-Pythagorean-triplets

Copyright Adina-Maria Amzarescu 2022

Racket project for the Programming Paradigms course.

This project was done in 4 stages.


The first stage:

File: ppt.rkt

Writing simple programms. Working with lists and recursive functions on the stack.

Main functions:

  • car
  • cdr
  • list

The second stage:

File: ppt2.rkt

The main focus in on curry and uncurry functions and the abstraction of functions with similar implementations.

Using functions like:

  • map
  • apply
  • foldr / foldl

The third stage:

File: cryptosystem.rkt

At this stage it's implemented a cryptosystem with symmetric keys, in which the key generation is based on the theory of Pythagorean triplets.

Main concept: static variable binding expressions


Last stage:

File: ppt3.rkt

In the final stage the focus is on how we get an entire sequence ordered by TPP, where the order depends on the generation method used. First it is implemented the flow of triplets corresponding to the indexing we worked with in the previous stages, then another stream containing the same triplets in a different order, corresponding to a new method of generation.

Main concept: streams


Resources:

  1. Pythagorean Triples and Cryptographic Coding
  2. Data Encryption and Decryption Using New Pythagorean Triple Algorithm

primitive-pythagorean-triplets's People

Contributors

adinaamzarescu 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.