Skip to content

Instantly share code, notes, and snippets.

View BarnabasMarkus's full-sized avatar

barnabas markus BarnabasMarkus

View GitHub Profile
@BarnabasMarkus
BarnabasMarkus / yolo.hs
Last active May 31, 2018 14:24
yolo is a special graph implementation in haskell. it is desinged to model the connections of hashtags in social media.
-- :l C:\Users\BMarkus\Dropbox\haskell\yolo.hs
-- | ABOUT YOLO
--
--
module Yolo
( Node
, Edge
, Weight
@BarnabasMarkus
BarnabasMarkus / trie.py
Last active July 13, 2017 13:10
trie implementation in python
#!/usr/bin/env python3
# T R I E
# Project Trie Implementation
# Author Barnabas Markus
# Email [email protected]
# Date 13.07.2017
# Python 3.6
# License MIT
@BarnabasMarkus
BarnabasMarkus / sudoku.hs
Last active May 3, 2017 12:45
sudoku solver haskell implementation
{- SUDOKU SOLVER -}
module Sudoku
(
solve
) where
import Data.List
@BarnabasMarkus
BarnabasMarkus / bst.hs
Last active May 8, 2017 09:55
binary search tree haskell implementation
{- BINARY SEARCH TREE IMPLEMENTATION -}
module Tree
( Tree(..)
, pretty
, size
, depth
, empty
, contains
, insert
@BarnabasMarkus
BarnabasMarkus / naive_bayes.py
Created January 18, 2017 14:15
naive-bayes classifier
#!/usr/bin/env python3
# N A I V E B A Y E S C L A S S I F I E R
# Project Naive-Bayes Classifier
# Author Barnabas Markus
# Email [email protected]
# Date 18.01.2017
# Python 3.6
# License MIT
@BarnabasMarkus
BarnabasMarkus / knn.py
Created January 13, 2017 13:03
k-nearest neigbors
#!/usr/bin/env python3
# K N N A L G O R I T H M
# Project KNN Algorithm Implementation
# Author Barnabas Markus
# Email [email protected]
# Date 13.01.2017
# Python 3.5.1
# License MIT
@BarnabasMarkus
BarnabasMarkus / bst.py
Created September 19, 2016 11:30
binary search tree
#!/usr/bin/env python3
# B I N A R Y S E A R C H T R E E
# Project Binary Search Tree
# Author Barnabas Markus
# Email [email protected]
# Date 19.09.2016
# Python 3.5.1
# License MIT
@BarnabasMarkus
BarnabasMarkus / ads.py
Last active September 14, 2016 17:01
abstract data strucutres
#!/usr/bin/env python3
# A B S T R A C T D A T A S T R U C T U R E S
# Project Abstract Data Structures (Stack and Queue)
# Author Barnabas Markus
# Email [email protected]
# Date 14.09.2016
# Python 3.5.1
# License MIT
@BarnabasMarkus
BarnabasMarkus / sieve.py
Created August 5, 2016 16:32
sieve of eratosthenes // find primes algorithm
#!/usr/bin/env python3
# S I E V E O F E R A T O S T H E N E S
# Project Sieve of Eratosthenes Prime Finder
# Author Barnabas Markus
# Email [email protected]
# Date 05.08.2016
# Python 3.5.1
# License MIT
@BarnabasMarkus
BarnabasMarkus / genetic.py
Created August 5, 2016 13:44
genetic algorithms
#!/usr/bin/env python3
# G E N E T I C A L G O R I T H M S
# Project Genetic Algorithm with Python
# Author Barnabas Markus
# Email [email protected]
# Date 29.02.2016
# Python 3.5.1
# License MIT