Question

In: Computer Science

In reference to parallel sorting, what are the definitions of “sorted”. Make sure to specify both...

  1. In reference to parallel sorting, what are the definitions of “sorted”. Make sure to specify both definitions. – 6 points.

Solutions

Expert Solution

What is parallel sorting?

Sorting is a process of arranging elements in a group in a particular order, i.e., ascending order, descending order, alphabetic order, etc. Here we will discuss about the Parallel Merge Sort.

Sorting a list of elements is a very common operation. A sequential sorting algorithm may not be efficient enough when we have to sort a huge volume of data. Therefore, parallel algorithms are used in sorting.

Parallel Sorting Algorithms explains how to use parallel algorithms to sort a sequence of items on a variety of parallel computers/processors.

Merge sort first divides the unsorted list into smallest possible sub-lists, compares it with the adjacent list, and merges it in a sorted order. It implements parallelism very nicely by following the divide and conquer algorithm.

parallel merge sort implementation:

1. recursively sort two halves of array in parallel.

2. Sequentially merge the two array helves by copying into temporary array.

3. Copy the temporary array back to original array.

The method takes two argument, array and a meximum depth.

Why paralle sorting is better:

1.•Based on an existing sequential sort algorithm

a. – Try to utilize all resources available

b. – Possible to turn a poor sequential algorithm into a reasonable parallel algorithm (bubble sort and parallel bubble sort)

Algo to sort by parallel merge sorting

What is "sorted" in parallel sorting:

"Sorted" is a shared flag. The Shared flag, sorted, initialized to true at beginning of each iteration (2 phases), if any processor perform swap, sorted = false.

Thanks


Related Solutions

Make sure the data is sorted by category (male-at-rest, female at-rest, etc.). Use the Data Analysis...
Make sure the data is sorted by category (male-at-rest, female at-rest, etc.). Use the Data Analysis tools of Excel to construct 95% and 99% confidence intervals for all 8 categories of the sorted quantitative variables. Excel will calculate the margin of error given as the “confidence interval” in the output. Use this margin of error to create your 8 confidence intervals by both adding and subtracting it from the sample mean (calculated in unit 3). This creates a range of...
X ∼ exp(λ). Determine PDF of Y for the following cases. Make sure that you specify...
X ∼ exp(λ). Determine PDF of Y for the following cases. Make sure that you specify the range for Y values. Be extra cautious with many-to-one mappings. (a) Y = X − X2 (b)  Y = 16 − X4 (b) Y = cos(X).
make sure you put the reference down the sites that you go to read information thank...
make sure you put the reference down the sites that you go to read information thank you Case Project 7-3: Comparing Cloud Computing Features As cloud computing increases in popularity, enhanced features are continually being added. Compare Microsoft Azure with Amazon Web Services (AWS). Create a table that lists at least five features. What are the advantages of each? What are the disadvantages? Which would you recommend? Why? Write a one-page summary of your research.
Discuss your personality based on the Big Five Personality Factors. Make sure to reference all five...
Discuss your personality based on the Big Five Personality Factors. Make sure to reference all five factors. Feel free to use this online personality inventory to help explain your answers (but do not just copy their interpretation of your personality!): http://personality-testing.info/tests/BIG5.php
Discuss your personality based on the Big Five Personality Factors. Make sure to reference all five...
Discuss your personality based on the Big Five Personality Factors. Make sure to reference all five factors. Feel free to use this online personality inventory to help explain your answers (but do not just copy their interpretation of your personality!): http://personality-testing.info/tests/BIG5.php
You will be building a linked list. Make sure to keep track of both the head...
You will be building a linked list. Make sure to keep track of both the head and tail nodes. (1) Create three files to submit. PlaylistNode.h - Class declaration PlaylistNode.cpp - Class definition main.cpp - main() function Build the PlaylistNode class per the following specifications. Note: Some functions can initially be function stubs (empty functions), to be completed in later steps. Default constructor (1 pt) Parameterized constructor (1 pt) Public member functions InsertAfter() - Mutator (1 pt) SetNext() - Mutator...
Please make sure that you respond to both passages and follow closely to the three questions...
Please make sure that you respond to both passages and follow closely to the three questions in the prompts (bullets). Do NOT do additional research on the topic. The purpose of the exercise is to analyze the existing passages; not to demonstrate additional research skills. You do not need to provide a Works Cited or Reference page. Note: there is no page limit, however, you need to sufficiently answer the prompts in essay format. Holistic Assessment of Critical Thinking Essay...
****C++, put both of them in to one main method, make sure to start with main...
****C++, put both of them in to one main method, make sure to start with main class, if I get a screenshot of the output as well. thank you (1) A palindrome is a string that reads the same forwards as backwards. Using only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed number of int and char variables, write an algorithm to determine if a string is a palindrome. Assume that the...
****C++, put both of them in to one main method, make sure to start with main...
****C++, put both of them in to one main method, make sure to start with main class, if I get a screenshot of the output as well. thank you (3) Use singly linked lists to implement integers of unlimited size. Each node of the list should store one digit of the integer. You should implement addition, subtraction, multiplication, and exponentiation operations. Limit exponents to be positive integers. What is the asymptotic running time for each of your operations, expressed in...
what does it mean to be free? make reference to Satre, and Beauvoir.
what does it mean to be free? make reference to Satre, and Beauvoir.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT