Changes

Jump to: navigation, search

GPU621/Striking

235 bytes added, 13:09, 8 December 2016
Progress
**Data flow of parallel_qsort
<table border="0" width="800">
<tr align="left"><td>[[File:dataflow.png|250px|thumb|left|alt Quick sorting dataflow]]</td>
<td>Explanation will be here soon.
Fist set of this quick sorting is that main thread worked for first half of all elements which starts *begin 9 to *end 1. The *mid value was 9 so it swapped *mid for *end. Since mid moved to end, the second half of all elements was the end to the end which only end value are to be sorted; the actual process will be skipped so no value is changed.
Next set of this is that second element(its value 3) to the last element (its value 9). The *mid value was 9 and swapping it for the *end which was same as before.  For the set 4-1 step, two Threads are working for this; Worker3 and Worker2 for two level parallel_qsort function calling and two level spawning call to parallel_qsort; values are already sorted so there was no swapping.  As you see the rest of the major steps indicated in the data flows diagram.
</td></tr>
108
edits

Navigation menu