Hi everyone. I am trying to do a search engine using C++. I know data structures in C++. I have an idea of what I want to do but i need to know how can I make my data structures work with a search engine. How do they work using forms. I have also a knowledge of Html. You help will be appreciated a lot. Here is what i want to do:
a seach engine of Restaurants
Lets first talk about how would i like the search engine page to look. It would be something like this.
0 By Name
0 By Town
I have to have two options for searching. One would be by name and the other one would be by town. The Towns would always be the same. Lets say i have this:
List of towns:
5. San Juan
From that list i will have a pointer to the record of restaurants in that town.The records will look like this:
Name of restaurant
Type of food
Next will be a pointer to the next restaurant record in the town.For an example if the person selects Aguadilla, all the restaurants in Aguadilla will appear in a page with the info of their name and type of food.
1. How do I implement a C++ program in a webpage?
2. How would a sequential search on the towns be done so that it would give all the restaurants in that town?
3. i'm planning to use this example to implement the town search using a binary search tree which would have the towns in its node and from its node it would have a pointer to the records of restaurants in the towns.
4. The part of the search by name is gonna be done using a hash tables of the restaurant names which would be like 100 of them divided in the towns. The names of the Restaurants in the hash table would be encodes if possibles using six digit numbers and would have a link to the records with the restaurants info as before.