Skip to main content

INF1A - top navigation

  • Learn
  • Piazza
  • DRPS

Breadcrumb

  1. Home
  2. INF1A: Informatics 1 - Introduction to Computation

INF1A: Week 1

Introductory Lecture

The slides for the introductory lecture are here.


Functional Programming

The first lecture will explain the basic concepts behind functional programming, including types, values and functions. The second lecture will introduce lists and the use of list comprehensions to define lists.

Slides for the week:

  • FP Lecture 1: Functional Programming, Types and Values
  • FP Lecture 2: Lists and Comprehensions (code)

The functions toLower and isAlpha are in the library Data.Char, not in the Haskell Prelude. To try the examples involving these functions in Lecture 2, you need to first do

import Data.Char

FP required reading: Textbook

  • Chapter 2. Types
  • Chapter 3. Simple Computations
  • Chapter 5. Lists and Comprehensions
  • Chapter 7. Testing Your Programs

Optional reading:

  • Quora: Functional Programming is Black Magic by Jonathan Reem
Computation and Logic  

Binary data & questions. A small universe. Categorical propositions

In the first two lectures, we introduce the basic framework for our discussion of propositional logic. This includes a universe of things, and a collection of predicates, which are properties a thing might have. We look at a chess set as a first example of a universe, and then introduce an even simpler example, which we use to introduce propositions, which are statements we may make about the universe. We briefly mention predicate logic, before pulling back to something simpler.

Slides for the week: 

  • CL-Week01.pdf

Required reading: Textbook

  • Chapter 1. Sets
  • Chapter 4. Venn Diagrams and Logical Connectives
  • Chapter 6. Features and Predicates (only up to Sequents, page 53).
Mathematics for ComputingIntroduction to Set Theory. This is a link to the Mathematics for Computing study guide. You will need to have opened the study guide via Learn first, in order for this link to work. Please open the section 'Introduction to Set Theory'. 

This section covers the basic concepts of sets and subsets; proper subsets and the empty set; set operations of union and intersection; complements of sets and cartesian products. 

Please watch the video, do the recommended reading, and attempt solving the exercises if you think you need a refresh of the above notions.

Tutorial 1 - tutorial pack

Tutorial 1 is held in Week 2. Check your personalised timetable to see which tutorial group you are in. It will be a Thursday or a Friday.

Instructions, sample solutions, and submission dropboxes will be available on Learn only. You can find them in the weekly folders or via these direct search links:

  • FP Tutorial 1: Content / Informatics 1 - Introduction to Computation (2023-2024)[SEM1] (ed.ac.uk)
  • CL Tutorial 1: Content / Informatics 1 - Introduction to Computation (2023-2024)[SEM1] (ed.ac.uk)
License
All rights reserved The University of Edinburgh

Book traversal links for INF1A: Week 1

  • INF1A: Maths for Computing
  • Up
  • INF1A: Week 2

Navigation links

  • INF1A: Course Materials
  • INF1A: Resource List
  • INF1A: Assessment
  • INF1A FP Competition
  • INF1A: Maths for Computing
  • INF1A: Week 1
  • INF1A: Week 2
  • INF1A: Week 3
  • INF1A: Week 4
  • INF1A: Week 5
  • INF1A: Week 6
  • INF1A: Week 7
  • INF1A: Week 8
  • INF1A: Week 9
  • INF1A: Week 10
  • INF1A: Week 11
RSS feed

Opencourse privacy & accessibility statements; contact Informatics, ILTS.