/PHEX

Parallel Haskell Examples

Primary LanguageHaskell

PHEX - Parallel Haskell Examples

Ludwik Ciechański & Wojciech Wańczyk

Projekt z przedmiotu Programowanie Funkcyjne.

Badanie czasu wykonania programów równoległych.

Fibonacci

fib :: Integer -> Integer
parFib :: Integer -> Integer
parFib' :: Integer -> Integer
parFib'' :: Integer -> Integer -> Integer

Quicksort

seqSort :: Ord a => [a] -> [a]
parSort :: (Ord a) => [a] -> [a]
optParSort :: (Ord a) => Int -> [a] -> [a]

SumPrimes

sumTwoPrimes :: Int -> Int -> Int
sumTwoPrimesPar :: Int -> Int -> Int
sumPrimesInRange :: [Int] -> Int
sumPrimesInRangePar :: [Int] -> Int

ClosestPoint

closest :: (Float, Float) -> [(Float, Float)] -> (Float, Float)
closestPar :: (Float, Float) -> [(Float, Float)] -> (Float, Float)

ImageConversion

toGreyScale :: Image PixelRGB8 -> Image Pixel8