Ask a Question related to UNIX Programming, Design and Development.
-
Christopher Wong #1
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
-
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... -
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... -
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... -
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,... -
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. ... -
Greg P. #2
Re: Finding algorithms
"Christopher Wong" <cwong@world.std.com> wrote in message
news:bga4hs$ijc$1@bob.news.rcn.net...a> What would make a good resource for algorithms? There are ample references
> APIs, languages, structure and numerical work. But some applications needwant> 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 youA whiteboard, black marker, cold coffee, and a cigarette =)> to solve a practical problem rather than spend the next few weeks working
> through theory?
Greg P. Guest
-
Kevin Easton #3
Re: Finding algorithms
In comp.os.linux.development.apps Christopher Wong <cwong@world.std.com> wrote:
Knuth's TAOCP?> 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?
- Kevin.
Kevin Easton Guest
-
Greg P. #4
Re: Finding algorithms
"Kevin Easton" <kevin@-nospam-pcug.org.au> wrote in message
news:newscache$u0mvih$p5p$1@tomato.pcug.org.au...wrote:> In comp.os.linux.development.apps Christopher Wong <cwong@world.std.com>references> > What would make a good resource for algorithms? There are ampleneed a> > APIs, languages, structure and numerical work. But some applicationsa> > little more thinking. For example: a program that sets up matches for a
> > competition, maximizing matchups, randomness and competitiveness. That'swant> > combinatorics and optimization problem. Where would you go to when youworking> > to solve a practical problem rather than spend the next few weeksEeek, don't you think Knuth is a bit much for this? I guess I agree with you>> > through theory?
> Knuth's TAOCP?
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
-
Michael B Allen #5
Re: Finding algorithms
On Thu, 31 Jul 2003 00:05:09 -0400, Christopher Wong wrote:
Well this is good start:> 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?
[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
-
e1p1s #6
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
-
rossb #7
Re: Finding algorithms
Christopher Wong <cwong@world.std.com> wrote in message news:<bga4hs$ijc$1@bob.news.rcn.net>...
I often find that "Numerical Recipes" by Press, Flannery, Teukolsky,> 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
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
-
Nils Petter Vaskinn #8
Re: Finding algorithms
On Thu, 31 Jul 2003 04:08:48 +0000, Greg P. wrote:
Do you need perfect or good?> "Christopher Wong" <cwong@world.std.com> wrote in message
> news:bga4hs$ijc$1@bob.news.rcn.net...> a>> What would make a good resource for algorithms? There are ample
>> references APIs, languages, structure and numerical work. But some
>> applications need>> 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?
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.
Cold coffee? ouch! I'd have to be pretty desperate to resort to that.> A whiteboard, black marker, cold coffee, and a cigarette =)
Whiteboard, several colors markers, paper, pen, hot coffee (but not hot
enough to burn your tounge), cigarettes.
regards
NPV
Nils Petter Vaskinn Guest
-
Sam Zoghaib #9
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:
Well, Knuth's TAOCP has all the theory, that's true, but it's well written ,> Eeek, don't you think Knuth is a bit much for this? I guess I agree with you>> Knuth's TAOCP?
> though.
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
-
Sam Zoghaib #10
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 don't have the book, so I can't give my personal opinion, but there's a> 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.
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
-
Bjorn Reese #11
Re: Finding algorithms
Christopher Wong wrote:
One possibility is to ask on the sci.op-research newsgroup.> 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?
Bjorn Reese Guest
-
Lee Sau Dan #12
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



Reply With Quote

