Turn in an algorithm (not Visual Basic code) that describes how a search engine
ID: 3887079 • Letter: T
Question
Turn in an algorithm (not Visual Basic code) that describes how a search engine or a speech recognizer works. This algorithm is a sequence of steps that a computer would follow in order to generate an output. These instructions would not be followed by a human but rather by a machine. This algorithm needs to be saved as a .doc or .docx file. Do not compress the file for this assignment. Your work should be a description of the steps that a computer would take in order to generate the output. These steps need to be in the form of a numbered list. Clearly identify what the inputs and outputs are. The input is the type of data that is read by the program in the beginning of its execution. The output is the type of data that is generated by the program towards the end of its execution. Your algorithm needs to contain at least 4 steps that are used in the generation of the output. You should describe any necessary steps that the program should take before a user begins the program as well. This would define any computations that need to be processed by the program before it is ready to accept user input. These are called pre-processing steps.
Explanation / Answer
Algorithm for a search engine:
Pre-processing steps:
Then it is ready to take input from user.
3. Take input from user.
4. Parse the user input in order to reduce it into important terms or keywords.
5. These keywords are then located using the hash map already created by the computer in step 1 to 2.
6. Fetch the value (which is the webpage) associated with the keyword.
7. Output the webpage to the user.
This is the algorithm that a computer follows as a search engine.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.