Re: code to do a brute force algorithm?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jay Freedman (jay.freedman_at_verizon.net)
Date: 05/30/04

  • Next message: Jean-Guy Marcil: "Re: Image alignment disturbs in Pastespecial"
    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
    

  • Next message: Jean-Guy Marcil: "Re: Image alignment disturbs in Pastespecial"

    Relevant Pages

    • Re: ratio approximation algorithm
      ... I'm looking for an algorithm other than brute force that ... >> will speed up the searching process. ... I'd be surprised if Monte Carlo failed to suit your needs. ... a pure brute force approach took 0.37 seconds on my laptop (1.8GHz ...
      (comp.programming)
    • Re: Bonehead basic crypto question
      ... Even if 256-bit is broken by brute force using quantum computers ... as is secure should be used. ... People might like to say "even if an algorithm is ... be conservative) and focus on eliminating shortcut attacks. ...
      (sci.crypt)
    • Re: Solving k^m = q mod N
      ... may have changed human history in a rather big way. ... Let us now consider your algorithm. ... You can do it in your code by using the Java maths ... To be historically significant therefore your brute force algorithm ...
      (sci.math)
    • Re: Solving k^m = q mod N
      ... otherwise can only be done by brute force. ... posters appear to be taking my algorithm far too seriously. ... reason in his head that it is. ... I made by response on the basis of the evidence. ...
      (sci.math)
    • Re: Searching substrings in records.
      ...     for each text field in the record ... but I just can't tell the difference between the algorithm ... you introduced above and the brute force approach I described on the ... every record and perform a substring search on any of them. ...
      (comp.programming)