Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Finding algorithms

    What would make a good resource for algorithms? There are ample references
    APIs, languages, structure and numerical work. But some applications need a
    little more thinking. For example: a program that sets up matches for a
    competition, maximizing matchups, randomness and competitiveness. That's a
    combinatorics and optimization problem. Where would you go to when you want
    to solve a practical problem rather than spend the next few weeks working
    through theory?

    Chris

    Christopher Wong Guest

  2. Similar Questions and Discussions

    1. Finding the PR of a URL
      Hi there, I am looking to find a way and wirte a custom tag that gets the Google PR of a URL. In other words, input is a URL and output is an...
    2. cfexecute for mathematical algorithms
      Hi I need to write C++ programs to do long mathematical algorithms which I want to combine into cfm pages. I know java is quicker but i dont use...
    3. advanced lingo algorithms
      Alright guys, We all know that lingo is great for eye catching multimedia but programmers are known for laying down the science right? Well I've...
    4. OT: Finding a job
      Hi group, Looking for a job. I'm at the point where I will go to a place and say, "Look, I'll give you $500 or half of my first week's salary,...
    5. Finding a job
      Ray, Sounds like your in a tough position... I know that you just (or about to) have a new place built for you so you don't want to move. ...
  3. #2

    Default Re: Finding algorithms

    "Christopher Wong" <cwong@world.std.com> wrote in message
    news:bga4hs$ijc$1@bob.news.rcn.net...
    > What would make a good resource for algorithms? There are ample references
    > APIs, languages, structure and numerical work. But some applications need
    a
    > little more thinking. For example: a program that sets up matches for a
    > competition, maximizing matchups, randomness and competitiveness. That's a
    > combinatorics and optimization problem. Where would you go to when you
    want
    > to solve a practical problem rather than spend the next few weeks working
    > through theory?
    A whiteboard, black marker, cold coffee, and a cigarette =)


    Greg P. Guest

  4. #3

    Default Re: Finding algorithms

    In comp.os.linux.development.apps Christopher Wong <cwong@world.std.com> wrote:
    > What would make a good resource for algorithms? There are ample references
    > APIs, languages, structure and numerical work. But some applications need a
    > little more thinking. For example: a program that sets up matches for a
    > competition, maximizing matchups, randomness and competitiveness. That's a
    > combinatorics and optimization problem. Where would you go to when you want
    > to solve a practical problem rather than spend the next few weeks working
    > through theory?
    Knuth's TAOCP?

    - Kevin.

    Kevin Easton Guest

  5. #4

    Default Re: Finding algorithms

    "Kevin Easton" <kevin@-nospam-pcug.org.au> wrote in message
    news:newscache$u0mvih$p5p$1@tomato.pcug.org.au...
    > In comp.os.linux.development.apps Christopher Wong <cwong@world.std.com>
    wrote:
    > > What would make a good resource for algorithms? There are ample
    references
    > > APIs, languages, structure and numerical work. But some applications
    need a
    > > little more thinking. For example: a program that sets up matches for a
    > > competition, maximizing matchups, randomness and competitiveness. That's
    a
    > > combinatorics and optimization problem. Where would you go to when you
    want
    > > to solve a practical problem rather than spend the next few weeks
    working
    > > through theory?
    >
    > Knuth's TAOCP?
    Eeek, don't you think Knuth is a bit much for this? I guess I agree with you
    though.

    Have you read the Algorithms in <insert language here> by R. Sedgewick? It
    pretty much covers everything from simple connectivity-problems to graphs:
    [url]http://www.amazon.com/exec/obidos/tg/detail/-/020172684X/qid=1059633925/sr=1-2/ref=sr_1_2/103-5750351-7153416?v=glance&s=books[/url]

    However, I own his C++ versions of Parts1-4 and part 5...and they aren't
    ANSI/ISO standardized (at least my printing). =/ Good books though to peruse
    while sitting on the john. Each theory has a code example, so less of the
    ideals, more of the how-to.


    Greg P. Guest

  6. #5

    Default Re: Finding algorithms

    On Thu, 31 Jul 2003 00:05:09 -0400, Christopher Wong wrote:
    > What would make a good resource for algorithms? There are ample
    > references APIs, languages, structure and numerical work. But some
    > applications need a little more thinking. For example: a program that
    > sets up matches for a competition, maximizing matchups, randomness and
    > competitiveness. That's a combinatorics and optimization problem. Where
    > would you go to when you want to solve a practical problem rather than
    > spend the next few weeks working through theory?
    Well this is good start:

    [url]http://www.nist.gov/dads/[/url]

    but I have to admit I have never really used anything from this site
    directly. The Coreman book on the otherhand is something I have used
    on several occations. Although I don't think either of these resources
    will be sufficient to cover advanced topics like you describe. I think
    you're destined for a "few weeks working through theory". Even if you
    found something that hits the nail on the head the topic is sophisticated
    enough that you would probably need to understand the theory to use it
    anyway.

    Mike
    Michael B Allen Guest

  7. #6

    Default Re: Finding algorithms

    Christopher Wong wrote:
    > What would make a good resource for algorithms? There are ample references
    > APIs, languages, structure and numerical work. But some applications need a
    > little more thinking. For example: a program that sets up matches for a
    > competition, maximizing matchups, randomness and competitiveness. That's a
    > combinatorics and optimization problem. Where would you go to when you want
    > to solve a practical problem rather than spend the next few weeks working
    > through theory?
    >
    > Chris
    >

    Not always but sometimes useful: [url]http://www.nist.gov/dads/[/url]

    e1p1s Guest

  8. #7

    Default Re: Finding algorithms

    Christopher Wong <cwong@world.std.com> wrote in message news:<bga4hs$ijc$1@bob.news.rcn.net>...
    > What would make a good resource for algorithms? There are ample references
    > APIs, languages, structure and numerical work. But some applications need a
    > little more thinking. For example: a program that sets up matches for a
    > competition, maximizing matchups, randomness and competitiveness. That's a
    > combinatorics and optimization problem. Where would you go to when you want
    > to solve a practical problem rather than spend the next few weeks working
    > through theory?
    >
    > Chris
    I often find that "Numerical Recipes" by Press, Flannery, Teukolsky,
    and Vetterling has some good answers, and includes an explanation of
    why other ways of doing it might not be so good. Its saved me a few
    times when things got too "statistical".

    Brenton
    rossb Guest

  9. #8

    Default Re: Finding algorithms

    On Thu, 31 Jul 2003 04:08:48 +0000, Greg P. wrote:
    > "Christopher Wong" <cwong@world.std.com> wrote in message
    > news:bga4hs$ijc$1@bob.news.rcn.net...
    >> What would make a good resource for algorithms? There are ample
    >> references APIs, languages, structure and numerical work. But some
    >> applications need
    > a
    >> little more thinking. For example: a program that sets up matches for a
    >> competition, maximizing matchups, randomness and competitiveness.
    >> That's a combinatorics and optimization problem. Where would you go to
    >> when you want to solve a practical problem rather than spend the next
    >> few weeks working through theory?
    Do you need perfect or good?
    First shot at an algorithm:
    1. assign randomly
    2. Do a few checks to identify if the alternative sucks
    3. If it does suck goto 1
    4. done

    Then depending on how badly it performs improve the placing in step 1
    until performance is acceptable.

    The thing is it depends on how much the program is used, if it's used for
    one specific competition once a year it's ok if it takes 10 minutes to
    find a good setup, compared to an unknown amount of programmer time. If
    it's to be used a lot it may be time to get out those combinatorics books.
    > A whiteboard, black marker, cold coffee, and a cigarette =)
    Cold coffee? ouch! I'd have to be pretty desperate to resort to that.

    Whiteboard, several colors markers, paper, pen, hot coffee (but not hot
    enough to burn your tounge), cigarettes.

    regards
    NPV
    Nils Petter Vaskinn Guest

  10. #9

    Default Re: Finding algorithms

    Greg P. wrote in article <WX2Wa.399$jg7.121@newsread3.news.pas.earthlink.ne t>
    on Thursday 31 July 2003 08:47 in comp.unix.programmer:
    >> Knuth's TAOCP?
    > Eeek, don't you think Knuth is a bit much for this? I guess I agree with you
    > though.
    Well, Knuth's TAOCP has all the theory, that's true, but it's well written ,
    so if you just ned to give a shot at an algorithm, you can just pick one.
    Algorithm are first described in English, then coded in MIX, and assembly
    language for a computer of Knuth's design.
    And when you need some more information about the algorithm, well, you just
    have to read the section more thoroughly.

    Sam
    --
    "Don't be afraid, I'm gonna give you the choice I never had..."

    - Lestat in "Interview with the Vampire" (Ann Rice, 1976)

    Sam Zoghaib Guest

  11. #10

    Default Re: Finding algorithms

    rossb wrote in article <66728128.0307310037.15bf1e18@posting.google.com > on
    Thursday 31 July 2003 10:37 in comp.unix.programmer:
    > I often find that "Numerical Recipes" by Press, Flannery, Teukolsky,
    > and Vetterling has some good answers, and includes an explanation of
    > why other ways of doing it might not be so good.
    I don't have the book, so I can't give my personal opinion, but there's a
    thread on comp.lang.c about it, and this link was given; you may want to read
    that first:

    [url]http://www.lysator.liu.se/c/num-recipes-in-c.html[/url]

    Sam
    --
    "Creativity can be a social contribution, but only in so far as society is
    free to use the results."

    - Richard Stallman

    Sam Zoghaib Guest

  12. #11

    Default Re: Finding algorithms

    Christopher Wong wrote:
    > competition, maximizing matchups, randomness and competitiveness. That's a
    > combinatorics and optimization problem. Where would you go to when you want
    > to solve a practical problem rather than spend the next few weeks working
    > through theory?
    One possibility is to ask on the sci.op-research newsgroup.
    Bjorn Reese Guest

  13. #12

    Default Re: Finding algorithms

    >>>>> "Nils" == Nils Petter Vaskinn <no@spam.for.me.invalid> writes:

    Nils> The thing is it depends on how much the program is used, if
    Nils> it's used for one specific competition once a year it's ok
    Nils> if it takes 10 minutes to find a good setup, compared to an
    Nils> unknown amount of programmer time. If it's to be used a lot
    Nils> it may be time to get out those combinatorics books.

    There are applications with real-time requirements, even if it is to
    be used only once per year. Having to wait for 10 minutes for an
    answer may not be acceptable.


    --
    Lee Sau Dan §õ¦u´°(Big5) ~{@nJX6X~}(HZ)

    E-mail: [email]danlee@informatik.uni-freiburg.de[/email]
    Home page: [url]http://www.informatik.uni-freiburg.de/~danlee[/url]
    Lee Sau Dan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139