←
Class 11 Computer Science
3. Emerging Trends · 3 / 11
⌕
Chapter 3 of 11

3. Emerging Trends

9 sections · 8,385 words

About this chapter

220 words · 1 min read

Big idea: New tools learn from data, join everyday objects, and share computers across a network.

This is an original lesson that follows the Class 11 Computer Science syllabus. Read the key words first. Cover a worked answer and try the steps yourself before you look. For a program, say what it will print before you read the real output.

  • Explain Artificial Intelligence, machine learning, language tools, immersive reality, and robots.
  • Name the five Vs of big data and say how analytics finds patterns.
  • Describe the Internet of Things, the Web of Things, sensors, and smart-city systems.
  • Compare IaaS, PaaS, and SaaS in cloud computing.
  • Contrast cloud computing with grid computing, and a grid with a cluster.
  • Explain how a blockchain keeps a shared, append-only ledger.

In 1950, Alan Turing asked if a machine could think. He described a test now called the Turing test. In 1956, John McCarthy named Artificial Intelligence at a summer meeting. Computers later shrank from rooms to desks, then to phones. After 2000, many devices joined the internet. That flood of records fed big data and modern ML. Remote data centres rented servers on demand. Research grids pooled spare processors across labs. Shared ledgers used hashes so many nodes could keep one history without one central clerk.

3.1 Artificial intelligence

1,602 words · 7 min read

A computer can learn from examples. It can also talk, see, and move a machine.

Old programs followed fixed steps. A person wrote every rule. Today a program can sort photos. It can also suggest a next word. These tools use Artificial Intelligence (AI).

AI is computer work that copies useful human thinking. Humans notice, learn, and choose. AI uses maths to do similar jobs.

Think about spotting a cat. Nobody gave you a long rule book. You saw many cats. Your brain kept the pattern. AI works the same way. It studies many examples. Then it judges a new case.

Some AI systems keep a knowledge base. That is a stored set of facts and rules. The program looks them up. Then it gives an answer.

Machine Learning (ML) is a part of AI. The program learns from data. A person does not type every rule.

In old coding, data plus rules give answers. In ML, data plus known answers give a model. A model is a stored pattern. Later it predicts on new data.

A model is not a magic brain. It is maths fitted to examples. If the examples are biased, the model is biased. Garbage in still means garbage out.

Training and testing must stay apart. Never score a model only on its training photos. The score then looks too good. The model may only have memorised those photos.

A fair test uses new photos. Then you know the model can generalise. Generalise means it still works on cases it has not stored.

  • Training uses a training set. These examples teach the model.
  • Testing uses a testing set. These examples were not used in training. They measure how well the model works.
Raw photosSplit the setTrain 75%Test 25%Trained modelNew prediction
Training builds a model. Testing checks it. Then the model predicts.

How to read the figure. Start at the top box. Raw photos are split. The left path trains the model. The right path tests it. The bottom box is a new photo. The model then makes a prediction.

A model that only repeats training photos has not learned. It must work on fresh photos.

ML matters because the world has too many cases to list by hand. A spam filter cannot list every bad message. It learns the pattern instead.

Accuracy is correct tests divided by all tests. Then multiply by 100. Here is the same idea in Python.

Python
correct = 1840
tested = 2000
accuracy = correct / tested * 100
print(accuracy)

Output
92.0

The program prints 92.0. That matches the worked example below.

People use spoken and written language. Computers use numbers. Natural Language Processing (NLP) helps a computer read, hear, and write human language.

A word can mean two things. “Bank” can be a river edge or a money shop. People use context. A program must learn that context from many sentences.

Speech is even harder. Accents change sound. Noise hides words. That is why a helper sometimes mishears a name.

  • Predictive typing suggests the next word.
  • Speech-to-text turns voice into writing.
  • Text-to-speech reads writing aloud.
  • Machine translation changes one language into another.
  • A voice helper answers a spoken request.
Microphone records the questionSpeech-to-text makes a written lineNLP finds the meaningThe program chooses an actionSpeech reads the reply
A voice helper turns sound into text, then meaning, then a spoken reply.

How to read the figure. Follow the arrows down. Sound becomes text first. Meaning comes next. The last box is the spoken answer. Skip a box and the helper fails.

NLP is not the same as ML. NLP is the job: handle language. ML is one way to do that job. A simple spell list can be NLP with no learning. A modern translator usually uses ML.

A helper can fail in two ways. It can hear the wrong words. That is speech-to-text. It can hear the words and still miss the intent. That is meaning. Name the broken step in an exam answer.

An immersive experience fills your senses. It can look and sound real. Two common tools are VR and AR. A third mix is mixed reality.

Virtual Reality (VR) builds a full 3D computer world. You wear a closed headset. The real room is hidden. Pilots use VR to practise flight. Games use it too.

Augmented Reality (AR) keeps the real room. It draws extra pictures on top. A phone camera can do this. A map arrow can sit on the street view.

Mixed reality (MR) lets a virtual object stay in the real room. You can walk around it. It is not only a flat sticker on the screen.

