▍1. ipdatabase-master
说明: ipdatabase 二叉树快速搜索IP地址数据库 数据 数据源采用2015年广告协会制定的IP地址标准数据库,中国互联网广告行业统一采用的标准IP库。 原理 利用二叉树实现IP查询,首先将10进制IPV4地址转化为二进制构建二叉树,利用二叉树搜索进行搜索,查询时间复杂度log2n,比传统IP库n的查询速度高出一个量级。(Ipdatabase Binary Tree Fast Search IP Address Database data The data source is the standard IP address database formulated by the Advertising Association in 2015, and the standard IP database adopted by the Internet advertising industry in China. principle The binary tree is used to realize IP query. Firstly, the 10-bit IPV4 address is converted into binary to construct a binary tree, and the binary tree search is used to search. The query time complexity log2n is one order of magnitude higher than that of traditional IP library n.)