Re: code to do a brute force algorithm?
From: Jay Freedman (jay.freedman_at_verizon.net)
Date: 05/30/04
- Previous message: Senthil kumar: "Formatting RTF data in MS-Word using VB"
- In reply to: Howard Kaikow: "Re: code to do a brute force algorithm?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 30 May 2004 13:48:31 -0400
Tony,
Howard has shown admirable restraint, but I suspect he hasn't made
himself completely clear. Your question simply raises another
question: "a brute force algorithm to do *what*?" There are zillions
of algorithms for searching, sorting, merging, formatting, all sorts
of tasks.
The term "algorithm" means simply "a sequence of steps". The term
"brute force" means "the slow, stupid way" as opposed to "the fast,
(maybe) smart way". Neither of these terms uniquely specifies what you
want to do.
If you're just looking for an example, try comparing the many ways of
sorting a list of items. The "bubble sort" is a classic brute force
algorithm for sorting, compared to algorithms such as "quicksort" and
"shell sort". The graph at
http://linux.wku.edu/~lamonml/algor/sort/sort.html illustrates how
much more work the brute force requires. VB code for these sorting
algorithms can be found in many places, such as
http://www.google.com/url?sa=U&start=1&q=http://www.vb-helper.com/tut1.htm&e=7370
and http://www.devx.com/vb2themax/Article/19900.
If you're looking for code for other kinds of algorithms, Google is
your friend. I found the articles I cited by searching for
"sorting algorithms" +vb
and looking at the first half-dozen of over 1900 hits.
"Howard Kaikow" <kaikow@standards.com> wrote:
>Each algorithm requires different code unique to the algorithm and to the
>particular method of implementing the algorithm.
>--
>http://www.standards.com/; See Howard Kaikow's web site.
>"tony" <ahbone@hotmail.com> wrote in message
>news:OOZZFWfREHA.3708@TK2MSFTNGP10.phx.gbl...
>> Are there any vb source code that implements a brute force algorithm?
>> Any help is appreciated.
>> Thanks.
>>
>>
>
-- Regards, Jay Freedman Microsoft Word MVP FAQ: http://www.mvps.org/word
- Previous message: Senthil kumar: "Formatting RTF data in MS-Word using VB"
- In reply to: Howard Kaikow: "Re: code to do a brute force algorithm?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|