Computer Science Illuminated Review Guide (Ch. 15-18)
Chapter 15: Networks
Network Fundamentals
• Computer Network: Collection of computing devices connected to share resources.
• Node (Host): Any addressable device attached to a network.
• Bandwidth: The speed of data transfer rate.
• Client/Server Model: Client (makes request) and Server (provides service/resource).
• P2P (Peer-to-Peer): Decentralized resource sharing among equivalent nodes.
• Gateway: A node that handles communication between its LAN and other networks.
Network Types and Topologies
• LAN (Local-Area Network): Small geographic area (e.g., room/building).
– Ring Topology: Nodes connected in a closed loop.
– Star Topology: Central node (hub/switch) controls all traffic.
– Bus Topology: All nodes connect to a single communication line.
• WAN (Wide-Area Network): Connects two or more LANs over large distances.
• MAN (Metropolitan-Area Network): City-wide communication infrastructure.
The Internet and Protocols
• The Internet: A global WAN. Internet Backbone carries high-speed traffic (e.g., provided by ISPs).
• Packet Switching: Messages divided into numbered packets, routed independently, and reassembled at
destination.
• TCP/IP (Suite of Protocols):
– TCP (Transmission Control Protocol): Breaks/reassembles messages.
– IP (Internet Protocol): Handles the routing of packets.
– Other Protocols: UDP (faster, less reliable), HTTP (Web), FTP (File Transfer), SMTP (Email).
• Addressing:
– Hostname: Name (e.g., www.unb.ca).
– IP Address: Numeric address (e.g., 192.168.1.1).
– DNS (Domain Name System): Translates hostnames to IP addresses.
• Security/New Tech:
– Firewall: Filters traffic to protect a network.
– Cloud Computing: Resources (computers, storage) provided by a third party and managed via the
Internet. Types: Public, Private, Community, Hybrid.
– Blockchain: Decentralized, incorruptible public ledger for recording transactions.
1
Computer Science Illuminated Review Guide (Ch. 15-18)
Chapter 16: The World Wide Web
Web vs. Internet
• Internet: The physical connection infrastructure.
• The Web: The infrastructure of information and network software used to access it.
• Web Server: Stores web pages and responds to HTTP requests.
• Web Browser: Retrieves and displays web pages.
• URL (Uniform Resource Locator): Specifies the location of a web page.
Web Languages
• HTML (Hypertext Markup Language):
– Standard language for creating the content and structure of web pages.
– Uses **tags** (e.g., <h1>, <p>, <img>).
– **HTML5** added structural tags like <header>, <footer>, <nav>.
• CSS (Cascading Style Sheets):
– Describes the style/presentation of a document (layout, colors, fonts).
– The “Cascading” nature allows multiple styles to be applied in priority order.
• XML (Extensible Markup Language):
– A metalanguage defining data meaning and structure (not display).
– DTD (Document Type Definition): Describes the structure of a valid XML document.
– XSL (Stylesheet Language): Defines transformations from XML to other formats (e.g., HTML).
Web Interactivity and Tracking
• Java Applets: Small Java programs embedded in HTML; execute on the client (browser).
• Java Server Pages (JSP): Code embedded in HTML that executes on the server to generate dynamic
content.
• Cookie: Small text file stored on the client machine by a web server to track user activity or preferences.
• Web Analytics: The analysis of data regarding website usage (e.g., click-through rates, time on page).
• Social Network: An online service allowing people with shared interests to communicate (e.g., TikTok,
Facebook).
2
Computer Science Illuminated Review Guide (Ch. 15-18)
Chapter 17: Computer Security
Information Security Fundamentals
• Information Security: Techniques and policies to ensure proper access to data.
• The CIA Triad (The goals of security):
1. Confidentiality: Protection from unauthorized access.
2. Integrity: Data can be modified only by authorized mechanisms.
3. Availability: Authorized users can access information for legitimate purposes.
Authentication and Credential Types
• Authentication: Verifying the identity of a user.
• Authorization: Verifying what a user is permitted to do.
• Authentication Credentials (Three categories):
1. User Knowledge: Password, PIN. (Need to be complex, long, and not reused).
2. Smart Card: Something the user has (embedded memory chip).
3. Biometrics: Something the user is (fingerprints, retina scan).
• CAPTCHA: Software designed to ensure the user is human, not a computer.
Malicious Code (Malware) and Attacks
• Malware Categories:
– Virus: Code embedded in a host program that replicates.
– Worm: A standalone program that replicates itself over a network (no host needed).
– Trojan Horse: A program disguised as benevolent (e.g., a free game) that causes damage.
– Logic Bomb: Code that executes when a specific condition occurs.
• Security Attacks:
– Phishing: Tricking a user into revealing credentials (e.g., via fake login pages).
– Spoofing: Masquerading as an authorized user.
– Denial-of-Service (DoS): Prevents legitimate users from accessing resources.
– Man-in-the-Middle: Intercepting communication between two parties.
Cryptography
• Cryptography: The practice of making and breaking secret codes.
• Cipher: The algorithm used to encrypt/decrypt. Key: Parameter used by the cipher.
• Simple Ciphers:
– Substitution Cipher: Substitutes one character for another (e.g., Caesar Cipher).
– Transposition Cipher: Rearranges the order of characters.
• Public-Key Cryptography (Asymmetric):
– Uses two keys: Public Key (freely distributed, used to encrypt).
– Private Key (kept secret, used to decrypt).
– Digital Signature: Data appended to a message using the sender’s private key to ensure authenticity.
3
Computer Science Illuminated Review Guide (Ch. 15-18)
Chapter 18: Limitations of Computing
Limits on Arithmetic and Error
• Precision: Maximum number of significant digits a computer can represent.
• Significant Digits: Digits from the first nonzero on the left to the last on the right.
• Representational Error: Error when a number’s precision exceeds the computer’s capacity (e.g., Round-off
Error).
• Underflow: Result is too small to be represented.
• Overflow: Result is too large to be represented.
• Cancellation Error: Loss of accuracy when operating on numbers of greatly different sizes.
Error Detection and Correction
• Parity Bit: An extra bit added to a unit of data to ensure the number of 1s is either always odd or always
even (detects single-bit errors).
• Check Digits: A digit added to a number (like an account number) to detect common errors like transposition
of digits.
• Error-Correcting Codes: Allow for the deduction and correction of the original data value.
Algorithmic Complexity (Big-O Analysis)
• Big-O Notation: Expresses the efficiency of an algorithm by measuring the growth rate of time (or space)
as the problem size (N ) increases.
• Orders of Complexity (from fastest to slowest):
– O(1): Constant Time (E.g., accessing an array element).
– O(log2 N ): Logarithmic Time (E.g., Binary Search).
– O(N ): Linear Time (E.g., printing a list).
– O(N log2 N ): (E.g., Quicksort, Mergesort).
– O(N 2 ): Quadratic Time (E.g., Selection Sort).
– O(2N ): Exponential Time (Intractable for large N ).
Classification of Problems
• Computable Problems: Problems for which an algorithm exists.
• Undecidable Problems: Problems for which no algorithm can ever be constructed to yield a correct yes/no
answer for all inputs (E.g., The Halting Problem).
• Polynomial-Time Algorithms (Class P): Solvable by an algorithm whose order is O(N k ) (efficient/tractable).
• NP-Complete Problems: Solvable in polynomial time *if* an unlimited number of processors is available.
A solution can be verified in polynomial time.
• Intractable Problems: Computable problems for which no polynomial-time algorithm exists (e.g., O(2N )
or O(N !)).
4