Perform a linear search starting from the first book and search each book until you find the first occurrence of the book you want (maybe, of course, several copies).
If you are the only search engine and there are many books, sorting them before searching for a book will seem like a very inefficient waste of time - if you are not going to search for more books in the future.
You can always ask the librarian to tell you where the book is in their system, or you can enlist friends to help you find and share the problem and work in parallel.
EDIT There is also a quantum algorithm called the Grovers algorithm (if you believe it), which is faster than a linear search for unsorted but I donβt know too much about it, to be honest.
source share