Commit Graph

86 Commits

Author SHA1 Message Date
Pavel Patsey 52c5fb679e rename merge_nodes function to solution 2025-01-26 10:39:31 +03:00
Pavel Patsey 04b4d14a30 shorten variable names in merge_nodes function 2025-01-26 10:30:58 +03:00
Pavel Patsey fee38af690 shorten variable names in merge_two_nodes function 2025-01-26 10:27:55 +03:00
Pavel Patsey 731d77f0e3 shorten variable names in calc_dip function 2025-01-26 10:24:34 +03:00
Pavel Patsey fa9b4073b7 move how to launch algorithms info to the folder with algorithms 2025-01-26 10:04:37 +03:00
Pavel Patsey bc8ddf1be4 add insurance functions, delete raise exception from find_parent function 2025-01-25 10:28:03 +03:00
Pavel Patsey eccc03f48d add cosmetic changes (more comfortable work with arguments) 2025-01-25 10:15:42 +03:00
Pavel Patsey 735a3c0216 take into account the case when neighbors could remain 2025-01-24 14:01:47 +03:00
Pavel Patsey f9f711ca0b add insurance functions example 2025-01-24 13:49:00 +03:00
Pavel Patsey 811432a2f5 add cosmetic changes in merge_two_nodes 2025-01-24 13:34:47 +03:00
Pavel Patsey 75d400f52e add find subnets example 2025-01-24 13:30:37 +03:00
Pavel Patsey 6c43344893 make calc_dip faster 2025-01-24 12:13:55 +03:00
Pavel Patsey 68327db96c fix tests (delete sort_nodes from tests) 2025-01-24 11:59:35 +03:00
Pavel Patsey a160ffd3a2 add cosmetic changes 2025-01-24 11:38:17 +03:00
Pavel Patsey 7c8ecea980 delete sort nodes function 2025-01-24 11:36:34 +03:00
Pavel Patsey 55c71c6eb2 use functions from util 2025-01-24 11:35:03 +03:00
Pavel Patsey f40d47989a make similar output 2025-01-24 11:31:12 +03:00
Pavel Patsey d987b39bbd add merge_nodes function 2025-01-24 10:05:11 +03:00
Pavel Patsey 91d3556eee fix calc_dip, add merge_two_nodes 2025-01-23 18:34:13 +03:00
Pavel Patsey adc569af21 fix calc_dip 2025-01-23 10:20:36 +03:00
Pavel Patsey 474b6779d8 add calc_dip function 2025-01-23 10:15:30 +03:00
Pavel Patsey 81f741ee4e fix plan 2025-01-23 09:42:30 +03:00
Pavel Patsey 5a8f98041f correct mask recalculation when reducing its length 2025-01-22 23:27:47 +03:00
Pavel Patsey 725b80544a add find_parent function 2025-01-22 23:12:21 +03:00
Pavel Patsey faa2849e6b fix sort nodes test 2025-01-22 22:25:09 +03:00
Pavel Patsey d591470a0d correct the algorithm plan 2025-01-22 22:04:47 +03:00
Pavel Patsey 05c78ad399 delete added_ips_number info from node 2025-01-22 21:56:19 +03:00
Pavel Patsey c659e96d3f add cidr4_merger algorithm to the others 2025-01-22 21:47:31 +03:00
Pavel Patsey 3ff3843b58 delete unnecessary test data 2025-01-22 18:58:18 +03:00
Pavel Patsey 8229e91fe6 Merge pull request #7 from Fedor-Lyanguzov/cma-two-versions
Fast and precise algorithms, with tests
2025-01-22 18:49:05 +03:00
Pavel Patsey 6634643155 init new algorithm 2025-01-22 18:23:02 +03:00
Fedor Lyanguzov dfd6e21f2b Fast and precise algorithms, with tests 2025-01-22 18:21:39 +03:00
Pavel Patsey 2cab2c31a6 add current solution to archive before changes 2025-01-22 17:49:20 +03:00
Pavel Patsey 303ddee08f remove unnecessary copying of node list 2025-01-19 01:45:25 +03:00
Pavel Patsey 7600814772 add test merge_nodes recursion vs cycle 2025-01-19 01:24:08 +03:00
Pavel Patsey 39e99d24b6 add merge_nodes_cycle func 2025-01-19 01:00:01 +03:00
Pavel Patsey 8ce8ac6e1a rename prev merge_nodes func to merge_nodes_deprecated 2025-01-19 00:46:00 +03:00
Pavel Patsey 1d34eb92bd add working recursive merge algorithm 2025-01-19 00:42:13 +03:00
Pavel Patsey c5e20446be add merge_nodes_recursion test 2025-01-19 00:29:54 +03:00
Pavel Patsey 724e8f8471 add lift_lonely_node test 2025-01-19 00:27:42 +03:00
Pavel Patsey 71b5525c32 fix merge_neighbors and add merge_neighbors tests 2025-01-19 00:19:04 +03:00
Pavel Patsey 58c2b5cbe0 add fixtures for nodes and groups 2025-01-19 00:05:21 +03:00
Pavel Patsey 95fbdff75f add find_neighbours_singles function test 2025-01-18 23:54:00 +03:00
Pavel Patsey c56d09cfd9 extended the make_groups function test 2025-01-18 23:52:28 +03:00
Pavel Patsey a42f459db4 add test make_groups 2025-01-18 23:19:04 +03:00
Pavel Patsey feda229c78 add non-working recursive merge algorithm 2025-01-18 23:17:47 +03:00
Pavel Patsey af91a066a1 rename ip_str to ip_address 2025-01-18 20:24:04 +03:00
Pavel Patsey b5a1498a51 add parent_ip info to Node tuple 2025-01-18 20:15:21 +03:00
Pavel Patsey edcce93d01 rename test ips 2025-01-16 15:18:08 +03:00
Pavel Patsey a1dba6affb move tests to a separate file 2025-01-16 15:12:30 +03:00