Code Monkey home page Code Monkey logo

parallel-processing's Introduction

Parallel-Processing-Nadig

Repository for parallel processing.

This repository contains both parallelized algorithms and tutorials/examples of parallel computing mechanisms in different languages.

Parallelized algorithms:

  1. K-Nearest Neighbours - Machine Learning
  2. Similarity Metrics - Algorithms for finding the similarity between data points * Euclidean Distance * Cosine Similarity * Manhattan Distance * Minskowski Distance * Jaccard Similarity

Implementations | Examples | Tutorials:

Parallel Computing in Python using Multiprocessing library

  • Using Multiprocessing Pools
  • Using Multiprocessing Processes

Parallel Computing in C using OpenMP

  • Linear Search
  • Selection Sort
  • Merge Sort

Parallel Computing in JavScript using Web Workers

  • THree Hump Camel Function
  • Task Parallelism: Quicksort and Mergesort
  • Pixel Manipulation

parallel-processing's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

parallel-processing's Issues

Issue regarding reduction declaration

https://github.com/madhug-nadig/Parallel-Processing-Nadig/blob/c52c90fc8e93d69dc88198a5948cdb88daac4141/Parallel%20Programming%20in%20C%20-%20Selection%20Sort.c#L17

Should be replaced with:

#pragma omp declare reduction(maximum : struct Compare : omp_out = omp_in.val > omp_out.val ? omp_in : omp_out) initializer(omp_priv=omp_orig)

otherwise the Compare struct members will be initialized to the default value (0) in the body of the for loop that uses the reduction (regardless of the fact that struct members have been initialized before the loop).

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.