Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] array duplicate check [C]
- Date: Wed, 18 Apr 2007 16:35:12 +0900
- From: "Birkir A. Barkarson" <birkirb@example.com>
- Subject: Re: [tlug] array duplicate check [C]
- References: <78d7dd350704172334u77c1062as2e981c5113981366@example.com>
- User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
So how can I improve the algorithm? ( for the worst case ) I have a feeling that I can reduce the complexity to N or M...
Any helps are appreciated.
Just a couple of ideas...
1) Keep one of the vectors sorted and use a search (binary search for example should be about N*logM)
2) Get a quantum computer and improve the performance to N*sqrt(M)
BAB
- Follow-Ups:
- Re: [tlug] array duplicate check [C]
- From: Brett Robson
- Re: [tlug] array duplicate check [C]
- From: Nguyen Vu Hung
- References:
- [tlug] array duplicate check [C]
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Firewall versus NFS
- Next by Date: Re: [tlug] array duplicate check [C]
- Previous by thread: [tlug] array duplicate check [C]
- Next by thread: Re: [tlug] array duplicate check [C]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links