INF1A: Week 2

 
Functional Programming

In the second week of the course we'll talk about lists, the use of list comprehensions to define and compute with lists, and recursion.

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 5. Lists and Comprehensions
  • Chapter 7. Testing Your Programs
  • Chapter 10. Lists and Recursion
Computation and Logic

This week we'll learn about Aristotelian Syllogisms. We'll revisit Venn diagrams and study different types of syllogisms.

Slides for the week:

CL Required reading: Textbook

  • Chapter 6. Features and Predicates 
  • Chapter 8. Patterns of Reasoning
  • Chapter 9. More Patterns of Reasoning
Mathematics for ComputingMC-2: Introduction to Relations and Functions

Tutorial 2 - tutorial pack

Tutorial 2 is held in Week 3. Check your personalised timetable to see which tutorial group you are in. It will be on Thursday or Friday.
 
Direct search links on Learn (note that the tutorial materials only become available after the deadline of the previous tutorial):
License
All rights reserved The University of Edinburgh