Questions...<div><br></div><div>What is the expected range regarding the number of numbers to be sorted on each line?</div><div>How many processors are available?</div><div>What would serve as a primary key for database storage?</div>
<div><br></div><div><br></div><div>If the number of numbers is small... you may want to look at using a quicksort. Otherwise mergesort.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 11:50 PM,  <span dir="ltr"><<a href="mailto:djgoku@gmail.com" target="_blank">djgoku@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I haven't started writing code yet, but wanted input on where to start.<br>
<br>
What I want to do is read in an input file, splice the input into configurable amount of chunks. Create a number of workers also configurable that go off and do work returning results or maybe even saving results to a database. After finishing wait for more work until all work is done and the last worker is finished and exit.<br>

<br>
Input (variable number of inputs, but each line/row will be in a queue that the worker will get work from):<br>
4,2,1,5,6<br>
1,2,5,6,8,3<br>
9,9,1,3,5,4<br>
7,3,5,2,8<br>
<br>
Output is sorted rows in ascending order for each line:<br>
1,2,4,5,6<br>
1,2,3,5,6,8<br>
1,3,4,5,9,9<br>
2,3,5,7,8<br>
<br>
Jonathan Otsuka<br>
_______________________________________________<br>
kc mailing list<br>
<a href="mailto:kc@pm.org">kc@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/kc" target="_blank">http://mail.pm.org/mailman/listinfo/kc</a><br>
</blockquote></div><br></div>