The new Google?
Not quite.
However, this code does do the following:
- implements a basic a search engine
- displays search results in a browser window
- allows navigation to documents
The final search page looks like:
And the file display looks like:
The actual search mechanism of the code is three parts:
- Linear search
- Hashtable via built in Python dict objects
- Hashtable that I custom implemented
This is to show that linear search perfomance is far worse than hashtable searching.
This code was revisited and the hashtables were implemented in an object-oriented manner in this repo: https://github.com/loulai/object-oriented-hashtable