Skip to content

AS计算机 核心笔记

Learning Journey

Progress 0%

Understanding how computers store and manipulate data is fundamental to everything in computer science. Let’s break down the key concepts you’ll need to master.

Binary vs. Decimal Prefixes

You’ve probably noticed that a “1 TB” hard drive doesn’t actually give you 1 TB of usable space - this is why! Manufacturers use decimal (1000-based) prefixes, but operating systems often report using binary (1024-based) prefixes.

Question
Answer

Click to flip • Press Space or Enter

Number SystemBaseDigits UsedExample
Binary20, 1
Denary (Decimal)100-9
Hexadecimal160-9, A-F
Binary Coded Decimal (BCD)Special4 bits per digit

Number System Conversion

Computers need a systematic way to represent negative numbers. Two’s complement has become the standard because it’s incredibly elegant for arithmetic.

Negative Binary Representation

Question
Answer

Click to flip • Press Space or Enter

Here’s where two’s complement really shines. Want to calculate ? Just compute !

Binary Subtraction using Two's Complement

Understanding these number systems isn’t just academic - they’re used everywhere in computing:

ApplicationNumber SystemWhy?
Financial calculationsBCDExact decimal representation, no floating-point errors
Digital displays/clocksBCDEach digit needs separate display
Memory addressesHexadecimalCompact, easy to convert to/from binary
MAC addressesHexadecimale.g., A4:5E:60:E6:1B:37
Assembly codeHexadecimalHuman-readable machine code

Character Sets Evolution

Question
Answer

Click to flip • Press Space or Enter


How do we store images and sound? They’re fundamentally different from text and numbers - they’re continuous in the real world but must become discrete digital data.

Two Fundamentally Different Approaches

AspectBitmap ImageVector Graphic
How it’s storedGrid of pixels, each pixel has a color valueMathematical formulas for lines, curves, shapes
Key termsPixel, Image Resolution, Colour Depth, File HeaderDrawing Object, Property, Drawing List
File size formulaDepends on number and complexity of objects
Quality when scaledBecomes pixelated (blocky)No quality loss - recalculated mathematically
Best forPhotographs, complex images with subtle color variationsLogos, text, illustrations that need to scale

Bitmap File Size Calculation

Question
Answer

Click to flip • Press Space or Enter

Sound waves are continuous (analog), but computers need discrete (digital) data. The solution? Sampling.

From Analog to Digital

ParameterWhat it controlsImpact of increasing it
Sampling RateNumber of samples per second⬆️ Better capture of high frequencies, larger file
Sampling ResolutionBits used to store each sample’s amplitude⬆️ More accurate volume representation, larger file

Audio File Size Calculation


Why compress? Two main reasons: faster transmission (less bandwidth needed) and reduced storage space.

Lossless vs. Lossy

Compression TypeData Loss?Best Used ForExample Formats
Lossless❌ NoneText files, program code, medical scans - anything where integrity is criticalZIP, PNG, FLAC
Lossy✓ SomeMultimedia where slight quality loss is acceptableJPEG, MP3, MP4
Question
Answer

Click to flip • Press Space or Enter


Welcome to the world of networked computing! Let’s start with the fundamental building blocks.

Understanding Network Scale

FeatureLANWAN
Geographic coverageSmall (building, campus)Large (city, country, global)
OwnershipSingle organizationMultiple parties, uses public infrastructure
SpeedVery fast (Gbps common)Slower (depends on connection type)
CostLower setup and maintenanceHigher, especially for dedicated lines
ExampleSchool computer lab networkThe Internet

Network Models: Client-Server vs. Peer-to-Peer

Section titled “Network Models: Client-Server vs. Peer-to-Peer”

Two Ways to Organize Network Resources

Client-Server Model

Benefits:

  • Centralized security and backups
  • Easier to manage and update
  • Better performance for shared resources

Drawbacks:

  • High setup cost (powerful server needed)
  • Single point of failure
  • Requires skilled IT staff

Peer-to-Peer Model

Benefits:

  • Cheap to set up (no server needed)
  • Robust (no single point of failure)
  • Easy for small groups

Drawbacks:

  • Poor security (hard to control)
  • No centralized backups
  • Difficult to manage at scale
Question
Answer

