Giter VIP home page Giter VIP logo

krypto-hs-mannheim's Introduction

krypto-hs-mannheim

Sources for KRV lesson practices


Übung 1

Aufgabe a)

Usage

ruby euklid.rb zahl1 zahl2

Example
$ ruby euklid.rb 234 678
Check with internal function: ggT(234, 678): 6
a: 678 b: 234 r: 210 y: 2
a: 234 b: 210 r: 24 y: 1
a: 210 b: 24 r: 18 y: 8
a: 24 b: 18 r: 6 y: 1
a: 18 b: 6 r: 0 y: 3
ggT(234, 678): 6

Aufgabe b)

Usage

ruby extended_euklid.rb zahl1 zahl2

Example
$ ruby extended_euklid.rb 128 34
a: 128 b: 34
Step: r: [128, 34, 26] q: [3]
Step: r: [128, 34, 26, 8] q: [3, 1]
Step: r: [128, 34, 26, 8, 2] q: [3, 1, 3]
Step: r: [128, 34, 26, 8, 2, 0] q: [3, 1, 3, 4]
x: 4
y: -15

krypto-hs-mannheim's People

Watchers

James Cloos avatar Manuel Bäurle avatar Zheng Zeng 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.