VR: fake worldMR: both mixedAR: real + labelsHeadset: VR and MR. Phone camera: AR.The real room is strongest on the right.
VR, AR, and mixed reality. Read left to right: less real world, then mixed, then mostly real.

How to read the figure. Left is VR. The real room is gone. Middle is mixed reality. Both worlds share space. Right is AR. The real room stays. Only labels are added.

FeatureVRARMixed reality
Real roomHiddenStill seenStill seen
GearClosed headsetPhone or glassesHeadset with cameras
FeelingAnother worldThis world plus marksThis world plus objects
UseFlight practiceLive street arrowsA 3D model on a desk

Robotics builds machines that move. A robot is a programmable machine. It does a physical job. It is not only a screen program.

  • Sensors collect light, heat, or distance.
  • A processor runs the program and chooses an action.
  • Actuators are motors and valves. They move parts.
Sensors collect light, touch, distanceProcessor chooses the next actionActuators move wheels, arms, valves
Three robot parts. Sense, decide, then move.

How to read the figure. The top box senses. The middle box decides. The bottom box moves. A robot needs all three. AI software alone has no motors.

Wheeled robots roll on flat floors. Legged robots climb steps. A manipulator is a fixed arm in a factory. A humanoid is shaped like a person. A drone is an uncrewed flying robot.

A drone is still a robot. It has sensors, a processor, and motors. Flying does not change that three-part plan.

A robot can follow a fixed script. Then it is not using AI. A robot can also use a vision model. Then AI software sits inside the processor. Keep the two ideas separate in an exam answer.

A voice helper uses NLP. It may also use ML for meaning. That is still software. It is not a robot unless it moves a body.

A headset for VR is hardware. The 3D world is software. AR on a phone is mostly software plus a camera. The camera is a sensor. The phone is not a robot.

When a question mixes these terms, split them. Name the software job. Name the hardware job. Then pick AI, NLP, VR, AR, or robot.

A good one-line plan: AI thinks with data. NLP handles language. VR and AR change what you see. A robot moves in the room.

  • Artificial intelligence: computer methods that copy useful human thinking.
  • Machine learning: learning a pattern from data instead of typing every rule.
  • Model: the stored pattern that later makes predictions.
  • Natural language processing: tools that read, hear, or write human language.
  • Virtual reality: a full computer world in a headset.
  • Augmented reality: computer pictures drawn on the real view.
  • Mixed reality: virtual objects that sit in the real room.
  • Robot: a programmable machine that moves in the physical world.

A clinic trains a model on X-ray photos. There are 8000 photos. Use 75% for training and 25% for testing. The model gets 1840 test photos right. Find the training count, the testing count, the error count, and the testing accuracy.

Goal. Find the four counts and the accuracy percent.

Rule. Training count = total × 75 ÷ 100. Testing count = total × 25 ÷ 100. Errors = tests − correct. Accuracy = correct ÷ tests × 100.

Substitute. Training: 8000 × 75 = 600000. Then 600000 ÷ 100 = 6000.

Substitute. Testing: 8000 × 25 = 200000. Then 200000 ÷ 100 = 2000.

Arithmetic. Errors: 2000 − 1840 = 160.

Arithmetic. Accuracy: 1840 × 100 = 184000. Then 184000 ÷ 2000 = 92.

Check. 6000 + 2000 = 8000. 1840 + 160 = 2000. Both match.

Result: 6000 train, 2000 test, 160 errors, 92% accuracy.

Cover the answers. Try each item on paper first.

Watch out: Do not mix AI with robotics. A robot is a moving machine. AI is the software that learns. A factory arm can repeat one motion with no AI. A scan model can run on a server with no robot body.

⚡ Quick Check Flashcards4 questions
Question 1
What is the difference between old programming and machine learning?
Try answering before revealing!
Question 2
Why is human language hard for a computer?
Try answering before revealing!
Question 3
How is AR different from VR?
Try answering before revealing!
Question 4
Name the three hardware parts of a robot.
Try answering before revealing!

3.2 Big data

1,187 words · 5 min read

Some data sets are huge, fast, and mixed. Ordinary tables cannot hold them well.

A message, a search, or a photo makes a digital record. Billions of devices do this all day. The pile grows very fast.

This pile is called big data. It is large. It is fast. It is mixed in shape. A normal database stores neat tables on one computer. That tool is too small here.

Picture a small shelf of books. That is ordinary data. Now picture millions of pages arriving every hour. Some are photos. Some are sound. That is big data.

A simple growth model of stored data. The curve rises faster in later years.

How to read the figure. The x-axis is the year. The y-axis is volume in zettabytes. Each point is a model value, not a census. The line gets steeper. Later years add more than early years.

Big data has five traits. People call them the five Vs.

  • Volume is the amount. Sizes use terabytes, petabytes, and more.
  • Velocity is the speed of new data. Sensors can send a reading every second.
  • Variety is mixed types. Text, tables, sound, and video can sit together.
  • Veracity is trust. Some records are wrong, noisy, or copied.
  • Value is the useful result. Data with no insight wastes storage.

Volume without value is a full disk. Velocity without veracity is a fast stream of errors. Variety without a plan is a mixed pile you cannot search.