Click to flip • Press Space or Enter

The physical or logical arrangement of network devices matters a lot for performance, reliability, and cost!

Common Network Topologies

TopologyDiagram ConceptAdvantagesDisadvantagesBest For
BusLinear cable with tapsSimple, cheapBackbone failure = total failure, collisionsSmall networks, legacy systems
StarCentral hub/switchRobust, easy to troubleshootCentral device failure = network downModern LANs, offices
MeshInterconnected webNo single point of failure, fastVery expensive, complex setupCritical infrastructure, data centers

Topology Selection

“The cloud” is just someone else’s computer - but it’s revolutionized how we think about infrastructure!

Cloud Computing Fundamentals

AspectPublic CloudPrivate Cloud
ProviderThird-party (Amazon, Google, Microsoft)Your organization (or dedicated hosting)
SharingMulti-tenant (shared with others)Single-tenant (exclusive)
CostLower upfront, pay-as-you-goHigher initial investment
SecurityProvider’s responsibility, shared environmentMore control, isolated environment
Best forStartups, variable workloads, web appsSensitive data, compliance requirements

Connection Types

Wired Technologies:

  • Copper cable (UTP): Cheap, good for short distances
  • Fibre-optic: Very fast over long distances using light pulses, expensive

Wireless Technologies:

  • WiFi: Local wireless, good for offices/homes
  • Microwaves: Point-to-point, line-of-sight required
  • Satellites: Global coverage, high latency
Question
Answer

Click to flip • Press Space or Enter

DeviceFunctionWorks at LayerUses Address Type
SwitchConnect devices in LAN, direct traffic to intended recipientData LinkMAC address
RouterConnect different networks, route packets between themNetworkIP address
NIC/WNICAllow device to connect to network (wired/wireless)Physical/Data LinkHas MAC address
WAPWireless Access Point - connects wireless devices to wired networkPhysical/Data Link-
RepeaterBoost signal strength for longer distancesPhysical-
BridgeConnect two similar network segmentsData Link-

Ethernet is the standard for LANs, and CSMA/CD is how devices “take turns” talking on a shared medium.

CSMA/CD - The "Listen Before Speaking" Protocol

Think of CSMA/CD like a polite conversation:

  1. Listen before you speak (Carrier Sense)
  2. If someone else is talking, wait
  3. If two people start at the same time (Collision), both stop and wait before trying again

How do you watch Netflix without downloading the entire movie first? Streaming!

Question
Answer

Click to flip • Press Space or Enter

Not the Same Thing!

The internet is like the road system, the web is like all the shops and houses you can visit on those roads. Email, gaming, file transfer - these all use the internet but aren’t part of the web!

IP Addresses - The Internet’s Addressing System

Section titled “IP Addresses - The Internet’s Addressing System”

Every device needs an address to receive data. That’s where IP addresses come in!

IP Address Fundamentals

IP TypePublic IPPrivate IP
ScopeGlobally unique, used on internetOnly within local network
AssignmentISP providesRouter assigns internally
Example rangesAny valid public IP192.168.x.x, 10.x.x.x, 172.16.x.x
SecurityDirectly accessible from internetHidden behind router (NAT) - more secure
Question
Answer

Click to flip • Press Space or Enter

Understanding Subnetting

URL and DNS - Making the Internet Human-Friendly

Section titled “URL and DNS - Making the Internet Human-Friendly”

Nobody wants to remember 172.217.14.206 when they can just type google.com!

From Domain Names to IP Addresses

How DNS Works:

  1. You type www.example.com in your browser
  2. Your computer asks a DNS server: “What’s the IP address for this?”
  3. DNS responds: “It’s 93.184.216.34”
  4. Your computer connects to that IP address
  5. The website loads!

All of this happens in milliseconds, and you never see it happening.

Question
Answer

Click to flip • Press Space or Enter


You’ve covered a massive amount of material! Let’s wrap it up with the absolute essentials.

Essential Takeaways - Information Representation

Essential Takeaways - Communication & Networks

Final Review Checklist

Progress 0%

Study Resources:

  • Practice all exercises in this guide
  • Use flashcards for quick recall of definitions and formulas
  • Review each KeyConcepts box before exams
  • Track your progress with the checklists above

Good luck with your AS Computer Science journey!