Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: C++ for combinatorial optimization problems

Reply
Thread Tools

Re: C++ for combinatorial optimization problems

 
 
Dietmar Kuehl
Guest
Posts: n/a
 
      09-15-2004
N4M wrote:
> C++ is currently a dominant programming lanaguage to solve
> Combinatorial Optimization problems. Will other languages be able to
> compete with C++ in this field?


IMO, none of the other popular languages (C, Java, C#, Fortran,
Perl, Python, ...) is well suited to implement non-trivial
algorithms. It can be done in these languages but is unnecessary
hard. Whether this will change in the future depends on the
languages. I think support for generic programming is required
for effective support of non-trivial algorithms.

> Could you suggest some C++ libraries for Combinatorial Optimization?


The Boost Graph Library (BGL) has algorithms for several
combinatorial problems. Of course, those implemented can be
solved in polynomial time. There is no general solver for
combinatorial optimization in this library (like an implementation
of the Simplex algorithm).

> It is probably that a library will address a certain problem, e.g.
> Max-Cut, TSP etc., that would already be fine.


It is unlikely that anybody implements something addressing these
problems: the problems you mention are NP-hard and thus only
solvable for very small problem instances or in cases where
additional structure information is available and can be exploited
(e.g. TSP can be solved if certain restrictions on the distances
are imposed - if I remember correctly).
--
<private.php?do=newpm&u=> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting

 
Reply With Quote
 
 
 
 
beliavsky@aol.com
Guest
Posts: n/a
 
      09-16-2004
"Dietmar Kuehl" <> wrote in message news:<ci989v$>...
> N4M wrote:
> > C++ is currently a dominant programming lanaguage to solve
> > Combinatorial Optimization problems. Will other languages be able to
> > compete with C++ in this field?

>
> IMO, none of the other popular languages (C, Java, C#, Fortran,
> Perl, Python, ...) is well suited to implement non-trivial
> algorithms. It can be done in these languages but is unnecessary
> hard. Whether this will change in the future depends on the
> languages. I think support for generic programming is required
> for effective support of non-trivial algorithms.


I think C and C++ are not well suited to problems involving
multidimensional arrays, which are most of the problems I deal with.
IMSL and NAG have Fortran 77, Fortran 90, and C libraries, but not C++
libraries AFAIK. They expect C++ programmers to call their C
libraries. Do IMSL and NAG only implement "trivial" algorithms? The
Numerical Recipes C++ library is not that different from the C
version.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zero Optimization and Sign Optimization??? Ravikiran C Programming 22 11-24-2008 03:19 AM
Convert some table into combinatorial circuit + optimization sdf VHDL 0 02-26-2008 11:56 PM
C++ for combinatorial optimization problems N4M C++ 4 09-18-2004 08:50 PM
Re: C++ for combinatorial optimization problems Dietmar Kuehl C++ 1 09-17-2004 12:09 AM
Simple combinatorial logic consuming major resources? RZ VHDL 2 09-03-2003 12:38 AM



Advertisments