Exam answers should name all five. Then give one short example for the V the question asks about. Do not stop at “big” as if volume were enough.

VPlain meaningEveryday case
VolumeHow much data there isMillions of new photos in a day
VelocityHow fast it arrivesA traffic sensor every second
VarietyHow many shapes it hasText, sound, video, tables
VeracityHow true it isDrop fake reviews before you trust them
ValueWhat you can do with itA storm warning that saves lives

How to read the table. Each row is one V. Do not stop at volume. A huge file of junk still fails veracity and value.

  • Structured data sits in rows and columns. A marks table is structured.
  • Semi-structured data uses tags, not a strict grid. JSON and XML are examples.
  • Unstructured data has no fixed grid. Photos, voice, and free text are unstructured.

Social media is an app or site where people share posts and photos. It creates huge variety and volume. A like, a comment, and a video are all records.

E-commerce is buying and selling on the internet. Each order is a row. Each product photo is unstructured. Together they become big data.

E-governance is public service on the internet. A form, a bill, or a licence can be online. The records must be true. Veracity matters here.

Social media is noisy. A joke can look like news. Analytics must filter that noise. E-commerce logs are cleaner. A paid order is a hard fact. E-governance data must be both large and correct. A wrong licence is not just a bad advert. It is a wrong legal record.

These three sources often mix. A city dashboard may show shop traffic, citizen forms, and public posts. That mix is variety. Cleaning it is the first analytics step.

Data analytics means clean, sort, and study the data. The aim is a pattern you can use. A hospital can spot a rising illness. A bus planner can see a slow road.

Cleaning comes first. Drop duplicates. Mark missing values. Check a sensor that always reads zero. Then group and chart. Then decide.

A pattern is not always a cause. Ice cream sales and heat both rise in summer. One does not make the other. Analytics still needs a human check.

A marks table is structured. A tagged JSON order list is semi-structured. A product photo is unstructured. A shop uses all three in one day.

Social media adds velocity. Posts arrive all day. E-commerce adds value if it predicts stock. E-governance adds a duty of veracity. Sort the source. Then name the V.

Storage units grow by thousands. A terabyte is large for a laptop. A petabyte is large for a company. Big data work often spans many disks. One file on a home PC is not the full story.

If a question gives only a huge size, talk about volume. If it gives a live stream, talk about velocity. If it mixes photos and tables, talk about variety. Size alone is not big data.

Analytics matters only after cleaning. A wrong sensor can look like a real peak. Check veracity before you act.
Learn the five Vs as a list. Then give one example for each V in your own words.

  • Big data: very large, fast, mixed data that ordinary tables struggle to hold.
  • Volume: the amount of data.
  • Velocity: how quickly new data arrives.
  • Variety: many types in one collection.
  • Veracity: how trustworthy the data is.
  • Value: the useful insight you can take out.
  • Social media: sites and apps for sharing posts with other people.
  • E-commerce: buying and selling through the internet.
  • E-governance: government services offered through the internet.
  • Data analytics: studying data to find a useful pattern.

A road has 400 sensors. Each sends one reading every 5 seconds. One reading uses 50 bytes. How many readings does one sensor send in one hour? How many readings do all sensors send in one day? How many kilobytes is that day of data? Use 1000 bytes in one kilobyte.

Goal. Find hourly readings, daily readings, and daily kilobytes.

Rule. Readings per minute = 60 ÷ period. Then scale to hours, sensors, and days. Bytes = readings × 50. Kilobytes = bytes ÷ 1000.

Substitute. 60 ÷ 5 = 12 readings per minute for one sensor.

Arithmetic. 12 × 60 = 720 readings in one hour for one sensor.

Arithmetic. 400 × 720 = 288000 readings in one hour for all sensors.

Arithmetic. 288000 × 24 = 6912000 readings in one day.

Arithmetic. 6912000 × 50 = 345600000 bytes.

Arithmetic. 345600000 ÷ 1000 = 345600 KB.

Check. One sensor: 12 per minute × 60 = 720 per hour. 400 × 720 = 288000. The chain matches.

Result: 720 readings per sensor per hour; 6912000 readings per day; 345600 KB.

Pause here. Answer before you scroll to the answers.

Watch out: Do not say big data is only a large spreadsheet. Size is one V. Speed, mix, trust, and usefulness must fit too.

⚡ Quick Check Flashcards4 questions
Question 1
List the five Vs of big data.
Try answering before revealing!
Question 2
Why do ordinary databases struggle here?
Try answering before revealing!
Question 3
Give two unstructured examples.
Try answering before revealing!
Question 4
Why does veracity matter before analytics?
Try answering before revealing!

3.3 Internet of Things

1,157 words · 5 min read

Everyday objects can join a network. They can sense, send, and act with little human help.

Old networks joined computers. Now a lamp, a lock, or a tank can join too. Each object has a tiny computer inside.

This network of objects is the Internet of Things (IoT). A thing has a sensor. It may also have an actuator. It sends data. It can also take an action.

A simple home tank shows the idea. A water sensor watches the level. The level falls. The pump starts. The tank fills. The pump stops. A phone can show the status. No one climbs the roof.

