g++ -O2 main.cpp IPv4PrefixSet.cpp -o test
./test- main.cpp - starting point of program, tests of methods
- IPv4PrefixSet.cpp - trie logic: definitons of add, check, del methods
- IPv4PrefixSet.hpp - header file, struct for node
I used binary-trie data structure, because of:
- constant lookups speed O(32)
- natural bit mapping
- simple process of finding longest prefix