Click here to Skip to main content
15,903,201 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Extended Midy's Theorem Pin
Shawn Poulson13-Oct-06 7:40
Shawn Poulson13-Oct-06 7:40 
QuestionSimple path finding algorithm Pin
f*** YOU20-Sep-06 19:13
f*** YOU20-Sep-06 19:13 
AnswerRe: Simple path finding algorithm Pin
Cedric Moonen21-Sep-06 2:40
Cedric Moonen21-Sep-06 2:40 
AnswerRe: Simple path finding algorithm Pin
Dan Neely21-Sep-06 4:11
Dan Neely21-Sep-06 4:11 
AnswerRe: Simple path finding algorithm Pin
El Corazon21-Sep-06 6:47
El Corazon21-Sep-06 6:47 
GeneralRe: Simple path finding algorithm Pin
f*** YOU21-Sep-06 12:54
f*** YOU21-Sep-06 12:54 
GeneralRe: Simple path finding algorithm Pin
El Corazon22-Sep-06 11:01
El Corazon22-Sep-06 11:01 
GeneralRe: Simple path finding algorithm Pin
f*** YOU22-Sep-06 12:51
f*** YOU22-Sep-06 12:51 
Thanks but that impimitation is too different than the one im using. The code Im using is barrowed from an artical from codeproject but Iv heavily modified it and improved it. However there is a flaw that will take some time to figure out. The problem is this...

S = start
X = unwalkable
E = end
. = current position

When it makes the next move it will go strait right because it costs less
  X
S.X E
  X

the next move would be to go up or down by 1, however I need it to calculate the total cost of those two moves and compare it to just moving diagonally in the first place. I cant seem to figure out how to modify it to beable to do that. Once it makes the move it will set its parent to the previous and if it finds a better path then it would have to go through and change the parents. I may need to redesign the whole thing from scratch.


static int Sqrt(int x) { if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) {="" y+="b;" v-="temp;" }="" while="" ((b="">>=1)>0); return y; OMG | :OMG:

GeneralRe: Simple path finding algorithm Pin
El Corazon22-Sep-06 14:32
El Corazon22-Sep-06 14:32 
GeneralRe: Simple path finding algorithm Pin
f*** YOU22-Sep-06 16:11
f*** YOU22-Sep-06 16:11 
QuestionPoint on Bezier Curve Pin
PremalathaP19-Sep-06 18:49
PremalathaP19-Sep-06 18:49 
AnswerRe: Point on Bezier Curve Pin
Reagan Conservative20-Sep-06 9:28
Reagan Conservative20-Sep-06 9:28 
AnswerRe: Point on Bezier Curve Pin
Link20061-Oct-06 22:09
Link20061-Oct-06 22:09 
AnswerRe: Point on Bezier Curve Pin
frakier14-Oct-06 14:31
frakier14-Oct-06 14:31 
QuestionMore Math Jokes Pin
Bassam Abdul-Baki19-Sep-06 8:15
professionalBassam Abdul-Baki19-Sep-06 8:15 
AnswerRe: More Math Jokes Pin
Arun.Immanuel3-May-07 4:25
Arun.Immanuel3-May-07 4:25 
GeneralRe: More Math Jokes Pin
Bassam Abdul-Baki3-May-07 4:29
professionalBassam Abdul-Baki3-May-07 4:29 
QuestionFitting triangles in squares Pin
Wjousts19-Sep-06 4:24
Wjousts19-Sep-06 4:24 
AnswerHyper-geometry Pin
Wjousts19-Sep-06 8:02
Wjousts19-Sep-06 8:02 
AnswerRe: Hyper-geometry Pin
Slayer2-Oct-06 6:21
Slayer2-Oct-06 6:21 
QuestionA Permuation Question Pin
Mushtaque Nizamani19-Sep-06 1:39
Mushtaque Nizamani19-Sep-06 1:39 
AnswerRe: A Permuation Question Pin
Rob Graham19-Sep-06 2:40
Rob Graham19-Sep-06 2:40 
AnswerRe: A Permuation Question Pin
ejuanpp19-Sep-06 2:43
ejuanpp19-Sep-06 2:43 
GeneralRe: A Permuation Question Pin
Mushtaque Nizamani19-Sep-06 3:01
Mushtaque Nizamani19-Sep-06 3:01 
GeneralRe: A Permuation Question Pin
Rob Graham19-Sep-06 3:35
Rob Graham19-Sep-06 3:35 

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.