Click here to Skip to main content
15,919,479 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Roger Wright21-Jun-10 17:34
professionalRoger Wright21-Jun-10 17:34 
AnswerRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
supercat99-Jun-10 13:26
supercat99-Jun-10 13:26 
QuestionCan someone give a detail of " shortest-seek -time-First algorithm" some coder is the better Pin
wbgxx7-Jun-10 4:33
wbgxx7-Jun-10 4:33 
AnswerRe: Can someone give a detail of " shortest-seek -time-First algorithm" some coder is the better Pin
Dr.Walt Fair, PE7-Jun-10 5:13
professionalDr.Walt Fair, PE7-Jun-10 5:13 
QuestionCenter(ish) point of a polygon. Pin
kevinnicol1-Jun-10 3:22
kevinnicol1-Jun-10 3:22 
AnswerRe: Center(ish) point of a polygon. Pin
Tim Craig1-Jun-10 15:44
Tim Craig1-Jun-10 15:44 
GeneralRe: Center(ish) point of a polygon. Pin
kevinnicol1-Jun-10 16:41
kevinnicol1-Jun-10 16:41 
GeneralRe: Center(ish) point of a polygon. Pin
Tim Craig2-Jun-10 16:36
Tim Craig2-Jun-10 16:36 
Yes, certainly with concave polygons the centroid may but doesn't necessarily lie outside.

If I'm understanding your problem this time, you need to formulate it by taking the double integral over the area of the polygon of the distance to each point and an arbitrary point (x,y). Personally, I'd use distance squared and get rid of the pesky square root. Then once you've established the equation of the distance squared over the area, you take the partial derivatives with respect to x and y and find the maximum. The rub probably comes when you have to restrict (x, y) to lie "inside" the polygon. Off the top of my head, that part isn't clear. I'm on the road and tired so that part is left up to the student. Laugh | :laugh:
The wonderful thing about the Darwin Awards is that everyone wins, especially the members of the audience.

GeneralRe: Center(ish) point of a polygon. Pin
kevinnicol3-Jun-10 4:48
kevinnicol3-Jun-10 4:48 
GeneralRe: Center(ish) point of a polygon. Pin
Tim Craig3-Jun-10 5:06
Tim Craig3-Jun-10 5:06 
AnswerRe: Center(ish) point of a polygon. Pin
Moreno Airoldi1-Jun-10 22:27
Moreno Airoldi1-Jun-10 22:27 
AnswerRe: Center(ish) point of a polygon. Pin
ignrod10-Aug-10 6:07
ignrod10-Aug-10 6:07 
QuestionSheet Metal Cutting Algorithm Pin
kirankkk200927-May-10 21:16
kirankkk200927-May-10 21:16 
AnswerRe: Sheet Metal Cutting Algorithm Pin
T M Gray28-May-10 11:53
T M Gray28-May-10 11:53 
GeneralRe: Sheet Metal Cutting Algorithm Pin
kirankkk200930-May-10 21:57
kirankkk200930-May-10 21:57 
AnswerRe: Sheet Metal Cutting Algorithm Pin
Moreno Airoldi28-May-10 22:29
Moreno Airoldi28-May-10 22:29 
GeneralRe: Sheet Metal Cutting Algorithm Pin
kirankkk200930-May-10 22:10
kirankkk200930-May-10 22:10 
QuestionDistributing n elements in g groups several times uniformly [modified] Pin
Alex Casals27-May-10 12:19
professionalAlex Casals27-May-10 12:19 
AnswerRe: Distributing n elements in g groups several times uniformly Pin
Peter_in_278027-May-10 12:41
professionalPeter_in_278027-May-10 12:41 
AnswerRe: Distributing n elements in g groups several times uniformly Pin
Moreno Airoldi28-May-10 23:17
Moreno Airoldi28-May-10 23:17 
GeneralRe: Distributing n elements in g groups several times uniformly Pin
Alex Casals29-May-10 3:53
professionalAlex Casals29-May-10 3:53 
GeneralRe: Distributing n elements in g groups several times uniformly Pin
Moreno Airoldi29-May-10 20:59
Moreno Airoldi29-May-10 20:59 
GeneralTell Me A Joke Pin
Bassam Abdul-Baki27-May-10 0:27
professionalBassam Abdul-Baki27-May-10 0:27 
GeneralRe: Tell Me A Joke Pin
CPallini27-May-10 10:09
mveCPallini27-May-10 10:09 
GeneralRe: Tell Me A Joke Pin
Bassam Abdul-Baki28-May-10 4:31
professionalBassam Abdul-Baki28-May-10 4:31 

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.