Coder Social home page Coder Social logo

bitset's Introduction

BitSet

Build Status Code Climate

介绍

将BitSet封装成类,用于php扩展调用

场景(逼格data)

  1. 比如倒排索引中两个倒排列表(DocList), 两个词在那些文档中同时出现(获取共现频率)
  2. 统计大量数据中每一个数据出现次数(频率)

todone

  1. 不同bitset的与,非,或,异或逻辑(非运算需要截取后面多余部分)
  2. 根据设定的位,来动态申请动态空间
  3. 用valgrind工具检测内存泄露问题

todo

  1. 第一个版本是以php方法的形式展现,后期版本采用类方法的形式
  2. php扩展,内存用php-valgrind扩展来检测。

测试用例

见tests中的测试用例,运行make test来测试吧~

bitset's People

Contributors

weedge avatar weege126 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.