Skip to content

Instantly share code, notes, and snippets.

View sunithavanamala's full-sized avatar

sunithavanamala

View GitHub Profile
@sunithavanamala
sunithavanamala / BitVectorSample.java
Created October 16, 2018 09:38 — forked from tomgibara/BitVectorSample.java
BitVector introduction
// INTRODUCTION
/**
* A BitVector is a fixed-length sequence of bits. It's an extremely
* powerful class because of the huge number of ways that it allows the
* bits to be accessed and modified. Algorithms that rely heavily on bit
* manipulation can improve their performance by reducing the frequency
* with which bit data needs to be moved between different data
* structures; they can rely on BitVector for all the bit manipulations
* they require.
@sunithavanamala
sunithavanamala / BitVectorSample.java
Created October 16, 2018 09:38 — forked from tomgibara/BitVectorSample.java
BitVector introduction
// INTRODUCTION
/**
* A BitVector is a fixed-length sequence of bits. It's an extremely
* powerful class because of the huge number of ways that it allows the
* bits to be accessed and modified. Algorithms that rely heavily on bit
* manipulation can improve their performance by reducing the frequency
* with which bit data needs to be moved between different data
* structures; they can rely on BitVector for all the bit manipulations
* they require.
@sunithavanamala
sunithavanamala / Apriori.java
Created May 27, 2018 04:45 — forked from monperrus/Apriori.java
Java implementation of the Apriori algorithm for mining frequent itemsets
import java.io.*;
import java.util.*;
/** The class encapsulates an implementation of the Apriori algorithm
* to compute frequent itemsets.
*
* Datasets contains integers (>=0) separated by spaces, one transaction by line, e.g.
* 1 2 3
* 0 9
* 1 9