That loop has two directions. Data goes out from the sensor. A command comes back to the pump. If the command path is missing, you only have a log. You do not have control.

Machine-to-machine means devices talk without a person in the middle. The person may still set a rule. “Fill above a low mark” is such a rule. After that, the devices run the loop.

Thing: lamp, meter, lockSensor reads a physical valueNetwork sends the readingCloud or hub decidesActuator moves or switches
IoT data flow. A thing senses. The network carries data. Software decides. An actuator acts.

How to read the figure. Start at the top thing. The sensor reads a physical value. The network carries that number. Software decides. The actuator is the last box. Data goes down. Action comes from the last box.

IoT matters because a slow human check cannot watch a city of pipes. Sensors watch all night.

Many brands use different apps. Ten devices can mean ten apps. That is hard to use.

The Web of Things (WoT) uses ordinary web tools. HTTP, web addresses, and JSON are examples. Each device can have a web page or a web API. One browser can then talk to many devices.

HTTP is the same request style a website uses. A URI is an address for a thing. JSON is a text format for values. WoT does not replace IoT. It gives IoT a common language.

A web API is a set of web requests a program can call. “Read temperature” can be one request. “Lock the door” can be another. One dashboard can call many APIs.

A sensor measures a physical value. Heat, light, sound, and motion are common. It turns that value into an electrical signal.

A smart sensor adds a small processor. It can filter noise. It can check itself. It sends a clean number, not only a raw voltage.

  • An accelerometer senses tilt and linear motion. A phone uses it to rotate the screen.
  • A gyroscope senses twist. Games and headsets use it.
  • A light sensor reads room brightness. The screen can dim itself.
  • Heat and humidity sensors help a climate unit.
SensorWhat it measuresA common use
AccelerometerTilt and linear motionRotate a phone screen
GyroscopeTwist and spinSteady a headset view
InfraredHeat or a nearby objectOpen a door without a touch
Soil moistureWater in soilWater plants only when dry

How to read the table. Match the middle column to the job. Tilt is not twist. That is why a phone may use both an accelerometer and a gyroscope.

A smart city uses sensors and networks to run city services. Water, lights, traffic, and waste can all report their state.

  • A smart building can sense a shake and shut a gas valve.
  • A smart bridge can report a growing crack.
  • Smart traffic lights can change time when queues grow.
  • A smart bin can say it is full. The truck skips empty bins.
  • A smart pipe can report a leak by a pressure drop.

An IoT system both senses and acts. A meter that only logs is incomplete if a valve should close.

A smart city is not one giant computer. It is many small loops. Traffic is one loop. Water is another. Waste is a third. Each loop still follows sense, send, decide, act.

Privacy still matters. A bin sensor need not name a person. A camera on a street does. Designers must collect only what the service needs. That choice is part of veracity and value too.

A plain sensor is like a thermometer that only outputs a voltage. A computer elsewhere must turn that voltage into a number. A smart sensor does that local step first.

Local processing cuts network load. Only a clean value is sent. That helps velocity. It also helps veracity, because noise can be filtered at the source.

The accelerometer in a phone is a smart sensor in practice. It reports tilt, not a raw coil voltage. The processor then rotates the screen. That is a tiny IoT loop inside one device.

WoT would matter if many such devices must share one dashboard. IoT is the devices. WoT is the common web door.

  • Internet of Things: physical objects with sensors and software on a network.
  • Web of Things: using standard web tools so many IoT devices share one kind of interface.
  • Sensor: a part that measures a physical value.
  • Smart sensor: a sensor with a small processor that cleans data before sending it.
  • Actuator: a part that moves or switches when a command arrives.
  • Smart city: a city that uses sensors and networks to run services.

A town fits 15000 smart water meters. Each meter sends one reading every hour. How many readings arrive in one day? How many in a 30-day month? An old reader can visit 120 meters in a day. How many days would one person need to read all meters once?

Goal. Find daily readings, monthly readings, and manual days.

Rule. Daily = meters × 24. Monthly = daily × 30. Manual days = meters ÷ 120.

Substitute. Readings per meter per day: 1 × 24 = 24.

Arithmetic. 15000 × 24 = 360000 readings in one day.

Arithmetic. 360000 × 30 = 10800000 readings in 30 days.

Arithmetic. 15000 ÷ 120 = 125 days for one reader.

Check. 120 × 125 = 15000. The division has no remainder.

Result: 360000 per day, 10800000 per 30 days, 125 manual days.

Test yourself on these. Then read the explained answers.

Watch out: Do not think IoT only collects numbers. An actuator must also act. A valve, a relay, or a motor completes the loop.

⚡ Quick Check Flashcards4 questions
Question 1
How is WoT different from IoT?
Try answering before revealing!
Question 2
What does an accelerometer do in a phone?
Try answering before revealing!
Question 3
How can sensors help a bridge?
Try answering before revealing!
Question 4
What is an actuator?
Try answering before revealing!

3.4 Cloud computing

1,064 words · 5 min read

You can rent computers, storage, and software over the internet. You pay for what you use.

