Linear basis is a relatively easy to learn but may not be useful algorithm.

Below are two blogs that I think are better.

Linear-based talk

Detailed Explanation of Linear Base

The complexity of the linear basis is very good, if it is inserted normally, it is \(O(n*64)\), and millions of data are run randomly.

The most important thing about a linear basis is its several excellent properties, which are generally investigated in the topic of a linear basis.

  1. The value range of the XOR of the numbers in the original number set is equal to the value range of the elements in the linear basis.

    This is very important, indicating that the linear basis can replace the original number set for the next step, and it is also a guarantee for the correctness of the linear basis.

  2. Linear basis is simplified, not redundant.

    This means that the linear basis is the smallest set of numbers that satisfies the conditions, and there are not too many. Specifically, there are several small properties:

    There is no non-empty subset whose XOR sum is zero in the linear basis.

    Each scheme of the selected element in the linear basis corresponds to an XOR value, and there is no situation where multiple selection schemes correspond to the same XOR value

The above are the two major properties of linear basis, which are the basis of linear basis.

Regarding the question, the main difficulty is that it is difficult for you to think that this is a linear basis question. Generally speaking, it is not difficult after thinking it.

Basic use of supplementary linear basis:

  1. Query the maximum value of the exclusive OR of n numbers.
  2. Query the minimum value of the exclusive OR of n numbers.
  3. Query whether a certain number can be XORed.
  4. Query the k small value of the exclusive OR of n numbers.

最新文章

  1. 《编写可维护的JavaScript》——JavaScript编码规范(六)
  2. PHP内核探索之变量(1)Zval
  3. raw socket
  4. JS中iframe相关的window.self,window.parent,window.top
  5. Web Project配置Hirbernate
  6. Mac运行exe的几种方法,欢迎补充!
  7. Android 高级UI设计笔记02:可以拖动交换item位置的GridView(转载)
  8. Xcode7中添加3DTouch
  9. iPhone 禁止 Safari 页面上下拖动反弹
  10. 链表c语言实现
  11. 使用 symbolicatecrash 解析崩溃堆栈
  12. python入门 -- 环境搭建(windows)
  13. selenium中maven的使用
  14. Java代码混淆工具ProGuard
  15. java高级工程师开放面试题集<二>
  16. 【代码笔记】Web-HTML-列表
  17. n!的质因子分解
  18. explicit 显示的类型转换运算符
  19. 帝国CMS“建立目录不成功!请检查目录权限”的解决办法
  20. 函数parseQuery用于解析url查询参数

热门文章

  1. 《Kafka笔记》1、Kafka初识
  2. 【原创】xenomai内核解析--实时内存管理--xnheap
  3. linux(centos8):安装分布式事务服务seata(file单机模式,seata 1.3.0/centos 8.2)
  4. Groovy中如何向已有的类添加新方法
  5. 【应用服务 App Service】App Service 中部署Java应用中文乱码现象
  6. 蒲公英 · JELLY技术周刊 Vol.26: 请问您这个月要来点肝么?
  7. 如果只推荐一本 Python 书,我要 Pick 它!
  8. Linux下使用select延时
  9. Deployer 的使用
  10. RAM ROM区别记忆