Click here to Skip to main content
16,011,170 members
Home / Discussions / C#
   

C#

 
AnswerRe: Urgent: helpe in regular expressions Pin
PIEBALDconsult2-Sep-09 4:07
mvePIEBALDconsult2-Sep-09 4:07 
GeneralRe: Urgent: helpe in regular expressions Pin
sh.alamdari2-Sep-09 20:07
sh.alamdari2-Sep-09 20:07 
AnswerRe: Urgent: helpe in regular expressions [modified] Pin
musefan2-Sep-09 5:09
musefan2-Sep-09 5:09 
GeneralRe: Urgent: helpe in regular expressions Pin
sh.alamdari2-Sep-09 19:49
sh.alamdari2-Sep-09 19:49 
QuestionSorting String Using Radix Sort Pin
gamer11272-Sep-09 3:22
gamer11272-Sep-09 3:22 
AnswerRe: Sorting String Using Radix Sort Pin
PIEBALDconsult2-Sep-09 3:26
mvePIEBALDconsult2-Sep-09 3:26 
AnswerRe: Sorting String Using Radix Sort Pin
harold aptroot2-Sep-09 3:45
harold aptroot2-Sep-09 3:45 
GeneralRe: Sorting String Using Radix Sort Pin
gamer11272-Sep-09 4:37
gamer11272-Sep-09 4:37 
This is the source code that I got. It's a msd Radix sort:

public static void msd(String[] a)
       {
           msd(a, 0, a.Length, 0);
       }

       private static void msd(String[] a, int l, int r, int d)
       {
           int N = a.Length;

           if (r <== l + 1) return;
           int[] count = new int[256];
           for (int i = 0; i < N; i++)
               count[a[i].charAt(d) + 1]++;
           for (int k = 1; k < 256; k++)
               count[k] += count[k-1];
           for (int i = 0; i < N; i++)
               temp[count[a[i].charAt(d)]++] = a[i];
           for (int i = 0; i < N; i++)
               a[i] = temp[i];
           for (int i = 1; i < 255; i++)
               msd(a, l + count[i], l + count[i+1], d+1);
       }


How will I revise this so I can use it in c#?
GeneralRe: Sorting String Using Radix Sort Pin
harold aptroot2-Sep-09 4:54
harold aptroot2-Sep-09 4:54 
AnswerRe: Sorting String Using Radix Sort Pin
gamer11272-Sep-09 5:55
gamer11272-Sep-09 5:55 
GeneralRe: Sorting String Using Radix Sort Pin
harold aptroot2-Sep-09 6:36
harold aptroot2-Sep-09 6:36 
GeneralRe: Sorting String Using Radix Sort Pin
gamer11272-Sep-09 7:17
gamer11272-Sep-09 7:17 
GeneralRe: Sorting String Using Radix Sort Pin
harold aptroot2-Sep-09 9:29
harold aptroot2-Sep-09 9:29 
GeneralRe: Sorting String Using Radix Sort Pin
gamer11272-Sep-09 16:07
gamer11272-Sep-09 16:07 
GeneralRe: Sorting String Using Radix Sort Pin
harold aptroot3-Sep-09 0:31
harold aptroot3-Sep-09 0:31 
GeneralRe: Sorting String Using Radix Sort Pin
gamer11273-Sep-09 1:36
gamer11273-Sep-09 1:36 
Answer[Message Deleted] Pin
ghelhei2-Sep-09 23:13
ghelhei2-Sep-09 23:13 
GeneralRe: Sorting String Using Radix Sort Pin
ghelhei2-Sep-09 23:13
ghelhei2-Sep-09 23:13 
QuestionEnabling Event in Grid View [modified] Pin
D4u2-Sep-09 2:42
D4u2-Sep-09 2:42 
AnswerRe: Enabling Event in Grid View Pin
Richard MacCutchan2-Sep-09 5:34
mveRichard MacCutchan2-Sep-09 5:34 
Questionregarding patch development ?? Pin
Tridip Bhattacharjee2-Sep-09 0:21
professionalTridip Bhattacharjee2-Sep-09 0:21 
AnswerRe: regarding patch development ?? Pin
Christian Graus2-Sep-09 0:31
protectorChristian Graus2-Sep-09 0:31 
AnswerRe: regarding patch development ?? Pin
Nagy Vilmos2-Sep-09 1:40
professionalNagy Vilmos2-Sep-09 1:40 
AnswerRe: regarding patch development ?? Pin
Henry Minute2-Sep-09 2:25
Henry Minute2-Sep-09 2:25 
QuestionSplash Screen In C# ? :S Pin
Saad Shuja1-Sep-09 23:50
Saad Shuja1-Sep-09 23:50 

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.