Algorithm/steps to find Longest Prefix search in Patricia Trie

前端 未结 3 1918
梦毁少年i
梦毁少年i 2020-12-10 07:52

I am implementing Patricia tries for IP prefix lookup, I could get the code working for complete key match, but facing problems with prefix search, when there are keys whic

3条回答
  •  半阙折子戏
    2020-12-10 08:30

    Take a look at Net-Patricia. This is an implementation of a Patricia trie to look up IP addresses. The interface is perl, but the underlying code is in C. Here is a link, but many CPAN archives should have it:

    http://cpansearch.perl.org/src/PHILIPP/Net-Patricia-1.15_07/libpatricia/patricia.c

提交回复
热议问题