Skip to content

Commit 7555fa4

Browse files
authored
Update oddevensort.html
added ascii art diagram
1 parent bbb9c58 commit 7555fa4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/exercises/oddevensort.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
<h1>Chare Arrays: Odd-Even Sort Exercise</h1>
1414

1515
<p>A mainchare has a chare array of size N. Each chare in the array generates its own random number. The array must be sorted in N steps, where at each step, each chare may communicate with at most one of its neighbors (i.e. on an 'odd' step adjacent chares are paired in one fashion, and on an 'even' step the pairing is switched). No barriers are allowed, and there is only one reduction, at the end, which checks that the elements have been properly sorted.</p>
16-
16+
17+
<p> For example: </p>
18+
<p> Even steps: 0--1 2--3 4--5 6--7 </p>
19+
<p> Odd steps: 0 1--2 3--4 5--6 7 </p>
1720
<p>N is a command line parameter.</p>
1821

1922
<p>No SDAG is to be used.</p>

0 commit comments

Comments
 (0)