Computational Thinking and Algorithms

Engineering

Master the four pillars of computational thinking and analyse how algorithm choice determines whether a program runs in milliseconds or hours on real-world data.

55 XP
Reward
13
Questions
5–10 min
Time
Q1 Question 1 of 13

A software team is building a ride-sharing app. They break the problem into: match riders to drivers, calculate routes, process payments, and send notifications. Which pillar of computational thinking does this represent?

Q2 Question 2 of 13

A map-routing algorithm ignores the colour of road signs, the age of bridges, and whether roads pass through scenic areas, focusing only on distance and speed. Which computational thinking pillar does this demonstrate?

Q3 Question 3 of 13

You need to find one specific contact in a phone book with 1,000,000 entries sorted alphabetically. Using binary search, approximately how many comparisons are needed in the worst case?

Q4 Question 4 of 13

Binary search requires that the data be sorted before it can be applied. If you have an unsorted list of 10,000 items that you will search only once, which approach is most efficient overall?

Q5 Question 5 of 13

Bubble sort compares adjacent elements and swaps them repeatedly, with time complexity O(n²). Merge sort divides the list, sorts each half, then merges, with time complexity O(n log n). If you need to sort 1,000,000 records, which algorithm is preferable and why?

Q6 Question 6 of 13

A GPS device calculates a route in under one second for a city with 500,000 road segments. Which category of algorithm enables this, and why is a brute-force approach (checking all possible routes) infeasible?

Q7 Question 7 of 13

A flowchart uses a diamond shape. What does this symbol represent?

Q8 Question 8 of 13

What is the primary advantage of writing pseudocode before writing code in a specific programming language?

Q9 Question 9 of 13

An algorithm that accesses a lookup table and always returns the answer in the same time regardless of how many entries the table has is said to have which time complexity?

Q10 Question 10 of 13

A data compression algorithm used for internet video streaming finds repeated patterns in image frames and stores only the differences between frames rather than complete images. Which computational thinking pillar is most prominent here?

Q11 Question 11 of 13

An algorithm that performs well on small datasets suddenly takes hours to run when the dataset size triples. This behaviour is most characteristic of which time complexity?

Q12 Question 12 of 13

Internet routers must forward millions of packets per second to correct destinations. The routing table has thousands of entries. Which search complexity is essential for routers to operate in real time?

Q13 Question 13 of 13

A well-designed algorithm must be finite. What does this mean, and why is it important?