Old schools bought a server. They cooled a room. They replaced disks. Extra visitors needed a new machine. That was slow and costly.

Cloud computing rents those resources. They live in a remote data centre. A cloud provider runs the building. You use them through the internet.

Think of a wall socket. You do not build a power plant for a lamp. You plug in. You use what you need. Cloud rent works like that utility.

On-demand means the resource is there when you ask. You do not wait for a hardware delivery. You start a virtual server with a click. You stop it when the job ends.

The physical disks still exist. They are just not in your room. You still need a network. No internet means no cloud at that moment.

SaaS: ready apps in a browserPaaS: tools to run your codeIaaS: virtual machines and disksYou manage more as you go down.
Cloud service models. Higher means less setup. Lower means more control.

How to read the figure. The top box is SaaS. You only use an app. The middle box is PaaS. You bring code. The bottom box is IaaS. You bring the operating system too. Control grows as you go down.

Infrastructure as a Service (IaaS) rents the base. You get a virtual machine, disks, and a network. You install the operating system. You install your apps. The provider keeps the physical machines.

Platform as a Service (PaaS) rents a ready platform. The operating system and runtimes are already there. You upload code. You do not patch the OS.

Software as a Service (SaaS) rents a finished app. You open a browser. You sign in. Email and online documents are SaaS.

A quick test helps. Ask who patches the operating system. If the answer is you, it is IaaS. If the answer is the provider, and you still upload code, it is PaaS. If you never see a server, it is SaaS. SaaS does not let you pick the OS.

The same file store can sit under all three. The model is about what you manage. It is not about where the building is.

ModelProvider runsYou runExample
IaaSBuilding, power, hardwareOS, databases, appsA rented virtual server
PaaSHardware and the platformYour code and dataA hosted Python web app
SaaSThe whole stackYour files and settingsA web word processor

How to read the table. Compare the “You run” column. That column is the exam difference. SaaS does not let you pick the OS.

Cloud matters for a short project. You can start in a day. You can stop when the project ends. You do not keep a silent server.

  • Cost: you skip a large hardware purchase.
  • Scale: extra load can get extra cores quickly.
  • Access: a file can open on phone or laptop.
  • Care: the provider handles many backups and updates.

Scale is the cloud’s exam word. A result-day rush can add cores. The next day you can drop them. A bought box cannot shrink.

Backup is not magic. You still choose who may open a file. A shared drive with a weak password is still weak. The cloud moves the machine. It does not remove care.

A government can host public forms in a shared cloud. E-governance portals can live there. Departments then share one safe platform. They do not each buy a private hall of servers.

A public cloud is shared among many customers. A private cloud is reserved for one organisation. A hybrid mix uses both. The exam term is still cloud computing. The three service models still apply.

E-commerce shops use the same idea. A sale week needs more web servers. After the week, they shrink. That is on-demand scale, not a new building.

Suppose a team builds a photo-share app. On IaaS they rent a virtual machine. They install the OS. They install a web server. They install their code.

On PaaS they skip the OS work. They upload the app. The platform runs it. On SaaS they would not build the app at all. They would just use a ready photo site.

Pick the model from the work you want to keep. Keep the OS? Choose IaaS. Keep only code? Choose PaaS. Keep only files? Choose SaaS.

Cost follows time. A two-month contest should rent. A ten-year lab with special cards may still buy. The worked example below is the short-job case.

Pay only for the months you need. A two-month contest should not buy a machine for five years.

  • Cloud computing: renting computers, storage, and software over the internet.
  • Data centre: a building full of servers and disks.
  • IaaS: renting virtual machines and storage.
  • PaaS: renting a ready platform for your code.
  • SaaS: using a finished app in a browser or phone.
  • Virtual machine: a software computer that runs on a host.

A club will run an online contest for 2 months. Option A buys a server for 80000 plus 3000 setup. Option B rents a cloud server for 2500 per month. Find both totals and the saving if they rent.

Goal. Compare buy cost, rent cost, and the difference.

Rule. Buy = price + setup. Rent = monthly fee × months. Saving = buy − rent.

Substitute. Buy: 80000 + 3000.

Arithmetic. 80000 + 3000 = 83000.

Substitute. Rent: 2500 × 2.

Arithmetic. 2500 × 2 = 5000.

Arithmetic. 83000 − 5000 = 78000.

Check. 5000 + 78000 = 83000.

Result: Buy 83000. Rent 5000. Save 78000.

Cover the answers. Try each item on paper first.

Watch out: Do not expect SaaS to let you change the server OS. SaaS is the app only. Custom OS control needs IaaS. Custom runtimes with less OS work need PaaS.

⚡ Quick Check Flashcards4 questions
Question 1
Name the three cloud service models.
Try answering before revealing!
Question 2
You write an essay in a browser app. Which model is that?
Try answering before revealing!
Question 3
Who manages the OS in IaaS and in PaaS?
Try answering before revealing!
Question 4
Why is cloud compared to a power socket?
Try answering before revealing!

3.5 Grid computing

1,139 words · 5 min read

Many separate computers can join one big job. Spare time on each machine becomes shared power.

