Very simple and basic Implementation of k-anonimity
The implementation of k-anonimity is done in python.
Race is taken as the sensitive attribute in this data.
There are four parts of this algorithm
- Read and store the data from the .data file into a python hash table with key as the attributes and their values as values from file.
- Categories the given data into equivalent classes such that they are k-anonimity
- Generalize the records in equivalent classes using bottum up generalizatio algorithm.
- Store the k-anonimity data in .data file.