Fast and precise algorithms, with tests #7

Merged
Fedor-Lyanguzov merged 1 commits from cma-two-versions into CIDR4_merge_algorithm 2025-01-22 18:49:05 +03:00
Fedor-Lyanguzov commented 2025-01-22 18:24:48 +03:00 (Migrated from github.com)

To show result:

python -m vpn_manager.cidr4_merge.precise
python -m vpn_manager.cidr4_merge.fast

There is optimization for precise algorithm, which is to use linked lists for cidr storage, so removing an element will cost O(1) instead of O(N).

To show result: ```bash python -m vpn_manager.cidr4_merge.precise python -m vpn_manager.cidr4_merge.fast ``` There is optimization for precise algorithm, which is to use linked lists for cidr storage, so removing an element will cost `O(1)` instead of `O(N)`.
PavelPatsey (Migrated from github.com) reviewed 2025-01-22 18:24:48 +03:00
Sign in to join this conversation.