[UNFINISHED] Introduction to Algorithms

REF_DATE: 02-FEB-2026 TAGS:

Most of the following comes from lecture slides and material by Ran Wei and Andrew Sogokoń from the Lancaster University course “SCC.223 - Algorithms”

Introduction

What is an Algorithm?

- The Chambers Dictionary (TCD)

Algorithms can be thought of as providing blueprints for a program. They outline a solution, which a program then implements.

Example

A simple algorithm returning the absolute of a value:

int abs(int x) {
    if (x < 0) {
        return -x;
    } else {
        return x;
    }
}

Notes

Pseudocode

CLRS 4th ed. : https://lancaster.primo.exlibrisgroup.com/discovery/fulldisplay?context=L&vid=44LAN_INST:LUL_VU1&search_scope=MyInst_and_CI&tab=Everything&docid=alma9931008930901221

End of Document. Oliver Swindles, Lancaster University.