• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Search Algorithm

 
Imed Ahras
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
any opinion !
i have created an array of vectors that each vector stores records numbers according to a particular field order,
then when searching i use binary search algorithm, i am bit worried about memory!
cause if my db file has 10000 records laid in 10 columns than i have to store 10000 objects.
Or is it just enough to use linear search !
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just use the simple linear search.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic