Skip to content

giuseppe16180/kotlin-coding-theory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Kotlin Coding Theory

Simple collection of traditional Coding Theory algorithms made in Kotlin, with a touch of functional programming.

Every script is meant to be used with kscript.

Burrows–Wheeler Transform

You can find a simple implementation of the Burrows–Wheeler transform in the file bwt.kt.

Usage example

$ kscript bwt.kt -d 'hello world'
'olhdrellwo ' 3

$ kscript bwt.kt -i 'olhdrellwo ' 3 
hello world

Fibonacci Coding

You can find a simple implementation of the Fibonacci Coding in the file fibonacci.kt.

Usage example

$ kscript fibonacci.kt 14          
 1 ->        11
 2 ->       011
 3 ->      0011
 4 ->      1011
 5 ->     00011
 6 ->     10011
 7 ->     01011
 8 ->    000011
 9 ->    100011
10 ->    010011
11 ->    001011
12 ->    101011
13 ->   0000011
14 ->   1000011

About

Coding Theory algorithms in Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy