I\'ve read that accessing elements by position index can be done in constant time in a STL deque. As far as I know, elements in a deque may be stored开发者_高级运维 in several non-contiguous locations
I have an array of objects (say, images), which is too large to fit into memory (e.g. 40GB). But my code needs to be able to randomly access these objects at runtime.
I\'m looking for a general compression library that supports random access during decompression. I want to compress wikipedia into a single compressed format and at the same time I want to decompress/
As a java guru, what would you suggest to abstract random access so that a code can be agnostic to whether the data its accessing 开发者_StackOverflowis in memory or in a file on the harddrive?
I have a problem getting boost::multi_index_container work with random-access and with orderd_unique at the same time. (I\'m sorry for the lengthly question, but I think I should use an example..)
I\'m implementing a sliding window over a stream of events, in Java. So I want a data structure which allows me to do the following: