Reference no: EM13164758
In this lab, you will use the data structures and algorithms to implement a simple search engine. Your search engine will have the following functions:
String getPage(String url): gets the HTML document of the web page at URL
type getLinks(String page): collects and return all links (URLs) in the web page. You can design what will be the return type.
type addKeyword(): for each word on each page, add to a (keyword, URLs) list or dictionary, excluding articles, pronouns, and prepositions. For example:
computer: https://www.bestbuy.com
For the URLs in the keyword list, sort them by either the number of times the keyword appearing in the pages or the popularity of the pages.
searchKeyword(String keyword): returns a HTML document has links to the URLs which contain the keyword.
How many moles of c atoms are in the toothpaste
: a toothpaste contains 0.24% by mass sodium fluoride, NaF and 0.30% by mass of triclosan, C12H7Cl3O2. The mass of one toothpaste is 119g. How many moles of C atoms are in the toothpaste.
|
Database software to design a customer system
: An E-R diagram of your database that clearly shows the primary and foreign keys for each table and a screen shot of the first page of the contents of each table. Alternatively, you may create a report that dumps the contents of a table and submit a..
|
Using the search tools available to you
: Using the search tools available to you, identify three or more switch manufacturing companies and describe the features of two different switch types from each company. Based on what you know so far, how might you use the devices you've identifie..
|
Every program in a system contains
: Assume that every program in a system contains 40,000 machine code instructions. To execute an instruction it takes 4 machine cycles. Assume that a computer constantly keeps 150 active processes in execution and each active process needs to be exe..
|
Pronouns, and prepositions
: Type addKeyword(): for each word on each page, add to a (keyword, URLs) list or dictionary, excluding articles, pronouns, and prepositions. For example:
|
Allows the user to enter students names followed
: Write a program that allows the user to enter students names followed by their test scores and outputs the following information(assume that the maximum nmber of students in the class is 50
|
Liver leading to bile pigments circulating through the body
: Buildup of bile within the liver leading to bile pigments circulating through the body could cause tissues to turn yellow and a condition called:
|
How many moles of al2s3 are produced
: Solid aluminum reacts according to the balanced equation. If a total of 830 kJ of heat is produced in the reaction as written, how many moles of Al2S3 are produced?
|
The ai player will not be asking
: The AI player will not be asking the user for any input. This means that placeShips() and fire() should not ask the user for locations. The AI player should choose locations of ships and automatically place them
|