Git Product home page Git Product logo

parallel's Introduction

Parallel Algorithms

My solutions to projects assigned in CS452: Parallel Algorithms at Butler University. Languages Used: C++ and MPI

Class Examples

This folder contains all the files we used while learning about MPI in class. My notes are in the comments of the code. The files in this folder are very simple programs that are used to teach the basic MPI API calls.

Project 1 - Get to Know MPI

This project was focused on getting acquainted with MPI. The outputs of these programs can be found at the bottom of the program files in the comments.

  • tworings.cpp - The first ring starts with process 0 sending one message to the next even process, which sends to the next even process, and so on until the last process sends its message back to process 0. THe second wring starts with process 1 and sends its message to the previous even process, which continues until the last process sends the message back to process 1. It does not matter what order the messages are sent in as long as they are sent.
  • part2.cpp - Use the MPI scatter and reduce API calls to find the maximum, minimum, and average values in an array.
  • part3.cpp - REad in a text file full of letters and figure out how many of each letter there are in the file using the scatter and gather (or reduce) MPI API calls. The text file that my program reads from is mordorsecode.txt

Project 2 - Sequential Mergesort

This program generates an array of random numbers and then uses sequential mergesort to sort this array.

pmerge.cpp - Parallel Mergesort

Affectionately called pmerge. This program generates a random array and sorts it using the Parallel Mergesort Algortihm.

parallel's People

Contributors

gabbirenee avatar

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.