In oreder to implement a routing algorithm , I need to maintain a router table that is to be updated .What data structur is to be used for this?
Please help.

Some kind of a radix tree (a patricia trie is commonly used).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.