• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Other

Cs 121 Final Study Guide

Document preview thumbnail
Preview 2 out of 9 pages

Cs 121 Final Study Guide

Content preview

CS 121 FINAL STUDY GUIDE

Universal Resource Locators (URL) - Answers - - URL (locator) vs URN (name)
- Locator must specify where the resource is

Anatomy of URL - Answers - - Web pages are stored on web servers that use HTTP to
exchange information with client software

URL: General Syntax - Answers - -
scheme://domain:port/path?query_string#fragment_id

URL Syntax: Scheme - Answers - - http(s), ftp, mailto, file, data, ...

URL Syntax: Domain:port - Answers - - Authority part. Domain = host

URL Syntax: Path - Answers - - map to a file system path

URL Syntax: Query_String - Answers - - sequence of attribute-value pairs separated by
a delimiter

URL Syntax: Fragment_id - Answers - - Provides direction to a secondary resource or
element

General Web Page Retrieval Process - Answers - 1. Web Crawler client program
connects to a DNS server
2. DNS server translates hostname into internet protocol (IP) address
3. Crawler attempts to connect to server host using specific port
4. Crawler sends an HTTP request to the web server to request a page (usually a GET
request)

Different flavors of data collection - Answers - 1. Data Dumps
2. URL Downloads
3. Web APIs
4. Web Crawling

Web Data Collection: Data Dumps - Answers - - Sites may package their data
periodically and provide it as a "dump"

Web Data Collection: URL Downloads - Answers - - Two Step process:
- Crawl to find out the URLs of specific resources
- Run a downloaded that takes that list and downloads the resources

Web Data Collection: Web APIs - Answers - - Sites may provided REST interface for
getting at their data
- Usually higher-level: avoids having to parse HTML

, - Usually restrictive: only part of the data

Web Data Collection: Web Crawling - Answers - - Like people, getting HTML pages and
other documents and discovering new URLs as it goes
- Web admins don't like crawlers

Web Crawling: Algorithm - Answers - 1. Initialize a queue of URLs (seeds)
2. Repeat until no more URLs in queue:
-a. Get one URL From the queue
-b. If the page can be crawled, fetch associated page
-c. Store Representation of page
-d. Parse and extract URLs from page and add them to the queue

- Queue = "Frontier"

Web Crawling: Freshness - Answers - - Freshness referes to the proportion of pages
that are fresh
- Not possible to constantly check all pages
- Optimizing for Freshness vs. Relevance can lead to bad decision, such as not crawling
popular sites

Web Crawling: Sitemaps - Answers - - Sitemaps are xml files hosted on the web
- Allow web masters to send info to crawlers

Web Crawling Challenges - Answers - - Performance
- Politeness
- Crawler Traps
- Duplicate Detection
- Data Noise
- Content Missed

Web Crawling Challenges: Performance - Answers - - Back of the envelope calculation
- 1 Page Fetch = 500 ms
- 1 DNS lookup = 800 ms
- Crawler thread waits for responses to request
- Solution: multi-threaded or distributed (servers) crawling

Performance Challenges: Distributed Crawling - Answers - - Helps to put the crawler
closer to the sites it crawls
- Reduces the number of sites the crawler has to remember
- Reduces computing Resources required

Performance Challenges: Focused Crawling - Answers - - Focus on pages about a
particular topic (vertical search)
- Rely on the fact that pages about a topic tent to have links to other pages on the same
topic

Document information

Uploaded on
October 4, 2026
Number of pages
9
Written in
2026/2027
Type
Other
Person
Unknown
$14.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Greaterheights
4.0
(224)
Sold
1177
Followers
882
Items
20945
Last sold
4 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions