Re: Data Retrieval/Insertion Data Structure
From: John Harrison (john_andronicus_at_hotmail.com)
Date: 07/02/04
- Next message: Alf P. Steinbach: "Re: re-setting an array"
- Previous message: Niels Dybdahl: "Re: Repeated instantiation of a variable / performance?"
- In reply to: narasimha: "Data Retrieval/Insertion Data Structure"
- Next in thread: Gwar: "Re: Data Retrieval/Insertion Data Structure"
- Reply: Gwar: "Re: Data Retrieval/Insertion Data Structure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 2 Jul 2004 09:15:52 +0100
"narasimha" <nmurar02@mailcity.com> wrote in message
news:477db146.0407010854.5273186a@posting.google.com...
> Hello,
>
> I have a data record with two fields...<value, date>. I have more
> than a million of these records. As I add more records into this set,
> I want a data structure that would be efficient enough to find
> duplicate records with the same value, and earliest possible date. It
> should be efficient to insert the records into the data structure. Is
> there any database structure that I can get help with ??
>
The obvious structure would be std::map. But I think you are going to have
trouble fitting 1000000+ records into any data structure.
john
- Next message: Alf P. Steinbach: "Re: re-setting an array"
- Previous message: Niels Dybdahl: "Re: Repeated instantiation of a variable / performance?"
- In reply to: narasimha: "Data Retrieval/Insertion Data Structure"
- Next in thread: Gwar: "Re: Data Retrieval/Insertion Data Structure"
- Reply: Gwar: "Re: Data Retrieval/Insertion Data Structure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|