I have a doubt, i have a file which contains around 3000 elements, now i want to search for an element in that file....
what will be the Efficient way of searching ? without consuming much memory and time...
1) is this efficient if i take all the 3000 elements from file to a list or array and sort them and search ?
2) or is it efficient to search directly inside the file ??
Can anyone please suggest some algorithms for an efficient way to search in this case ??
I am using C for coding..