Click here to Skip to main content
15,909,737 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Read text from a file and realloc when needed Pin
Richard MacCutchan8-Jul-18 2:49
mveRichard MacCutchan8-Jul-18 2:49 
QuestionLookup table with angles Pin
cristiapi6-Jul-18 2:30
cristiapi6-Jul-18 2:30 
AnswerRe: Lookup table with angles Pin
Stefan_Lang5-Aug-18 23:09
Stefan_Lang5-Aug-18 23:09 
QuestionBig-O Notation Pin
Manish16927-Jun-18 18:31
Manish16927-Jun-18 18:31 
AnswerRe: Big-O Notation Pin
Richard Andrew x648-Jul-18 3:33
professionalRichard Andrew x648-Jul-18 3:33 
QuestionTime complexity Pin
Manish16927-Jun-18 1:42
Manish16927-Jun-18 1:42 
AnswerRe: Time complexity Pin
Richard MacCutchan27-Jun-18 2:28
mveRichard MacCutchan27-Jun-18 2:28 
GeneralRe: Time complexity Pin
Manish16927-Jun-18 17:24
Manish16927-Jun-18 17:24 
GeneralRe: Time complexity Pin
Richard Deeming28-Jun-18 0:54
mveRichard Deeming28-Jun-18 0:54 
GeneralRe: Time complexity Pin
Richard MacCutchan28-Jun-18 0:58
mveRichard MacCutchan28-Jun-18 0:58 
GeneralRe: Time complexity Pin
Richard Deeming28-Jun-18 1:08
mveRichard Deeming28-Jun-18 1:08 
GeneralRe: Time complexity Pin
Richard MacCutchan28-Jun-18 1:20
mveRichard MacCutchan28-Jun-18 1:20 
AnswerRe: Time complexity Pin
Gerry Schmitz27-Jun-18 9:55
mveGerry Schmitz27-Jun-18 9:55 
GeneralRe: Time complexity Pin
Manish16927-Jun-18 17:25
Manish16927-Jun-18 17:25 
GeneralRe: Time complexity Pin
Gerry Schmitz27-Jun-18 19:16
mveGerry Schmitz27-Jun-18 19:16 
GeneralRe: Time complexity Pin
Peter_in_278027-Jun-18 18:19
professionalPeter_in_278027-Jun-18 18:19 
QuestionWhich algorithm or a solution should I use here? Pin
Member 1387019212-Jun-18 13:06
Member 1387019212-Jun-18 13:06 
AnswerRe: Which algorithm or a solution should I use here? Pin
Gerry Schmitz14-Jun-18 7:36
mveGerry Schmitz14-Jun-18 7:36 
AnswerRe: Which algorithm or a solution should I use here? Pin
Eddy Vluggen14-Jun-18 8:02
professionalEddy Vluggen14-Jun-18 8:02 
AnswerRe: Which algorithm or a solution should I use here? Pin
Patrice T1-Sep-18 15:56
mvePatrice T1-Sep-18 15:56 
Questionlooking for tutorial heuristic algorithms Pin
Member 1386820111-Jun-18 7:57
Member 1386820111-Jun-18 7:57 
AnswerRe: looking for tutorial heuristic algorithms Pin
Gerry Schmitz14-Jun-18 7:32
mveGerry Schmitz14-Jun-18 7:32 
SuggestionAn algorithm checking balance of html tags Pin
Member 138554082-Jun-18 0:51
Member 138554082-Jun-18 0:51 
GeneralRe: An algorithm checking balance of html tags Pin
Jochen Arndt4-Jun-18 3:08
professionalJochen Arndt4-Jun-18 3:08 
You begin by defining what you have to look for. That are
  • Opening tags <name[ attributes]>
  • Closing tags </name>
  • Self-closing tags <name[ attributes] />
Then think about how you can detect the above and what you have to do with them. For self-closing tags it is obvious that these can be simply skipped. For opening tags you have to find the corresponding closing tag and check if they are on the same level. Such can be done by pushing an open sequence onto a stack and popping upon a closing sequence after checking for identical names.
GeneralRe: An algorithm checking balance of html tags Pin
Gerry Schmitz5-Jun-18 8:02
mveGerry Schmitz5-Jun-18 8:02 

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.