Click here to Skip to main content
15,887,083 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: How you gonna start with this question? Pin
Sreram K8-Oct-15 7:17
Sreram K8-Oct-15 7:17 
AnswerRe: How you gonna start with this question? Pin
Patrice T8-Oct-15 11:47
mvePatrice T8-Oct-15 11:47 
GeneralRe: How you gonna start with this question? Pin
Matt T Heffron8-Oct-15 14:23
professionalMatt T Heffron8-Oct-15 14:23 
GeneralRe: How you gonna start with this question? Pin
Stanley_B70716-Oct-15 5:18
Stanley_B70716-Oct-15 5:18 
AnswerRe: How you gonna start with this question? Pin
Matt T Heffron20-Oct-15 7:05
professionalMatt T Heffron20-Oct-15 7:05 
QuestionWhy is Dijkstra's algorithm implemented with a priority queue O(|E| + |v|log|V|)? Shouldn't it be O(|V|^2)? Pin
Sreram K5-Oct-15 4:45
Sreram K5-Oct-15 4:45 
AnswerRe: Why is Dijkstra's algorithm implemented with a priority queue O(|E| + |v|log|V|)? Shouldn't it be O(|V|^2)? Pin
Sreram K8-Oct-15 7:32
Sreram K8-Oct-15 7:32 
QuestionPlease explain Shell Sort Algorithm Pin
Member 1176097730-Sep-15 16:55
Member 1176097730-Sep-15 16:55 
Hello,I understand Shell Sort definition but I can not understand
this C# code:

public void shellSort()
{
int inner, outer;
long temp;
  int h = 1;<br />
  while(h <= nElems/3)
     h = h*3 + 1;               

  while(h>0)<br />
     {

     for(outer=h; outer<nElems; outer++)
        {
        temp = theArray[outer];
        inner = outer;

        while(inner > h-1 && theArray[inner-h] >=  temp)
           {
           theArray[inner] = theArray[inner-h];
           inner -= h;
           }
        theArray[inner] = temp;
        }  // end for
     h = (h-1) / 3;<br />
     }  // end while(h>0)

  }  // end shellSort()

please help me thx!
AnswerRe: Please explain Shell Sort Algorithm Pin
Richard Andrew x641-Oct-15 4:41
professionalRichard Andrew x641-Oct-15 4:41 
AnswerRe: Please explain Shell Sort Algorithm Pin
Patrice T2-Oct-15 15:28
mvePatrice T2-Oct-15 15:28 
GeneralRe: Please explain Shell Sort Algorithm Pin
Member 121089222-Nov-15 20:40
Member 121089222-Nov-15 20:40 
AnswerRe: Please explain Shell Sort Algorithm Pin
Patrice T2-Nov-15 21:10
mvePatrice T2-Nov-15 21:10 
QuestionAlgoritmo de Ford Fulkerson Pin
Josevas28-Sep-15 9:55
Josevas28-Sep-15 9:55 
SuggestionRe: Algoritmo de Ford Fulkerson Pin
Matt T Heffron28-Sep-15 13:04
professionalMatt T Heffron28-Sep-15 13:04 
AnswerRe: Algoritmo de Ford Fulkerson Pin
Richard Deeming29-Sep-15 1:54
mveRichard Deeming29-Sep-15 1:54 
QuestionChecking whether a directed graph is a unique path graph Pin
Member 119734749-Sep-15 22:49
Member 119734749-Sep-15 22:49 
AnswerRe: Checking whether a directed graph is a unique path graph Pin
Patrice T12-Sep-15 2:32
mvePatrice T12-Sep-15 2:32 
QuestionGet X Axis label and interval Pin
NJdotnetdev3-Sep-15 7:21
NJdotnetdev3-Sep-15 7:21 
GeneralRe: Get X Axis label and interval Pin
Richard MacCutchan3-Sep-15 21:36
mveRichard MacCutchan3-Sep-15 21:36 
GeneralRe: Get X Axis label and interval Pin
NJdotnetdev4-Sep-15 2:26
NJdotnetdev4-Sep-15 2:26 
Questionrotation collision response? Pin
Isawyouoo1-Sep-15 12:44
Isawyouoo1-Sep-15 12:44 
AnswerRe: rotation collision response? Pin
Patrice T1-Sep-15 16:03
mvePatrice T1-Sep-15 16:03 
GeneralRe: rotation collision response? Pin
Isawyouoo2-Sep-15 2:19
Isawyouoo2-Sep-15 2:19 
GeneralRe: rotation collision response? Pin
Patrice T2-Sep-15 2:30
mvePatrice T2-Sep-15 2:30 
GeneralRe: rotation collision response? Pin
Isawyouoo2-Sep-15 2:44
Isawyouoo2-Sep-15 2:44 

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.