Some science jobs need huge time. A weather model is one. One desktop would run for months. A new supercomputer is too costly for many labs.

Grid computing joins many computers. They share spare processing and disks. Together they finish one large job.

Think of a huge puzzle. One person is slow. Many people each take a bag of pieces. Then they join the parts. A grid does that with processors.

Each computer in a grid is a node.

A cluster is different. Cluster machines sit in one place. They are often the same kind. One team owns them. The network is fast and local.

Labs build clusters for speed. The nodes sit a few metres apart. A slow wide network would waste that design. Grids accept a slower link because the prize is spare time, not one tight room.

A grid can span many sites. Nodes can differ. One may run one OS. Another may run a second OS. That mix is heterogeneity. The joined power is a virtual supercomputer.

Cluster: one siteSame OS, fast linkOne admin teamGrid: many sitesMixed machinesShared spare timeBoth join computers. The spread is different.
Cluster versus grid. Same room and same kind, or many places and mixed kinds.

How to read the figure. The left box is a cluster. Same site. Same kind. The right box is a grid. Many sites. Mixed machines. Both share work. The spread is the difference.

PointClusterGrid
PlaceUsually one room or hallMany sites
MachinesOften similarOften mixed
ControlOne admin teamMany owners who share
LinkVery fast local networkOrdinary wide networks

How to read the table. If the exam asks “one site, same machines”, pick cluster. If it asks “many sites, spare time, mixed PCs”, pick grid. Do not call a local cluster a grid.

  • A data grid shares huge files across sites. A scientist can query remote data as if it were local.
  • A CPU grid or processor grid splits a heavy calculation. Idle PCs each run a small piece. Results come back to the master program.

Choose the grid type from the bottleneck. If the pain is finding files in many labs, pick a data grid. If the pain is years of processor time, pick a CPU grid. Some projects use both.

A piece of work should be independent. One node should not wait on another node’s RAM. That is why a weather slice or a protein fold batch fits a CPU grid.

Middleware is software in the middle. It sits above each OS. It sits below the science program.

  • It finds idle nodes.
  • It sends each node a piece of work.
  • It checks who may run a job.
  • If a PC shuts down, it gives that piece to another node.

The Globus Toolkit is a known open toolkit for science grids. It helps with login, file move, and job control.

Without middleware, each owner would need a private deal with every other owner. Middleware turns many logins into one work plan. That is why it is called glue.

Fault tolerance means the job survives a crash. A home PC may shut at night. The piece is not lost. It is given to a living node. Cloud IaaS can also restart a machine. The difference is who owns the fleet.

Master splits the big jobIdle nodes receive piecesEach node computes its pieceResults return to the masterFailed nodes are given out again
A CPU grid. Split, run, collect, and retry.

How to read the figure. The first box is the split. The last box is repair. A grid must expect a home PC to turn off. Retry is not optional.

PointCloudGrid
AimRent a service you chooseFinish one huge shared calculation
ControlOne providerMany cooperating sites
MachinesMostly uniform in a data centreMixed PCs and servers
PayA usage billOften shared spare time
A grid is not a shop. A cloud is a shop for compute. A grid is a club that pools leftover cycles.

One room, same PCs, one admin: cluster. Many labs, mixed PCs, spare nights: grid. Pay a provider for a virtual machine: cloud IaaS.

A cluster can still run one big job. That does not make it a grid. The exam difference is place, mix, and ownership.

Middleware is not the science program. It is the traffic officer. The science program asks for 1000 pieces. Middleware finds 1000 idle cores.

If a question says “pay per hour to a company”, think cloud. If it says “unused lab PCs join a search”, think grid. A rented virtual server is cloud, not a grid.

  • Grid computing: joining computers in many places to work as one.
  • Cluster: similar computers in one place on a fast local network.
  • Node: one computer in the grid.
  • Heterogeneous: made of mixed machines and systems.
  • Data grid: a grid that shares large data sets.
  • CPU grid: a grid that splits heavy calculations.
  • Middleware: software that schedules, secures, and repairs grid work.

A weather job needs 14400 processor hours. How many days is that on one PC that runs 24 hours a day? A night grid has 120 PCs. Each works 10 hours a night. How many processor hours is that per night? How many nights will the grid need?

Goal. Compare one PC in days with the grid in nights.

Rule. Days = hours ÷ 24. Night hours = nodes × 10. Nights = total hours ÷ night hours.

Substitute. 14400 ÷ 24.

Arithmetic. 14400 ÷ 24 = 600 days on one PC.

Substitute. 120 × 10.

Arithmetic. 120 × 10 = 1200 processor hours each night.

Arithmetic. 14400 ÷ 1200 = 12 nights.

Check. 12 × 1200 = 14400.

Result: 600 days on one PC; 1200 hours per night; 12 nights on the grid.

Pause here. Answer before you scroll to the answers.

Watch out: Do not call a rented cloud server a grid. IaaS is one virtual machine you control. A grid is many mixed machines sharing one scientific job.

⚡ Quick Check Flashcards4 questions
Question 1
What is a node?
Try answering before revealing!
Question 2
What does heterogeneous mean here?
Try answering before revealing!
Question 3
How is a cluster different from a grid?
Try answering before revealing!
Question 4
What does middleware do?
Try answering before revealing!

