Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 4:41
George Nistor18-Jan-13 4:41 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 6:25
mveDave Kreskowiak18-Jan-13 6:25 
AnswerRe: Paralel QuickSort with 2 threads running at the same spped Pin
Alan Balkany18-Jan-13 5:12
Alan Balkany18-Jan-13 5:12 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 5:31
George Nistor18-Jan-13 5:31 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 6:26
mveDave Kreskowiak18-Jan-13 6:26 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 6:53
George Nistor18-Jan-13 6:53 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 7:31
mveDave Kreskowiak18-Jan-13 7:31 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 7:38
George Nistor18-Jan-13 7:38 
I use as test a vector with 100 000 ints. It is ordered in Descending order.
(another problem I have choosed partition element at one end, result in a small partition on a Descending order data set Smile | :) )
I have tried an optimized Insertion and it sorts it in 20s. c++

I think I test the worst case scenario which is N2 for both inserion and quicksort.

In average cases it works super fast, in less than a second;
I got like you with 10 mils of ints around 3 sec.

C#
int[] V;
const int sizeV = 10000000;            
Random rnd = new Random();
for (int i = 0; i < sizeV; ++i)
V[i] = rnd.Next(0, 9999999);


modified 18-Jan-13 16:37pm.

GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 22:49
George Nistor18-Jan-13 22:49 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak19-Jan-13 3:27
mveDave Kreskowiak19-Jan-13 3:27 
QuestionDataSet to Dictionary Join? Pin
RickSharp17-Jan-13 12:25
RickSharp17-Jan-13 12:25 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 12:34
mvePIEBALDconsult17-Jan-13 12:34 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 12:51
RickSharp17-Jan-13 12:51 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 13:03
mvePIEBALDconsult17-Jan-13 13:03 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 13:13
RickSharp17-Jan-13 13:13 
AnswerRe: DataSet to Dictionary Join? Pin
HuorSwords17-Jan-13 21:18
HuorSwords17-Jan-13 21:18 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp18-Jan-13 7:02
RickSharp18-Jan-13 7:02 
QuestionLinking files to a project Pin
PozzaVecia17-Jan-13 8:43
PozzaVecia17-Jan-13 8:43 
GeneralRe: Linking files to a project Pin
PIEBALDconsult17-Jan-13 9:12
mvePIEBALDconsult17-Jan-13 9:12 
GeneralRe: Linking files to a project Pin
PozzaVecia17-Jan-13 9:44
PozzaVecia17-Jan-13 9:44 
QuestionError : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 6:37
mohammadkaab17-Jan-13 6:37 
AnswerRe: Error : System.DllNotFoundExpection Pin
Jibesh17-Jan-13 7:14
professionalJibesh17-Jan-13 7:14 
GeneralRe: Error : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 7:48
mohammadkaab17-Jan-13 7:48 
GeneralRe: Error : System.DllNotFoundExpection Pin
Jibesh17-Jan-13 7:53
professionalJibesh17-Jan-13 7:53 
Questioncalling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 4:14
Hector Ubiera17-Jan-13 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.