Clever ways of implementing different data structures in C & data structures that should be used mor

Posted by Yktula on Stack Overflow See other posts from Stack Overflow or by Yktula
Published on 2010-05-22T05:05:55Z Indexed on 2010/05/22 5:10 UTC
Read the original article Hit count: 695

Filed under:
|

What are some clever (not ordinary) ways of implementing data structures in C, and what are some data structures that should be used more often?

For example, what is the most effective way (generating minimal overhead) to implement a directed and cyclic graph with weighted edges in C?
I know that we can store the distances in an array as is done here, but what other ways are there to implement this kind of a graph?

© Stack Overflow or respective owner

Related posts about c

    Related posts about data-structures