3.6 Blockchains

1,123 words · 5 min read

A shared ledger can live on many computers. New pages add at the end. Old pages stay.

A bank keeps one central record. That is a centralized database. If that server fails, the record is at risk. You must trust one owner.

A blockchain is a distributed ledger. Many computers each keep a full copy. There is no single master disk. Each computer is a node.

Distributed means copies in many places. Decentralised means no single boss. A system can be distributed and still have one owner. A blockchain aims for both. Nodes follow published rules, not one admin password.

Picture a club cash book. One book can be altered. Thirty matching books are harder to fake. Members copy each new line after a check. That is the trust idea.

Block 1Prev 0000Hash 1A4FBlock 2Prev 1A4FHash 7B9CBlock 3Prev 7B9CHash 3E8DChange block 1 and every later link breaks.
A chain of blocks. Each block stores the hash of the one before it.

How to read the figure. Read left to right. Block 2 stores hash 1A4F from block 1. Block 3 stores hash 7B9C from block 2. Change block 1 and the stored hash in block 2 no longer matches.

  • A block holds records, a time, and a header.
  • A hash is a short digital fingerprint of the block. Change one mark and the hash changes.
  • Each header stores the previous hash. That is the link. The first block is the genesis block.

The ledger is append-only. You may add a new block at the end. You may not edit or delete an old block.

People still make mistakes. A later block can add a correcting record. The old line stays. You can see both the error and the fix. That history is the point.

A hash is one-way for normal use. You cannot read the original records from the hash alone. You recompute the hash from the block and compare. Match means the bytes were not changed.

  • An attacker changes a line in block 1.
  • The hash of block 1 changes at once.
  • Block 2 still stores the old hash. The link breaks.
  • The attacker would need to rebuild every later block on most nodes at once. The network refuses that.

Consensus is the rule set for agreement. Nodes check a new batch. They then accept one next block. All honest copies stay the same.

A node sends a new recordCheckers test the signature and the rulesA candidate block is builtConsensus accepts the blockEvery honest ledger adds that block
How a new block joins the chain.

How to read the figure. The second box is the check. The last box is the copy step. A record is not final after one computer writes it. It is final after consensus.

  • Health records can be shared with permission. Each clinic sees the same history.
  • Land records can resist a fake sale line.
  • A vote log can be counted without silent edits.
  • A supply chain can show a medicine is genuine.

These uses still need good input. A fake first scan stays in the chain. Append-only keeps the scan. It does not prove the bottle was honest at the factory. People and sensors still matter.

Digital cash made blockchains famous. The syllabus idea is wider. It is a shared notebook with fingerprints. Cash is only one app on that notebook.

A hash is short. The block can be long. The hash still changes if one letter changes. That sensitivity is the lock.

The previous-hash field is the chain. Without it you would have a pile of blocks. With it, order is fixed. Block 3 must follow block 2.

Consensus is the social rule. The hash is the maths rule. You need both. Maths spots a silent edit. Consensus stops a small gang from rewriting history.

A majority is more than half. With 45 checkers, 23 must agree. Seven fakes cannot outvote 38 honest nodes. Count both sides in an answer.

PointCentral databaseBlockchain
Where it livesOne main serverMany matching copies
Who controls itOne ownerThe network rules
If one disk diesThe service can stopOther copies remain
Old recordsCan be editedStay; only append

How to read the table. The last row is append-only. That is the key exam phrase. A blockchain is a bad place to store a large video. It stores short, checked records.

Blockchain matters when many parties cannot share one owner. They can still share one history.

A hash mismatch means the chain is broken. Honest nodes keep the version that still links. An old block cannot be silently rewritten.

  • Blockchain: a shared, append-only ledger copied across many computers.
  • Distributed ledger: a database replicated on many nodes.
  • Hash: a fingerprint computed from the block data.
  • Genesis block: the first block.
  • Append-only: new data can be added; old data cannot be rewritten.
  • Consensus: the agreement process for the next block.
  • Decentralised: no single controlling server.

A library chain has 45 checker computers. A strict majority (more than half) must agree. How many checkers make a majority? Seven checkers are taken over. Can a fake block pass? A new block appears every 15 seconds. How many blocks in one hour? How many in one day?

Goal. Find the majority, judge the attack, then count blocks.

Rule. Majority = (n − 1) ÷ 2 + 1. Honest = n − bad. Blocks per hour = 3600 ÷ seconds. Day = hourly × 24.

Substitute. n − 1 = 45 − 1 = 44.

Arithmetic. 44 ÷ 2 = 22.

Arithmetic. 22 + 1 = 23 checkers for a majority.

Arithmetic. Honest checkers: 45 − 7 = 38.

Check. 7 is less than 23. The fake block fails.

Substitute. 3600 ÷ 15.

Arithmetic. 3600 ÷ 15 = 240 blocks per hour.

Arithmetic. 240 × 24 = 5760 blocks per day.

Result: Majority 23. Attack fails (38 honest). 240 per hour, 5760 per day.

