Skip to content

Work & Development · Web Development & Programming

Problem Solving and Algorithms

Compare searching one record at a time, Sets, Maps and binary search by counting their work.

Level
Intermediate
Lessons
9 lessons in 3 modules
Estimated study
About 24 hours
Format
Online, self-paced

Monthly: $0 today with a card, then $34 on day 4 unless you cancel before then. After the trial, 30 days' notice applies. Active on-campus students have academy access included. Check your existing student account before buying another subscription.

Before you start

Recommended preparation:

Use a computer with a keyboard and a current browser. Individual lessons explain the tools needed for each exercise.

Full study requires active Academy access. This course can be audited independently of optional assessed programs.

About this course

Use small JavaScript problems to plan a solution before coding. Describe the steps, test awkward cases and choose a collection that fits the task. Compare search methods by counting the work they do as the data grows.

What you will be able to do

  • Break a problem into examples, constraints and steps.
  • Choose arrays, sets or maps for an appropriate task.
  • Compare simple search and sorting strategies and explain their tradeoffs.

Course outline

Write examples, check boundaries and describe the solution in plain steps.

  1. Define a Search Contract Before Coding2 h 40 minFree preview
  2. Trace a Linear Search One Comparison at a Time2 h 40 min
  3. Test Empty, Invalid and Duplicate Data2 h 40 min

Choose ordered lists, unique-value collections or ID lookups to match the task.

  1. Choose Arrays for Ordered Views2 h 40 min
  2. Use Sets for Uniqueness and Membership2 h 40 min
  3. Build a Map Index for Repeated Lookups2 h 40 min

Compare searching, sorting and growth in work using examples and operation counts.

  1. Compare Growth with Operation Counts2 h 40 min
  2. Search a Sorted Array with Binary Search2 h 40 min
  3. Deliver and Explain a Resource-Search Utility2 h 40 min

Work & Development · Digital Skills & AI Literacy

Digital Confidence for Work

Find your files, write clear messages, and check a small workplace project.

Included with Academy

Work & Development · Digital Skills & AI Literacy

AI for Study and Everyday Work

Write clear requests, check what comes back, and keep private information out.

Included with Academy

Work & Development · Web Development & Programming

Build Your First Website

Build three linked web pages with clear headings, useful images, and labeled fields.

Included with Academy