Re: Which Algorithms are used most often ?
- From: Gene <gene.ressler@xxxxxxxxx>
- Date: Wed, 30 Sep 2009 17:57:53 -0700 (PDT)
On Sep 29, 1:35 am, arnuld <sunr...@xxxxxxxxxxxxxxx> wrote:
I posted the implementation of Bubble Sort in C on comp.lang.c and I was
told Bubble Sort is almost always a poor choice. Then I learned Insertion-
Sort and posted a C implementation of it and again I got replies that
except of a few situations insertion sort too is a bad idea.
So I ask, I am learning Algorithms and want to learn only those ones
which are either used most often or useful for practical purposes.
This isn't a great strategy. It sounds efficient, but it's not.
Mastering a spotty collection of "most used or useful" algorithms will
leave you with just that, and you'll remain in the little leagues
until you give in and start the real work.
Good algorithm books and courses are organized in a logical
progression that builds a framework for algorithmic thinking in your
head. You finish with a kind of logical skeleton for some families of
algorithms. Some of them are really useful. Others are mainly
connective tissue that make your knowledge hang together. Real
problems seldom fall exactly on the skeleton, but rather in the
spaces. You thicken the skeleton over time by solving as many problems
as you can get your head around. You never know which bit of knowledge
is going to help in advance. It's a lifetime sport.
An example is bubblesort. It's never the right solution for a general
sorting problem. But when you implement a polygon raster scanning
algorithm and need to sort the active edge list between scan lines,
where you know in advance that elements are going to shift small
distances or not at all, then a bubblesort-ish algorithm is exactly
what you want.
.
- Follow-Ups:
- Re: Which Algorithms are used most often ?
- From: user923005
- Re: Which Algorithms are used most often ?
- Prev by Date: Re: Python 1 , Lisp 0
- Next by Date: Re: Python 1 , Lisp 0
- Previous by thread: Re: Python 1 , Lisp 0
- Next by thread: Re: Which Algorithms are used most often ?
- Index(es):
Relevant Pages
|