Changes

Jump to: navigation, search

Avengers

595 bytes added, 00:30, 16 February 2019
Jaideep - Array Processing
I used the pseudo-code provided to create a program that creates a 2-dimensional array. The purpose of the program is to create and populate a 2-dimensional array of size n (provided by the user) with random numbers. The code is available in the link below:
!Insert link here![https://github.com/jsidhu26/DPS915 Link to Array Processing code]
After using '''gprof''' to profile my program, a call graph is generated with this content:
[[File:Array_Processing_-_Call_Graph.jpeg|200px|thumb|left]] From the call graph file, it is evident that the generateRandom() function is an obvious hotspot. It is hogging 100% of the execution time. The function consists of 2 for loops, one nested in the other, which makes the function have a Big-O notation of O(n^2). The computations involved with each element in the array is independent from the rest of the elements, and therefore this function is a deserving candidate for parallelization. Additionally, the array elements can be evenly distributed into sub-arrays and a process can be assigned to each sub-array.
=== Assignment 2 ===
=== Assignment 3 ===
46
edits

Navigation menu