AlexTape has asked for the wisdom of the Perl Monks concerning the following question:
basically i got an object containing two lists (e.g. key list and attribute list). now i need an algorithm which is able to reduce needed memory without loosing relations[a, b, c] => [1, 2, 3] [b, c] => [2, 3, 4, 5] [a, c, d] => [4, 5, 6, 7] [d] => [1, 2, 6]
the problem is that the keys are really short (e.g. A1, A2,...) but the values (1,2,3,..) are really big data strings..[a, b, c, d] => [1, 2] [a, b, c] => [3] [a, b, c, d] => [4, 5] [a, c, d] => [6, 7]
|
|---|