Difference between revisions of "Lucky Charms"

From CDOT Wiki
Jump to: navigation, search
(A2: Parallelize)
Line 58: Line 58:
 
=== Source Code ===
 
=== Source Code ===
 
===== bubble sort =====
 
===== bubble sort =====
[[File:A2-bubblesort.png]]
+
[[File:BubbleS.png]] => [[File:A2-bubblesort.png]]
 
===== selection sort =====
 
===== selection sort =====
[[File:A2-selectionsort.png]]
+
[[File:SelectionS.png]] => [[File:A2-selectionsort.png]]
 
===== insertion sort =====
 
===== insertion sort =====
Cant be parallelized.
+
Can't be parallelized.
 
===== radix sort =====
 
===== radix sort =====
 
----
 
----
Line 74: Line 74:
 
=== Source Code ===
 
=== Source Code ===
 
===== bubble sort =====
 
===== bubble sort =====
[[File:A3-bubblesort2.png]]
+
[[File:A2-bubblesort.png]] => [[File:A3-bubblesort2.png]]
 
===== selection sort =====
 
===== selection sort =====
[[File:A3-selectionsort.png]]
+
[[File:A2-selectionsort.png]] => [[File:A3-selectionsort.png]]
 
===== radix sort =====
 
===== radix sort =====
 
----
 
----

Revision as of 20:57, 10 April 2018


GPU610/DPS915 | Student List | Group and Project Index | Student Resources | Glossary

Team Members

  1. Yankai Tian
  2. Jay Ansin
 Email All

Projects

  1. sudoku - by Tian Debebe (CMU) not affiliated with Yankai whatsoever
  2. sorting algorithms - Alex Allain cprogramming.com, Animations


Progress

A1: Select and Assess

There wasn't a project source code for this. Everything was written by yours truly. etc. etc. etc. The 10 algorithms tested are:

Source Code

bubble sort

BubbleS.png

selection sort

SelectionS.png

insertion sort

InsertionS1.png InsertionS2.png

merge sort

MergeS.png

heap sort

HeapS.png

quick sort

QuickS.png

counting sort

CountingS.png

radix sort

RadixS.png

bucket sort

BucketS.png

shell sort

ShellS.png

files

sort.h algorithms file, main.cpp (v1) file, main.cpp (v2) file, utilities.h file


Results

Flat Profile

TBC a1Flat1.png

Call Graph

TBC a1Call1.png

Clustered Column Chart

Desktop Screenshot 2018.04.02 - 17.14.57.19 - Copy (2).png



A2: Parallelize

Source Code

bubble sort

BubbleS.png => A2-bubblesort.png

selection sort

SelectionS.png => A2-selectionsort.png

insertion sort

Can't be parallelized.

radix sort

Results

Visual Profiler

Parallel NSight

Comparison

A3: Optimize

Source Code

bubble sort

A2-bubblesort.png => A3-bubblesort2.png

selection sort

A2-selectionsort.png => A3-selectionsort.png

radix sort

Results

Visual Profiler

Parallel NSight

Comparison