https://github.com/wojtekwanczyk/phex
Parallel Haskell Examples
https://github.com/wojtekwanczyk/phex
closestpair erathosieve examples fibonacci haskell imageconversion parallel quicksort
Last synced: 8 months ago
JSON representation
Parallel Haskell Examples
- Host: GitHub
- URL: https://github.com/wojtekwanczyk/phex
- Owner: wojtekwanczyk
- Created: 2018-01-28T09:57:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T09:57:17.000Z (about 8 years ago)
- Last Synced: 2025-03-12T18:33:34.398Z (about 1 year ago)
- Topics: closestpair, erathosieve, examples, fibonacci, haskell, imageconversion, parallel, quicksort
- Language: Haskell
- Homepage:
- Size: 4.23 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
Awesome Lists containing this project
README
# PHEX - Parallel Haskell Examples
Ludwik Ciechański & Wojciech Wańczyk
Projekt z przedmiotu *Programowanie Funkcyjne*.
Badanie czasu wykonania programów równoległych.
## Fibonacci
```haskell
fib :: Integer -> Integer
parFib :: Integer -> Integer
parFib' :: Integer -> Integer
parFib'' :: Integer -> Integer -> Integer
```
## Quicksort
```haskell
seqSort :: Ord a => [a] -> [a]
parSort :: (Ord a) => [a] -> [a]
optParSort :: (Ord a) => Int -> [a] -> [a]
```
## SumPrimes
```haskell
sumTwoPrimes :: Int -> Int -> Int
sumTwoPrimesPar :: Int -> Int -> Int
sumPrimesInRange :: [Int] -> Int
sumPrimesInRangePar :: [Int] -> Int
```
## ClosestPoint
```haskell
closest :: (Float, Float) -> [(Float, Float)] -> (Float, Float)
closestPar :: (Float, Float) -> [(Float, Float)] -> (Float, Float)
```
## ImageConversion
```haskell
toGreyScale :: Image PixelRGB8 -> Image Pixel8
```