I\'m doing a project in which i need to insert data into vectors sort it and search it ...
i need fastest possible algorithms for sort and search ... i\'ve been sea
For amortised O(1) access times, use a [std::unordered_map], maybe using a custom hash for best effects. Sorting seems to be unneccessary extra work.