Test yourself on these. Then read the explained answers.

Watch out: Do not store large videos on a blockchain. It is a short, linked record book. It is not a movie disk.

⚡ Quick Check Flashcards4 questions
Question 1
Why is a blockchain called a distributed ledger?
Try answering before revealing!
Question 2
What happens if an old block is changed?
Try answering before revealing!
Question 3
What does append-only mean?
Try answering before revealing!
Question 4
Give two uses that are not digital cash.
Try answering before revealing!

Summary

178 words · 1 min read
  • AI copies useful human thinking. ML learns a model from examples. Train and test on different sets.
  • NLP helps a computer with human language. VR hides the room. AR draws on the room. Mixed reality places objects in the room.
  • A robot senses, decides, and moves. AI software alone has no motors.
  • Big data has five Vs: volume, velocity, variety, veracity, and value. Name an example for each.
  • Social media, e-commerce, and e-governance all create large mixed records. Clean before you trust.
  • IoT joins things with sensors and actuators. WoT uses ordinary web tools so many devices share one kind of door.
  • Cloud rent has three models: IaaS, PaaS, and SaaS. Higher means less setup. Lower means more control.
  • A cluster is local and similar. A grid is often mixed and spread out. Cloud IaaS is a paid virtual machine from one provider.
  • A blockchain is a shared, append-only ledger. Hashes link each block to the one before it. Consensus is how nodes agree.
Explain each important word in your own words. Then say why the rule works.

Exercises

715 words · 3 min read

These questions are new. Show your thinking. For programs, write your answer before you run the code.

3.1 A marks program uses a fixed formula. A photo app learns faces from examples. Which is traditional programming, and which is machine learning?

3.2 A model scores 100% on training photos and 50% on new photos. What went wrong?

3.3 A student cannot type. Which NLP tool turns speech into a saved essay? Which tool reads a page aloud?

3.4 A furniture app shows a desk on the live camera view of a room. Is this VR, AR, or mixed reality? Why?

3.5 A warehouse robot has wheels, a camera, and a control board. Map each part to sensor, processor, or actuator.

3.6 A shop logs every click, every product photo, and every payment row. Which two Vs are clearest here?

3.7 A public licence form is filled on a government website. Name this pattern, and name one V that must be high.

3.8 Why might ten IoT bulbs from ten firms annoy a user, and how does WoT reduce that?

3.9 A phone rotates its screen when you turn it. Which sensor is mainly at work?

3.10 A city truck should skip empty bins. Which IoT part reports “full”, and which part is the truck visit?

3.11 You upload Python to a host that already has the OS and the language runtime. Which cloud model is that?

3.12 A two-week survey needs a server. Why is a cloud rent often wiser than buying a box?

3.13 Fifty lab PCs in one room share one fast switch and one OS image. Is this a cluster or a grid? Why?

3.14 A science job runs on spare night time of mixed home PCs in many towns. Cluster, grid, or IaaS?

3.15 Block 4 stores the hash of block 3. An edit hits block 3. Why do honest nodes reject a new copy of block 4 that still lists the old hash?

Answers

  1. 3.1: The marks program is traditional programming. A person wrote the fine rule. The face app is machine learning. It fitted a model to many labelled faces.
  2. 3.2: It memorised the training set. It did not generalise. A separate testing set would have shown the drop before release.
  3. 3.3: Speech-to-text writes the essay from voice. Text-to-speech reads the page aloud. Both are NLP. One goes from sound to text. The other goes from text to sound.
  4. 3.4: AR. The real room stays in view. A digital desk is drawn on top. VR would hide the room. Mixed reality would let you walk around a stable 3D desk in that room.
  5. 3.5: Camera: sensor. It collects light. Control board: processor. It chooses the next move. Wheels and motors: actuators. They create motion.
  6. 3.6: Variety is clear because photos and rows mix. Volume is clear because every click is stored. If clicks arrive as a live stream, velocity is present too.
  7. 3.7: This is e-governance. Veracity must be high. A wrong licence is a wrong legal record, not just a messy advert.
  8. 3.8: Each firm may ship its own app and protocol. The user then juggles ten logins. WoT uses web standards. One browser or dashboard can then reach many bulbs.
  9. 3.9: The accelerometer. It senses tilt and linear motion. A gyroscope would matter more for a fast twist in a game.
  10. 3.10: A fill sensor reports full. That is the sense step. The routed truck visit is the act step. Software in between decides the route.
  11. 3.11: PaaS. You bring code. The provider already runs the OS and the language tools. IaaS would make you install those. SaaS would give a finished app, not a place for your program.
  12. 3.12: The job is short. Rent can stop after two weeks. A bought box still sits unused. You also skip setup of a cooled room.
  13. 3.13: A cluster. One site. Similar machines. A local fast network. A grid would span sites and often mix hardware.
  14. 3.14: A CPU grid. Many sites. Mixed nodes. One shared calculation. IaaS would be rented uniform servers from one provider.
  15. 3.15: The previous-hash field in block 4 must match the current hash of block 3. After the edit, that hash changed. The old value no longer matches. Honest nodes drop the broken link.
Up next
Continue to the next chapter