integeruser / FP-growth

A C++ implementation of the FP-growth algorithm
MIT License
42 stars 22 forks source link

Question: Data type #3

Closed DJuego closed 6 years ago

DJuego commented 6 years ago

Question: I want to work with integers (in order to reduce the amount of memory needed). However I found in the code:

`Item = std::string;`

Is it possible to change it safely? Should we change something else? Would the performance be affected?

Thanks!

integeruser commented 6 years ago

Hello,

yes, it should be possible to redefine Item without changing anything else in the code (of course the provided test cases won't work anymore). Regarding performances, I expect integers to beat strings but can't really tell without some tests, it's been a while since I used this algorithm.

DJuego commented 6 years ago

Ok. Thank you for your answer and your time, @integeruser!

DJuego