954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

brute-force search help

I need to learn brute-force search because i think that it will help me to solve a problem on graphs.

Do you know any good tutorial for brute-force search?

mimis
Light Poster
43 posts since Feb 2009
Reputation Points: 10
Solved Threads: 2
 

You should try googling it out Clicky
Though its very easy.

Sky Diploma
Practically a Posting Shark
865 posts since Mar 2008
Reputation Points: 673
Solved Threads: 131
 

I tried googling before i posted it here but i didn't find any tutorial.
Someone may know any book as well.

mimis
Light Poster
43 posts since Feb 2009
Reputation Points: 10
Solved Threads: 2
 

There's probably not a tutorial because there's nothing to it. Brute force searching is the dumbest, easiest (and often most inefficient) way you can think of to get the correct answer. In the case of a graph, you'd probably end up doing a recursive traversal of all nodes.

Why don't you tell us what problem you're trying to solve instead of asking vague questions about the solution you think you need.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

here's a brute force template

for (int i = 0; i < MAX_NUMBER; i++)
{
    if (Condition[i] == Desirable)
          DoFunction();
    else
          DoOtherFunction();
}
skatamatic
Posting Shark
959 posts since Nov 2007
Reputation Points: 403
Solved Threads: 129
 

Narue, I have posted the problem here: http://www.daniweb.com/forums/thread177852.html
Help me to find a solution if you can.

mimis
Light Poster
43 posts since Feb 2009
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You